/* Mega Ad ------------------------------------------ */

#mega-ad-wrap {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.82);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 36px;
	box-sizing: border-box;
	animation: megaAdFadeIn 0.35s ease;
}

@keyframes megaAdFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

#mega-ad {
	position: relative;
	max-width: 700px;
	width: 100%;
}

.mega-ad-inner {
	padding: 10px;
}

.mega-ad-inner a {
	display: block;
}

.mega-ad-inner img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
}

/* Close button — fixed to viewport so it's always visible */
#mega-ad-dismiss {
	position: fixed;
	top: 15px;
	right: 15px;
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.15);
	border: 2px solid rgba(255, 255, 255, 0.55);
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.2s ease, border-color 0.2s ease;
	z-index: 1;
}

#mega-ad-dismiss:hover,
#mega-ad-dismiss:focus {
	background: rgba(255, 255, 255, 0.3);
	border-color: rgba(255, 255, 255, 0.9);
	outline: none;
}

#mega-ad-dismiss::before,
#mega-ad-dismiss::after {
	content: '';
	position: absolute;
	width: 18px;
	height: 2px;
	background: #fff;
	border-radius: 2px;
}

#mega-ad-dismiss::before { transform: rotate(45deg); }
#mega-ad-dismiss::after  { transform: rotate(-45deg); }

/* Prevent body scroll while ad is open */
html.has-mega-ad,
body.has-mega-ad {
	overflow: hidden !important;
}
