/* Nozhan Countdown Counter — compact, independent, RTL */
.nozhan-countdown,
.nozhan-countdown * {
	box-sizing: border-box;
}

.nozhan-countdown[hidden],
.nozhan-countdown [hidden] {
	display: none !important;
}

.nozhan-countdown {
	--nozhan-unit-bg: #123448;
	--nozhan-unit-color: #ffffff;
	--nozhan-unit-shadow: #23c3c4;
	--nozhan-link-color: #0e9fa1;
	--nozhan-surface-bg: #f4fbfb;
	--nozhan-surface-border: #dce7e8;
	--nozhan-message-color: #123448;
	--nozhan-message-size: 14px;
	direction: rtl;
	display: flex;
	position: relative;
	align-items: center;
	gap: 18px;
	width: calc(100% - 110px);
	max-width: 1790px;
	min-height: 78px;
	margin: 12px auto;
	padding: 11px 47px 11px 14px;
	overflow: hidden;
	border: 1px solid var(--nozhan-surface-border);
	border-radius: 16px;
	color: #123448;
	background: var(--nozhan-surface-bg);
	box-shadow: 0 8px 22px rgba(16, 43, 63, .09);
	font-family: IRANSans, "Vazirmatn", Tahoma, sans-serif;
}

.nozhan-countdown::before {
	position: absolute;
	top: -76px;
	left: -42px;
	width: 170px;
	height: 170px;
	border-radius: 50%;
	background: rgba(35, 195, 196, .08);
	content: "";
	pointer-events: none;
}

.nozhan-countdown__content,
.nozhan-countdown__visual {
	position: relative;
	z-index: 1;
}

.nozhan-countdown__content {
	flex: 1 1 auto;
	min-width: 0;
	text-align: right;
}

.nozhan-countdown__kicker {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 2px;
	color: #0e9fa1;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.6;
}

.nozhan-countdown__kicker span {
	display: block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #23c3c4;
	box-shadow: 0 0 0 4px rgba(35, 195, 196, .13);
	animation: nozhan-countdown-pulse 1.7s ease-in-out infinite;
}

.nozhan-countdown__message {
	color: var(--nozhan-message-color);
	font-size: var(--nozhan-message-size);
	font-weight: 700;
	line-height: 1.8;
}

.nozhan-countdown__message p {
	display: inline;
	margin: 0;
}

.nozhan-countdown__message a,
.nozhan-countdown__text-link {
	color: var(--nozhan-link-color);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.nozhan-countdown__message a:hover,
.nozhan-countdown__message a:focus-visible {
	color: #f1ab31;
}

.nozhan-countdown__text-link {
	display: inline-block;
	margin-right: 8px;
	font-weight: 800;
}

.nozhan-countdown__visual {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.nozhan-countdown__timer {
	direction: ltr;
	display: flex;
	align-items: center;
	gap: 6px;
}

.nozhan-countdown__unit {
	display: flex;
	position: relative;
	align-items: center;
	justify-content: center;
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	padding: 5px 3px;
	border: 1px solid rgba(35, 195, 196, .28);
	border-radius: 13px;
	color: var(--nozhan-unit-color);
	background: linear-gradient(145deg, var(--nozhan-unit-bg), #1b5668);
	box-shadow: 0 7px 15px rgba(14, 159, 161, .18);
	box-shadow: 0 7px 15px color-mix(in srgb, var(--nozhan-unit-shadow) 27%, transparent);
	font-size: 9px;
	transition: transform .2s ease, box-shadow .2s ease;
}

.nozhan-countdown__unit:not(:last-child)::after {
	position: absolute;
	top: 50%;
	right: -7px;
	color: #0e9fa1;
	font-size: 16px;
	font-weight: 900;
	line-height: 1;
	transform: translateY(-50%);
	content: ":";
}

.nozhan-countdown__unit:hover {
	box-shadow: 0 10px 18px rgba(35, 195, 196, .23);
	transform: translateY(-2px);
}

.nozhan-countdown__unit span {
	display: block;
	direction: ltr;
	color: var(--nozhan-unit-color);
	font-size: 19px;
	font-weight: 900;
	line-height: 1;
	text-align: center;
	unicode-bidi: isolate;
}

.nozhan-countdown__unit em {
	display: block;
	direction: rtl;
	margin-top: 4px;
	color: rgba(255, 255, 255, .72);
	font-size: 8px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.2;
}

.nozhan-countdown__end {
	padding: 10px 14px;
	border: 1px solid rgba(14, 159, 161, .2);
	border-radius: 10px;
	color: #123448;
	background: rgba(255, 255, 255, .62);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.6;
}

.nozhan-countdown__close {
	direction: ltr;
	position: absolute;
	top: 50%;
	right: 12px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 25px;
	height: 25px;
	padding: 0;
	border: 1px solid #d5e1e4;
	border-radius: 50%;
	color: #123448;
	background: rgba(255, 255, 255, .68);
	font-family: Arial, sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	transition: border-color .2s ease, background .2s ease;
}

.nozhan-countdown__close:hover,
.nozhan-countdown__close:focus-visible {
	border-color: #f1ab31;
	background: #fff8e9;
	outline: none;
}

.nozhan-countdown--sticky {
	position: sticky;
	top: 12px;
	z-index: 100;
}

.nozhan-countdown--desktop {
	display: flex;
}

.nozhan-countdown--mobile {
	display: none;
}

.nozhan-countdown-setup-note {
	width: calc(100% - 110px);
	max-width: 1790px;
	margin: 12px auto;
	padding: 10px 14px;
	border: 1px solid #f1d49d;
	border-radius: 10px;
	color: #7b5311;
	background: #fff8e9;
	font: 13px/1.7 IRANSans, Tahoma, sans-serif;
}

@keyframes nozhan-countdown-pulse {
	0%,
	100% {
		opacity: .45;
		box-shadow: 0 0 0 3px rgba(35, 195, 196, .08);
	}
	50% {
		opacity: 1;
		box-shadow: 0 0 0 6px rgba(35, 195, 196, .18);
	}
}

@media screen and (max-width: 760px) {
	.nozhan-countdown {
		width: calc(100% - 24px);
		max-width: none;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		min-height: 0;
		padding: 12px 42px 12px 12px;
		text-align: center;
	}

	.nozhan-countdown__content {
		text-align: center;
	}

	.nozhan-countdown__visual {
		min-height: 54px;
	}

	.nozhan-countdown__timer {
		justify-content: center;
	}

	.nozhan-countdown__message {
		font-size: 13px;
	}

	.nozhan-countdown--desktop {
		display: none !important;
	}

	.nozhan-countdown--mobile {
		display: flex;
	}

	.nozhan-countdown-setup-note {
		width: calc(100% - 24px);
		max-width: none;
	}
}

@media screen and (max-width: 360px) {
	.nozhan-countdown__timer {
		gap: 4px;
	}

	.nozhan-countdown__unit {
		flex-basis: 47px;
		width: 47px;
		height: 49px;
		border-radius: 11px;
	}

	.nozhan-countdown__unit span {
		font-size: 17px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nozhan-countdown *,
	.nozhan-countdown *::before,
	.nozhan-countdown *::after {
		animation: none !important;
		transition-duration: .01ms !important;
	}
}
