/**
 * Arzin — نوار قیمت ثابت پایین صفحه (ویژه موبایل) + آیکون‌های تصویری.
 */

/* ---------- آیکون رمزارز با لوگوی واقعی ---------- */
.az-coin-icon {
	position: relative;
	overflow: hidden;
}
.az-coin-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 50%;
	position: relative;
	z-index: 1;
}
.az-coin-icon__fb {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-family: 'Inter', sans-serif;
	color: var(--az-coin, #00D9C0);
}
.az-coin-icon.is-fallback {
	background: color-mix(in srgb, var(--az-coin) 18%, transparent);
	border-color: color-mix(in srgb, var(--az-coin) 40%, transparent);
}
.az-coin-icon--sm { width: 22px; height: 22px; font-size: .625rem; }
.az-coin-icon--lg { width: 44px; height: 44px; font-size: 1.1rem; }
.az-coin-icon--md { width: 34px; height: 34px; font-size: .9375rem; }

/* ---------- نوار قیمت ---------- */
.az-ticker-bar {
	position: fixed;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: 90;
	display: flex;
	align-items: center;
	gap: 0;
	height: 44px;
	background: linear-gradient(90deg, rgba(6, 12, 22, .97), rgba(10, 18, 32, .97) 45%, rgba(6, 12, 22, .97));
	border-block-start: 1px solid rgba(0, 217, 192, .22);
	box-shadow: 0 -8px 28px rgba(0, 0, 0, .55);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	transition: transform .3s cubic-bezier(.22, .61, .36, 1), opacity .3s;
}
.az-ticker-bar.is-hidden {
	transform: translateY(110%);
	opacity: 0;
	pointer-events: none;
}

.az-ticker-bar__window {
	flex: 1;
	overflow: hidden;
	position: relative;
	height: 100%;
	/* محو شدن لبه‌ها */
	mask-image: linear-gradient(90deg, transparent, #000 42px, #000 calc(100% - 42px), transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 42px, #000 calc(100% - 42px), transparent);
}

.az-ticker-bar__track {
	display: flex;
	align-items: center;
	gap: 26px;
	height: 100%;
	width: max-content;
	padding-inline: 22px;
	animation: azTickLTR var(--az-tick-speed, 45s) linear infinite;
	will-change: transform;
}

/* چپ → راست (پیش‌فرض) */
@keyframes azTickLTR {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
/* راست → چپ */
.az-ticker-bar--rtl .az-ticker-bar__track {
	animation-name: azTickRTL;
}
@keyframes azTickRTL {
	from { transform: translateX(-50%); }
	to   { transform: translateX(0); }
}

.az-tick {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
	font-size: .8125rem;
}
.az-tick .az-coin-icon { flex: 0 0 auto; }
.az-tick__sym {
	font-weight: 700;
	color: #EAF0FA;
	letter-spacing: .02em;
	font-family: 'Inter', sans-serif;
}
.az-tick__price {
	color: var(--az-text-2);
	font-variant-numeric: tabular-nums;
	font-family: 'Inter', sans-serif;
}
.az-tick__chg { font-weight: 700; font-variant-numeric: tabular-nums; }
.az-tick__chg.is-up { color: var(--az-up); }
.az-tick__chg.is-down { color: var(--az-down); }

.az-tick::after {
	content: '';
	width: 1px;
	height: 16px;
	margin-inline-start: 12px;
	background: rgba(255, 255, 255, .09);
}

.az-ticker-bar__close {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-inline-start: 1px solid rgba(255, 255, 255, .08);
	background: transparent;
	color: var(--az-muted);
	cursor: pointer;
	transition: color .18s, background .18s;
}
.az-ticker-bar__close:hover { color: #fff; background: rgba(255, 255, 255, .05); }

/* فاصله محتوا از نوار */
body.az-has-ticker { padding-block-end: 44px; }
body.az-has-ticker .az-footer { margin-bottom: 0; }

@media (max-width: 600px) {
	.az-ticker-bar { height: 40px; }
	.az-ticker-bar__track { gap: 18px; }
	.az-tick { font-size: .75rem; }
	body.az-has-ticker { padding-block-end: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.az-ticker-bar__track { animation: none; }
	.az-ticker-bar__window { overflow-x: auto; }
}
