/* Site Popup – Theme Settings → Popup (Figma: "Popup — FCC 26-50") */
html.site-popup-open,
html.site-popup-open body {
	overflow: hidden;
}

.site-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	font-family: "Montserrat", sans-serif;
}
.site-popup[hidden] {
	display: none;
}

.site-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(11, 3, 37, 0.72);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.site-popup__scroller {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100%;
	max-height: 100%;
	overflow-y: auto;
	padding: 24px 16px;
	pointer-events: none;
}

.site-popup__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 760px;
	max-width: 100%;
	margin: auto;
	overflow: hidden;
	background: #0b0325;
	border-radius: 20px;
	box-shadow: 0 30px 80px 0 rgba(0, 0, 0, 0.55);
	pointer-events: auto;
	opacity: 0;
	transform: translateY(16px) scale(0.98);
	transition: opacity 0.3s ease, transform 0.3s ease;
}
/* Inside stroke drawn over the image, as in the design */
.site-popup__dialog::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid rgba(238, 240, 246, 0.5);
	border-radius: inherit;
	pointer-events: none;
}
.site-popup__dialog:focus {
	outline: none;
}

.site-popup.is-open .site-popup__overlay,
.site-popup.is-open .site-popup__dialog {
	opacity: 1;
}
.site-popup.is-open .site-popup__dialog {
	transform: none;
}

/* Media */
.site-popup__media {
	position: relative;
	flex-shrink: 0;
	height: 330px;
	overflow: hidden;
}
.site-popup__image,
.site-popup__fade {
	position: absolute;
	top: 0;
	right: -2px;
	bottom: 0;
	left: 0;
}
.site-popup__image {
	width: calc(100% + 2px);
	max-width: none;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}
.site-popup__fade {
	background: linear-gradient(180deg, rgba(11, 3, 37, 0) 60%, rgba(11, 3, 37, 0.6) 88%, #0b0325 100%);
}

.site-popup__tag {
	position: absolute;
	top: 20px;
	left: 40px;
	max-width: calc(100% - 108px);
	padding: 9px 12px;
	background: rgba(11, 3, 37, 0.45);
	border: 1px solid rgba(238, 240, 246, 0.3);
	border-radius: 6px;
	-webkit-backdrop-filter: blur(9px);
	backdrop-filter: blur(9px);
	color: #eef0f6;
	font-size: 12px;
	font-weight: 600;
	line-height: 12px;
	letter-spacing: 1.68px;
	text-transform: uppercase;
}

.site-popup__close {
	position: absolute;
	top: 16px;
	right: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: rgba(11, 3, 37, 0.45);
	border: 1px solid rgba(238, 240, 246, 0.35);
	border-radius: 20px;
	-webkit-backdrop-filter: blur(9px);
	backdrop-filter: blur(9px);
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
.site-popup__close:hover,
.site-popup__close:focus-visible {
	background: rgba(11, 3, 37, 0.75);
	border-color: rgba(238, 240, 246, 0.7);
}
.site-popup__close:focus-visible {
	outline: 2px solid #baa6ff;
	outline-offset: 2px;
}
.site-popup__close img {
	display: block;
}

/* Body */
.site-popup__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 8px 40px 36px;
}

.site-popup .site-popup__title {
	max-width: 520px;
	margin: 0;
	padding: 0;
	color: #fff;
	font-family: "Montserrat", sans-serif;
	font-size: 34px;
	font-weight: 600;
	line-height: 40px;
	letter-spacing: 0.34px;
	text-transform: none;
}
.site-popup__title-highlight {
	display: block;
	color: #baa6ff;
}

.site-popup__text {
	margin-top: 18px;
	color: #fff;
	font-size: 17px;
	font-weight: 400;
	line-height: 27px;
	letter-spacing: -0.17px;
}
.site-popup .site-popup__text p {
	margin: 0 0 12px;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
}
.site-popup .site-popup__text > :last-child {
	margin-bottom: 0;
}
.site-popup__text strong,
.site-popup__text b {
	color: #fff;
	font-weight: 600;
}
.site-popup__text a {
	color: #baa6ff;
	text-decoration: underline;
}

/* Button – "Button / Primary on dark" */
.site-popup .site-popup__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 52px;
	margin-top: 28px;
	padding: 0 28px;
	background: #fff;
	border-radius: 6px;
	color: #2e00d0;
	font-family: "Montserrat", sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 24px;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, filter 0.2s ease;
}
.site-popup .site-popup__btn:hover,
.site-popup .site-popup__btn:focus-visible {
	background: #9f0aaf;
	color: #fff;
	filter: drop-shadow(0 0 20px rgba(159, 10, 175, 0.7));
}
.site-popup__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
.site-popup__btn-icon {
	display: block;
	flex-shrink: 0;
}
.site-popup__btn-icon--hover,
.site-popup__btn:hover .site-popup__btn-icon,
.site-popup__btn:focus-visible .site-popup__btn-icon {
	display: none;
}
.site-popup__btn:hover .site-popup__btn-icon--hover,
.site-popup__btn:focus-visible .site-popup__btn-icon--hover {
	display: block;
}

@media (max-width: 767px) {
	.site-popup__media {
		height: 200px;
	}
	.site-popup__tag {
		top: 16px;
		left: 16px;
		max-width: calc(100% - 84px);
		font-size: 11px;
		letter-spacing: 1.54px;
	}
	.site-popup__body {
		padding: 6px 20px 24px;
	}
	.site-popup .site-popup__title {
		max-width: none;
		font-size: 25px;
		line-height: 31px;
		letter-spacing: 0.25px;
	}
	.site-popup__text {
		color: rgba(238, 240, 246, 0.82);
		font-size: 15px;
		line-height: 24px;
		letter-spacing: -0.15px;
	}
	.site-popup .site-popup__btn {
		align-self: stretch;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-popup__overlay,
	.site-popup__dialog {
		transition: none;
	}
}
