/* استایل پاپ آپ تبلیغاتی */
.apm-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	direction: rtl;
}

.apm-overlay.apm-visible {
	display: flex;
}

.apm-popup-box {
	position: relative;
	background: #fff;
	width: 90%;
	border-radius: 10px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.25);
	padding: 30px 25px;
	max-height: 85vh;
	overflow-y: auto;
	text-align: center;
	box-sizing: border-box;
}

.apm-popup-box.apm-transparent {
	background: transparent;
	box-shadow: none;
	padding: 0;
	border-radius: 0;
	overflow: visible;
}

.apm-popup-box.apm-transparent .apm-popup-image img {
	margin-bottom: 0;
	border-radius: 0;
	display: block;
}

.apm-popup-box.apm-transparent .apm-close-btn {
	top: 4px;
	left: 4px;
	background: rgba(255,255,255,0.85);
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 4px rgba(0,0,0,0.3);
	font-size: 20px;
	z-index: 2;
}

.apm-close-btn {
	position: absolute;
	top: 8px;
	left: 12px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #555;
	padding: 0;
}

.apm-close-btn:hover {
	color: #000;
}

.apm-popup-image img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	margin-bottom: 15px;
}

.apm-popup-text {
	font-size: 16px;
	line-height: 1.8;
	color: #333;
	margin-bottom: 10px;
}

.apm-popup-text p:first-child {
	margin-top: 0;
}

.apm-popup-button-wrap {
	margin-top: 15px;
}

.apm-popup-button {
	display: inline-block;
	background: #2271b1;
	color: #fff !important;
	padding: 10px 28px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: bold;
	transition: background 0.2s ease;
}

.apm-popup-button:hover {
	background: #135e96;
}

/* انیمیشن‌ها */
.apm-anim-zoom .apm-popup-box {
	transform: scale(0.7);
	opacity: 0;
	transition: all 0.3s ease;
}
.apm-anim-zoom.apm-visible .apm-popup-box {
	transform: scale(1);
	opacity: 1;
}

.apm-anim-fade .apm-popup-box {
	opacity: 0;
	transition: opacity 0.4s ease;
}
.apm-anim-fade.apm-visible .apm-popup-box {
	opacity: 1;
}

.apm-anim-slide-up .apm-popup-box {
	transform: translateY(60px);
	opacity: 0;
	transition: all 0.35s ease;
}
.apm-anim-slide-up.apm-visible .apm-popup-box {
	transform: translateY(0);
	opacity: 1;
}

@media (max-width: 480px) {
	.apm-popup-box {
		padding: 22px 16px;
	}
}
