/* ============================================================
   Deal Announcement Bar & Popup - styles
   ============================================================ */

/* ---------- Top moving announcement bar ---------- */
.dap-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: var(--dap-bar-bg, #d6336c);
	color: var(--dap-bar-color, #ffffff);
	z-index: 99998;
	overflow: hidden;
	white-space: nowrap;
	padding: 10px 0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	font-size: 15px;
	font-weight: 600;
}

/* Body ko thoda neeche push karein taake bar content ko na dhake. */
body.admin-bar .dap-bar {
	top: 32px;
}

.dap-bar-track {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	will-change: transform;
	animation: dap-scroll var(--dap-bar-speed, 18s) linear infinite;
}

.dap-bar-item {
	padding: 0 3rem;
}

/* Mouse hover par scroll ruk jaye (readability). */
.dap-bar:hover .dap-bar-track {
	animation-play-state: paused;
}

@keyframes dap-scroll {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-33.333%);
	}
}

/* Jinke liye motion reduce ho, unke liye scroll band. */
@media (prefers-reduced-motion: reduce) {
	.dap-bar-track {
		animation: none;
	}
}

/* ---------- Homepage popup ---------- */
.dap-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.dap-popup-overlay.dap-show {
	display: flex;
	opacity: 1;
}

.dap-popup {
	position: relative;
	background: #ffffff;
	color: #222;
	max-width: 420px;
	width: 100%;
	border-radius: 14px;
	padding: 40px 30px 34px;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	transform: translateY(20px) scale(0.96);
	transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.dap-popup-overlay.dap-show .dap-popup {
	transform: translateY(0) scale(1);
}

.dap-popup-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #999;
	cursor: pointer;
	padding: 4px 8px;
}

.dap-popup-close:hover {
	color: #333;
}

.dap-popup-title {
	margin: 0 0 12px;
	font-size: 26px;
	font-weight: 800;
	color: #d6336c;
}

.dap-popup-text {
	margin: 0 0 22px;
	font-size: 16px;
	line-height: 1.5;
	color: #444;
}

.dap-popup-btn {
	display: inline-block;
	background: #d6336c;
	color: #fff !important;
	text-decoration: none;
	padding: 12px 30px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 15px;
	transition: background 0.2s ease;
}

.dap-popup-btn:hover {
	background: #b02a58;
}

@media (max-width: 480px) {
	.dap-popup {
		padding: 34px 20px 28px;
	}
	.dap-popup-title {
		font-size: 22px;
	}
}
