/* Swapwallet-blog — هویت بصری سواپ‌ولت (آبی #1463F6) و فونت یکان‌بخ */
:root {
	--sw-primary: #1463f6;
	--sw-primary-dark: #0d52d4;
	--sw-primary-soft: rgba(20, 99, 246, 0.12);
	--sw-ink: #15375a;
	--sw-muted: #64748b;
	--sw-surface: #ffffff;
	--sw-canvas: #edf5ff;
	--sw-site-bg:
		radial-gradient(900px circle at 85% -10%, rgba(20, 99, 246, 0.18), transparent 55%),
		radial-gradient(700px circle at 10% 20%, rgba(90, 168, 255, 0.12), transparent 50%),
		var(--sw-canvas);
	--sw-border: #e2e8f0;
	--sw-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
	--sw-radius-lg: 1.25rem;
	--sw-radius-md: 0.875rem;
	--sw-container: min(1140px, 100% - 2rem);
	--font-yekan: 'Yekan Bakh Pro', sans-serif;

	/* جبران ارتفاع نوار برای هنگامی که هدر ثابت (روی سکشنٔ اول قرار می‌گیرد) */
	--sw-fixed-header-clearance: clamp(3.65rem, 8.85vw + 2.35rem, 6.72rem);

	/* شیشه‌ای عمومی برای دکمه‌ها و هدر */
	--sw-glass-bg: rgba(255, 255, 255, 0.52);
	--sw-glass-bg-strong: rgba(255, 255, 255, 0.7);
	--sw-glass-stroke: rgba(255, 255, 255, 0.78);
	--sw-glass-stroke-soft: rgba(226, 232, 240, 0.9);
	--sw-glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
	--sw-glass-blur: 18px;

	/* نوار هدر — شیشه‌ای لایت */
	--sw-header-bar-tint: rgba(255, 255, 255, 0.62);
	--sw-header-bar-fill: rgba(255, 255, 255, 0.62);
	--sw-header-glass-bg: var(--sw-header-bar-fill);
	--sw-header-glass-border: var(--sw-glass-stroke-soft);
	--sw-header-glass-backdrop: blur(var(--sw-glass-blur)) saturate(1.65);
	--sw-header-glass-shadow: none;
	--sw-header-bar-padding-block: clamp(7px, 1.35vw, 11px);
	--sw-header-bar-extra-min: clamp(10px, 1.8vw, 14px);
	--sw-header-bar-outer-height: calc(
		var(--sw-header-control-h, 2.3125rem)
		+ var(--sw-header-bar-extra-min)
		+ var(--sw-header-bar-padding-block) * 2
	);
	/* شعاع ظاهری گوشهٔ هدر (نه pill کامل برای پنل‌های عریض) */
	--sw-header-surface-radius: calc(var(--sw-header-bar-outer-height) / 2);

	/* اندازهٔ کنترل‌های نوار؛ دسکتاپ */
	--sw-header-control-h: 2.3125rem;
	/* موبایل: لوگو و آیکن هم‌اندازه و جمع‌وجورتر */
	--sw-mobile-header-control-h: 2.25rem;

	/* حاشیهٔ ثابت موبایل از لبهٔ صفحه */
	--sw-mobile-header-inline-gutter: 1rem;

	/* آبی ملایم روی شیشه (دکمه‌های اصلی) */
	--sw-glass-primary-fill: rgba(20, 99, 246, 0.22);
	--sw-glass-primary-fill-hover: rgba(20, 99, 246, 0.32);

	/* نوار اسکرول */
	--sw-scrollbar-size: 10px;
	--sw-scrollbar-track: rgba(15, 23, 42, 0.06);
	--sw-scrollbar-thumb: rgba(20, 99, 246, 0.38);
	--sw-scrollbar-thumb-hover: rgba(20, 99, 246, 0.58);

	/* انیمیشن مگامنوهای هدر — دسکتاپ */
	--sw-mega-shell-duration-open: 0.34s;
	--sw-mega-shell-duration-close: 0.28s;
	--sw-mega-shell-ease-open: cubic-bezier(0.22, 1, 0.36, 1);
	--sw-mega-shell-ease-close: cubic-bezier(0.4, 0, 0.22, 1);
	--sw-mega-shell-offset: 0.5rem;
	--sw-mega-shell-scale: 0.988;
}

@font-face {
	font-family: 'Yekan Bakh Pro';
	src: url('../fonts/YekanBakh-Thin.woff2') format('woff2');
	font-weight: 100;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Yekan Bakh Pro';
	src: url('../fonts/YekanBakh-Light.woff2') format('woff2');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Yekan Bakh Pro';
	src: url('../fonts/YekanBakh-ExtraBold.woff2') format('woff2');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Yekan Bakh Pro';
	src: url('../fonts/YekanBakh-Black.woff2') format('woff2');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	direction: rtl;
	text-align: start;
	scrollbar-gutter: stable;
	scrollbar-width: thin;
	scrollbar-color: var(--sw-scrollbar-thumb) var(--sw-scrollbar-track);
}

/* قطعه‌کد و شمارهٔ لاتین خواناتر با جهت خودشان */
:is(code, pre, kbd, samp) {
	direction: ltr;
	unicode-bidi: isolate;
	text-align: left;
}

input:not([dir='ltr']),
textarea:not([dir='ltr']),
select:not([dir='ltr']) {
	direction: rtl;
	text-align: start;
}

body {
	margin: 0;
	font-family: var(--font-yekan);
	font-size: clamp(15px, 1.05vw + 12px, 17px);
	line-height: 1.85;
	background: var(--sw-site-bg);
	color: var(--sw-ink);
	-webkit-font-smoothing: antialiased;
	scrollbar-width: thin;
	scrollbar-color: var(--sw-scrollbar-thumb) var(--sw-scrollbar-track);
	/* جلوگیری از اسکرول افقی ناخواسته در کل سایت
	   clip به‌جای hidden تا position:fixed هدر نشکند */
	overflow-x: clip;
}

html {
	overflow-x: clip;
}

/* نوار اسکرول سفارشی — دسکتاپ و موبایل (اسکرول‌بارهای پنهانِ کاروسل استثنا) */
* {
	scrollbar-width: thin;
	scrollbar-color: var(--sw-scrollbar-thumb) var(--sw-scrollbar-track);
}

*::-webkit-scrollbar {
	width: var(--sw-scrollbar-size);
	height: var(--sw-scrollbar-size);
}

*::-webkit-scrollbar-track {
	background: var(--sw-scrollbar-track);
	border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
	background-color: var(--sw-scrollbar-thumb);
	border-radius: 999px;
	border: 2px solid transparent;
	background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
	background-color: var(--sw-scrollbar-thumb-hover);
}

*::-webkit-scrollbar-corner {
	background: transparent;
}

@media (max-width: 960px) {
	:root {
		--sw-scrollbar-size: 6px;
	}
}

.site-main {
	padding-block-start: var(--sw-fixed-header-clearance);
	scroll-margin-top: var(--sw-fixed-header-clearance);
}

a {
	color: var(--sw-primary-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

a:hover {
	color: var(--sw-primary);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.sw-shell {
	max-width: min(1360px, 100%);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ظرف هدر؛ ثابت و شفاف — محتوای صفحه از تحت آن می‌گذرد و سکشنٔ اول تا لبهٔ بالاست */
#sw-site-header {
	position: fixed;
	top: 0;
	inset-inline: 0;
	width: 100%;
	max-width: 100vw;
	z-index: 80;
	padding-block: clamp(0.28rem, 1vw, 0.55rem);
	padding-inline: clamp(0.65rem, 3vw, 1.85rem);
	background: transparent !important;
	border-bottom: none;
	box-shadow: none;
	pointer-events: none;
}

#sw-site-header .sw-header,
#sw-site-header > .sw-drawer-backdrop {
	pointer-events: auto;
}

/* در حالت پیشخوان نوار ابزار وردپرس فضای عمودی لازم است */
body.admin-bar #sw-site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar #sw-site-header {
		top: 46px;
	}
}

.sw-header {
	position: relative;
	z-index: 0;
	isolation: isolate;
	background: transparent;
	border-bottom: none;
	box-shadow: none;
	overflow: visible;
}

.sw-header--marketing {
	backdrop-filter: none;
}

.sw-header__bar {
	position: relative;
	z-index: 30;
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: space-between;
	gap: clamp(1rem, 2.4vw, 1.85rem);
	min-height: calc(var(--sw-header-control-h, 2.3125rem) + var(--sw-header-bar-extra-min));
	width: fit-content;
	max-width: min(940px, 100%);
	margin-inline: auto;
	padding-inline: clamp(0.72rem, 2.1vw, 1.2rem);
	padding-block: var(--sw-header-bar-padding-block);
	box-sizing: border-box;
	border-radius: 9999px;
	border: none;
	box-shadow: none;
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	isolation: isolate;
	overflow: visible;
}

.sw-header__bar::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	border: 1px solid var(--sw-header-glass-border);
	background-color: var(--sw-header-glass-bg);
	backdrop-filter: var(--sw-header-glass-backdrop);
	-webkit-backdrop-filter: var(--sw-header-glass-backdrop);
	box-shadow: var(--sw-header-glass-shadow);
	pointer-events: none;
	z-index: 0;
}

.sw-header__bar > * {
	position: relative;
	z-index: 1;
}

@media (min-width: 961px) {
	.sw-header__bar {
		justify-content: flex-start;
		gap: clamp(1rem, 2.2vw, 1.65rem);
	}

	.sw-logo-lockup__img {
		width: var(--sw-header-control-h);
		height: var(--sw-header-control-h);
		max-width: var(--sw-header-control-h);
		max-height: var(--sw-header-control-h);
		object-position: center center;
	}
}

/* دسکتاپ: لوگو (راست) | منو (وسط، در جریان) | ورود و دانلود (چپ) */
@media (min-width: 961px) {
	#sw-primary-nav.sw-nav--header-desktop-inline {
	display: flex;
		flex-flow: row nowrap;
		justify-content: center;
		align-items: center;
		flex: 1 1 auto;
		min-width: clamp(240px, 44vw, 31rem);
		max-width: none;
		width: auto;
		position: static;
		z-index: 25;
	}

	/* فوتر موبایل داخل نوار مخفی می‌ماند */
	#sw-primary-nav.sw-nav--header-desktop-inline .sw-mobile-panel-footer {
		display: none !important;
	}
}

.sw-header__end {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	flex-wrap: nowrap;
	gap: clamp(0.35rem, 1vw, 0.52rem);
}

/* RTL: لوگو ابتدای نوار (سمت راست)؛ منو و «پایان» در همین چیدمان دسکتاپ قرار دارند */
.sw-logo-lockup {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: var(--sw-ink);
	min-width: 0;
	justify-self: stretch;
	flex-shrink: 0;
}

.sw-logo-lockup__picture {
	display: block;
	line-height: 0;
}

.sw-logo-lockup__img {
	display: block;
	width: var(--sw-header-control-h, 2.3125rem);
	height: var(--sw-header-control-h, 2.3125rem);
	max-width: var(--sw-header-control-h, 2.3125rem);
	max-height: var(--sw-header-control-h, 2.3125rem);
	object-fit: contain;
	aspect-ratio: 1 / 1;
	flex-shrink: 0;
	object-position: center inline-end;
}

.sw-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: var(--sw-header-control-h, 2.3125rem);
	height: var(--sw-header-control-h, 2.3125rem);
	border-radius: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 0;
	color: var(--sw-ink);
	box-shadow: none;
	flex-shrink: 0;
	transition: transform 0.08s ease, color 0.15s ease;
}

.sw-nav-toggle:hover {
	color: var(--sw-primary);
}

.sw-nav-toggle:active {
	transform: scale(0.92);
}

/* آیکن منو */
.sw-nav-toggle__icon {
	display: block;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	transition: opacity 0.18s ease;
}

.sw-nav-toggle__icon-close {
	display: none;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	transition: opacity 0.18s ease;
}

#sw-site-header.is-nav-open .sw-nav-toggle__icon {
	display: none;
}

#sw-site-header.is-nav-open .sw-nav-toggle__icon-close {
	display: block;
}

.sw-nav--header ul.menu {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: clamp(0.8rem, 1.85vw, 1.35rem);
	list-style: none;
	padding: 0;
	margin: 0;
}

.sw-nav--header a {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem clamp(0.55rem, 1.35vw, 0.92rem);
	border-radius: 999px;
	color: var(--sw-ink);
	text-decoration: none;
	font-weight: 600;
	font-size: clamp(0.9175rem, 0.32vw + 0.8375rem, 1.0125rem);
	background: transparent;
	border: none;
	box-shadow: none;
	transition:
		color 0.14s ease,
		background 0.14s ease;
}

.sw-nav--header a:hover,
.sw-nav--header .current-menu-item > a {
	color: var(--sw-primary-dark);
	background: rgba(255, 255, 255, 0.6);
}

@media (min-width: 961px) {
	#sw-primary-nav.sw-nav--header-desktop-inline .menu a {
		display: inline;
		align-items: unset;
		padding: 0.25rem 0;
		border-radius: 0;
		font-weight: 600;
		font-size: clamp(0.905rem, 0.28vw + 0.85rem, 1rem);
		line-height: 1.45;
		background: transparent !important;
		box-shadow: none;
		border: none;
		text-decoration: none !important;
	}

	#sw-primary-nav.sw-nav--header-desktop-inline .menu a:hover {
		color: var(--sw-primary);
		background: transparent !important;
		text-decoration: none !important;
	}

	#sw-primary-nav.sw-nav--header-desktop-inline .current-menu-item > a {
		color: var(--sw-primary-dark);
		background: transparent !important;
		text-decoration: none !important;
	}

	#sw-primary-nav.sw-nav--header-desktop-inline .sw-nav-mega-trigger--desktop {
		display: inline-flex;
		align-items: center;
		gap: 0.32rem;
		padding: 0.25rem 0;
		text-decoration: none !important;
	}

	.sw-nav-mega-trigger--mobile {
		display: none !important;
	}

	.sw-nav-mega-trigger__caret {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		color: currentColor;
		opacity: 0.72;
		transition:
			transform var(--sw-mega-shell-duration-open) var(--sw-mega-shell-ease-open),
			opacity 0.2s ease;
	}

	.sw-nav-mega-trigger__caret svg {
		display: block;
	}

	.sw-nav-mega-trigger__label {
		display: inline;
	}

	.sw-nav-toggle {
		display: none !important;
	}
}

/* ── مگامنؤ هدر (خرید / قیمت) ── */
.sw-nav-mega-row {
	display: contents;
}

.sw-nav-mega-toggle {
	display: none;
}

@media (min-width: 961px) {
	.sw-nav-mega-toggle {
		display: none !important;
	}
}

@media (min-width: 961px) {
	.sw-nav--header ul.menu > .menu-item-has-mega {
		position: static;
	}

	.sw-nav-mega--mobile {
		display: none !important;
	}

	.sw-nav-mega-host {
		position: absolute;
		inset-inline: 0;
		top: 100%;
		z-index: 40;
		pointer-events: none;
		visibility: hidden;
		transform: translateY(var(--sw-mega-shell-offset)) scale(var(--sw-mega-shell-scale));
		transform-origin: top center;
		transition:
			transform var(--sw-mega-shell-duration-close) var(--sw-mega-shell-ease-close),
			visibility 0s linear var(--sw-mega-shell-duration-close);
	}

	.sw-nav-mega-host.is-open {
		pointer-events: auto;
		visibility: visible;
		transform: translateY(0) scale(1);
		transition:
			transform var(--sw-mega-shell-duration-open) var(--sw-mega-shell-ease-open),
			visibility 0s;
	}

	.sw-nav-mega-host.is-priming {
		position: fixed !important;
		inset: auto !important;
		top: 0 !important;
		left: -100vw !important;
		width: 1px !important;
		height: 1px !important;
		overflow: hidden !important;
		visibility: visible !important;
		opacity: 0 !important;
		pointer-events: none !important;
		transform: none !important;
		clip-path: inset(100%) !important;
		transition: none !important;
	}

	.sw-nav-mega-host__bridge {
		height: 0.85rem;
	}

	.sw-nav-mega--desktop > .sw-nav-mega__inner {
		border: 1px solid var(--sw-header-glass-border);
		background-color: var(--sw-header-glass-bg);
		backdrop-filter: var(--sw-header-glass-backdrop);
		-webkit-backdrop-filter: var(--sw-header-glass-backdrop);
		box-shadow: var(--sw-header-glass-shadow);
		transform: translateZ(0);
		backface-visibility: hidden;
	}

	.sw-nav-mega__panels {
		position: relative;
	}

	.sw-nav-mega__panel {
		display: none;
	}

	.sw-nav-mega__panel.is-active {
		display: block;
	}

	.sw-nav-mega-host.is-switching .sw-nav-mega__panel.is-active {
		animation: sw-nav-mega-panel-in var(--sw-mega-shell-duration-open) var(--sw-mega-shell-ease-open);
	}

	@keyframes sw-nav-mega-panel-in {
		from {
			opacity: 0;
			transform: translateY(0.35rem);
		}

		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	.menu-item-has-mega.is-mega-active > .sw-nav-mega-row .sw-nav-mega-trigger--desktop {
		color: var(--sw-primary);
		text-decoration: none !important;
	}

	.menu-item-has-mega.is-mega-active > .sw-nav-mega-row .sw-nav-mega-trigger__caret {
		transform: rotate(180deg);
		opacity: 1;
	}
}

@media (min-width: 961px) and (prefers-reduced-motion: reduce) {
	.sw-nav-mega-host,
	.sw-header-dl-host {
		transition-duration: 0.01ms !important;
	}

	.sw-nav-mega-host.is-switching .sw-nav-mega__panel.is-active {
		animation: none !important;
	}
}

.sw-nav-mega__inner {
	position: relative;
	isolation: isolate;
	border-radius: var(--sw-header-surface-radius);
	border: none;
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	box-shadow: none;
	padding: clamp(0.85rem, 2vw, 1.15rem);
}

.sw-nav-mega__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.35rem;
}

@media (min-width: 640px) {
	.sw-nav-mega__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 961px) {
	.sw-nav-mega__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.45rem 0.65rem;
	}
}

.sw-nav-mega__item {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.72rem;
	padding: 0.62rem 0.72rem;
	border-radius: 0.72rem;
	text-decoration: none;
	color: inherit;
	transition: background 0.14s ease;
	min-width: 0;
}

.sw-nav-mega__item:hover {
	background: rgba(255, 255, 255, 0.45);
	color: inherit;
}

.sw-nav-mega__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 0.62rem;
	background: rgba(255, 255, 255, 0.35);
	border: 1px solid var(--sw-border);
	overflow: hidden;
}

.sw-nav-mega__icon img {
	display: block;
	width: 1.75rem;
	height: 1.75rem;
	object-fit: cover;
	border-radius: 999px;
}

.sw-nav-mega__icon--all {
	color: var(--sw-muted);
}

.sw-nav-mega__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 0.12rem;
	min-width: 0;
	flex: 1 1 auto;
}

.sw-nav-mega__title {
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--sw-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sw-nav-mega__sign {
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--sw-muted);
	letter-spacing: 0.02em;
}

@media (max-width: 960px) {
	.sw-nav-mega-host {
		display: none !important;
	}

	.sw-nav-mega-row {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		gap: 0.35rem;
		width: 100%;
		direction: rtl;
		cursor: pointer;
	}

	.sw-nav-mega-trigger--desktop {
		display: none !important;
	}

	.sw-nav-mega-trigger--mobile {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		gap: 0.35rem;
		width: 100%;
		margin: 0;
		padding-block: clamp(0.55rem, 2.5vw, 0.72rem);
		padding-inline: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		color: var(--sw-ink);
		font: inherit;
		font-size: clamp(1.05rem, 4vw, 1.2rem);
		font-weight: 600;
		line-height: 1.45;
		text-align: start;
		cursor: pointer;
		box-sizing: border-box;
	}

	.sw-nav-mega-trigger--mobile .sw-nav-mega-trigger__label {
		flex: 0 1 auto;
		min-width: 0;
	}

	.sw-nav-mega-trigger--mobile .sw-nav-mega-trigger__caret {
		display: inline-flex;
		flex-shrink: 0;
		color: var(--sw-muted);
		opacity: 0.85;
		transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), color 0.14s ease;
	}

	.menu-item-has-mega .sw-nav-mega-trigger--desktop .sw-nav-mega-trigger__caret {
		display: none;
	}

	#sw-primary-nav.sw-nav--header .sw-nav-mega-trigger--mobile {
		background: transparent !important;
		text-decoration: none;
	}

	#sw-primary-nav.sw-nav--header ul.menu > .menu-item-has-mega {
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}

	#sw-primary-nav.sw-nav--header .sw-nav-mega-trigger {
		flex: 0 1 auto;
		width: auto;
		padding-inline-end: 0;
	}

	#sw-primary-nav.sw-nav--header .sw-nav-mega-trigger--mobile {
		flex: 1 1 auto;
		width: 100%;
	}

	.sw-nav-mega-toggle {
		display: none !important;
	}

	.menu-item-has-mega > .sw-nav-mega--mobile {
		display: grid;
		grid-template-rows: 0fr;
		overflow: hidden;
		max-height: 0;
		margin: 0;
		padding: 0;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition:
			grid-template-rows 0.38s cubic-bezier(0.22, 1, 0.36, 1),
			opacity 0.28s ease,
			max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
			visibility 0s linear 0.38s;
	}

	.menu-item-has-mega.is-mega-open > .sw-nav-mega--mobile {
		grid-template-rows: 1fr;
		max-height: none;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transition:
			grid-template-rows 0.38s cubic-bezier(0.22, 1, 0.36, 1),
			opacity 0.28s ease 0.04s,
			max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
			visibility 0s;
	}

	.menu-item-has-mega:not(.is-mega-open) > .sw-nav-mega--mobile > .sw-nav-mega__inner {
		padding: 0;
		margin: 0;
		border: 0;
	}

	.sw-nav-mega--mobile > .sw-nav-mega__inner {
		min-height: 0;
		overflow: hidden;
	}

	.sw-nav-mega--mobile > .sw-nav-mega__inner::before {
		display: none;
	}

	.sw-nav-mega--mobile > .sw-nav-mega__inner > * {
		position: relative;
		z-index: 1;
	}

	.menu-item-has-mega.is-mega-open > .sw-nav-mega--mobile > .sw-nav-mega__inner {
		margin-block-start: 0.12rem;
		margin-block-end: 0.1rem;
		margin-inline-start: 0;
		padding-block: 0.12rem 0.18rem;
		padding-inline-start: 1.45rem;
		padding-inline-end: 0;
		border-inline-start: 1px solid var(--sw-border);
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	.sw-nav-mega--mobile .sw-nav-mega__grid {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		direction: rtl;
		overflow: visible;
	}

	.sw-nav-mega--mobile .sw-nav-mega__item {
		display: block;
		width: 100%;
		text-align: start;
		padding: 0.34rem 0;
		padding-inline-start: 0;
		border-radius: 0;
		min-height: 0;
		background: transparent;
	}

	.sw-nav-mega--mobile .sw-nav-mega__item--all {
		flex-direction: row;
		justify-content: flex-start;
		align-items: flex-start;
		text-align: start;
		min-height: 0;
		padding: 0.34rem 0;
		padding-inline-start: 0;
		margin-block-end: 0;
		padding-block-end: 0.34rem;
		border-block-end: none;
		gap: 0;
	}

	.sw-nav-mega--mobile .sw-nav-mega__item--all .sw-nav-mega__text {
		align-items: flex-start;
	}

	.sw-nav-mega--mobile .sw-nav-mega__item:active {
		background: rgba(20, 99, 246, 0.08);
	}

	.sw-nav-mega--mobile .sw-nav-mega__icon,
	.sw-nav-mega--mobile .sw-nav-mega__sign {
		display: none;
	}

	.sw-nav-mega--mobile .sw-nav-mega__text {
		align-items: flex-start;
		width: auto;
	}

	.sw-nav-mega--mobile .sw-nav-mega__title {
		font-size: clamp(1.05rem, 4vw, 1.2rem);
		font-weight: 500;
		line-height: 1.45;
		white-space: normal;
		overflow: visible;
		display: block;
		-webkit-line-clamp: unset;
		text-overflow: unset;
		color: var(--sw-muted);
	}

	.sw-nav-mega--mobile .sw-nav-mega__item--all .sw-nav-mega__title {
		display: block;
		overflow: visible;
		-webkit-line-clamp: unset;
	}

	.menu-item-has-mega.is-mega-open > .sw-nav-mega-row .sw-nav-mega-trigger--mobile {
		color: var(--sw-primary);
	}

	.menu-item-has-mega.is-mega-open > .sw-nav-mega-row .sw-nav-mega-trigger--mobile .sw-nav-mega-trigger__caret {
		transform: rotate(180deg);
		color: var(--sw-primary);
	}
}

.sw-header__actions {
	display: inline-flex;
	align-items: center;
	gap: clamp(0.3rem, 1vw, 0.52rem);
	flex-shrink: 0;
	position: relative;
	z-index: 2;
	padding-inline-start: 0;
}

.sw-header-download {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--sw-header-control-h, 2.3125rem);
	height: var(--sw-header-control-h, 2.3125rem);
	color: var(--sw-muted);
	transition: transform 0.08s ease, color 0.14s ease, background 0.14s ease, border-color 0.14s ease;
	border-radius: 999px;
	border: 1px solid var(--sw-border);
	background: var(--sw-surface);
	box-shadow: none;
}

.sw-header-download:hover {
	color: var(--sw-primary-dark);
	background: rgba(20, 99, 246, 0.06);
	border-color: var(--sw-primary-soft);
}

.sw-header-download:active {
	transform: scale(0.96);
}

@media (min-width: 961px) {
	.sw-header-download-wrap {
		position: relative;
		display: inline-flex;
		align-items: center;
		align-self: center;
	}

	.sw-header__actions {
		align-items: center;
	}

	.sw-btn--header-login {
		display: inline-flex;
		align-items: center;
		align-self: center;
	}

	.sw-header-download {
		align-self: center;
	}

	.sw-header-dl-host {
		position: absolute;
		inset-inline-end: 0;
		inset-inline-start: auto;
		top: 100%;
		z-index: 40;
		width: min(13.25rem, calc(100vw - 2rem));
		pointer-events: none;
		visibility: hidden;
		transform: translateY(var(--sw-mega-shell-offset)) scale(var(--sw-mega-shell-scale));
		transform-origin: top inline-end;
		transition:
			transform var(--sw-mega-shell-duration-close) var(--sw-mega-shell-ease-close),
			visibility 0s linear var(--sw-mega-shell-duration-close);
	}

	.sw-header-dl-host.is-open {
		pointer-events: auto;
		visibility: visible;
		transform: translateY(0) scale(1);
		transition:
			transform var(--sw-mega-shell-duration-open) var(--sw-mega-shell-ease-open),
			visibility 0s;
	}

	.sw-header-dl-host.is-priming {
		position: fixed !important;
		inset: auto !important;
		top: 0 !important;
		left: -100vw !important;
		width: 1px !important;
		height: 1px !important;
		overflow: hidden !important;
		visibility: visible !important;
		opacity: 0 !important;
		pointer-events: none !important;
		transform: none !important;
		clip-path: inset(100%) !important;
		transition: none !important;
	}

	.sw-header-dl-host__bridge {
		height: 0.85rem;
	}

	.sw-header-dl-flyout__inner {
		border-radius: var(--sw-header-surface-radius);
		border: 1px solid var(--sw-header-glass-border);
		background-color: var(--sw-header-glass-bg);
		backdrop-filter: var(--sw-header-glass-backdrop);
		-webkit-backdrop-filter: var(--sw-header-glass-backdrop);
		box-shadow: var(--sw-header-glass-shadow);
		transform: translateZ(0);
		backface-visibility: hidden;
		padding: clamp(0.72rem, 1.6vw, 0.92rem);
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0.72rem;
	}

	.sw-header-dl-flyout__qr {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0.45rem;
		text-align: center;
	}

	.sw-header-dl-flyout__qr img {
		display: block;
		width: 7.5rem;
		height: 7.5rem;
		border-radius: 0.72rem;
		object-fit: contain;
	}

	.sw-header-dl-flyout__qr-caption {
		margin: 0;
		font-size: 0.78rem;
		font-weight: 500;
		line-height: 1.45;
		color: var(--sw-muted);
		text-align: center;
	}

	.sw-header-dl-flyout__cta {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: calc(var(--sw-header-control-h, 2.3125rem) - 0.15rem);
		padding-inline: 0.85rem;
		border-radius: 999px;
		font-family: inherit;
		font-size: 0.8125rem;
		font-weight: 600;
		text-decoration: none;
		color: #ffffff;
		background: var(--sw-primary);
		border: 1px solid var(--sw-primary-dark);
		transition:
			transform 0.08s ease,
			filter 0.14s ease,
			background 0.14s ease;
	}

	.sw-header-dl-flyout__cta:hover {
		color: #ffffff;
		filter: brightness(1.06);
		background: var(--sw-primary-dark);
	}

	.sw-header-dl-flyout__cta:active {
		transform: scale(0.98);
	}

	.sw-header-download-wrap.is-open > .sw-header-download {
		color: var(--sw-primary-dark);
		background: rgba(20, 99, 246, 0.06);
		border-color: var(--sw-primary-soft);
	}
}

@media (max-width: 960px) {
	.sw-header-dl-host {
		display: none !important;
	}
}

.sw-install-page {
	padding-block-start: var(--sw-fixed-header-clearance);
}

.sw-install-page .sw-app-dl {
	margin-block-start: 0;
}

.sw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	border-radius: 999px;
	font-weight: 600;
	padding: 0.55rem 1.15rem;
	text-decoration: none;
	border: 1px solid var(--sw-border);
	cursor: pointer;
	font-family: inherit;
	font-size: 0.9375rem;
	background: var(--sw-surface);
	color: var(--sw-ink);
	box-shadow: none;
	transition:
		transform 0.08s ease,
		background 0.15s ease,
		color 0.15s ease,
		filter 0.15s ease,
		border-color 0.15s ease,
		box-shadow 0.15s ease;
}

.sw-btn:not(.sw-btn--primary):not(.sw-btn--header-login):not(.sw-mobile-panel-login):not(.sw-btn--ghost):not(.sw-footer-app-btn--download):hover {
	border-color: var(--sw-muted);
	background: rgba(248, 250, 252, 0.95);
}

.sw-btn:active {
	transform: scale(0.98);
}

.sw-btn--primary {
	background: var(--sw-primary);
	color: #ffffff;
	border-color: var(--sw-primary-dark);
	box-shadow: none;
	text-decoration: none;
	filter: none;
}

.sw-btn--primary:hover {
	color: #ffffff;
	filter: brightness(1.06);
	border-color: var(--sw-primary-dark);
	background: var(--sw-primary-dark);
}

.sw-btn--ghost {
	background: var(--sw-surface);
	border-color: var(--sw-border);
	color: var(--sw-ink);
	text-decoration: none;
}

.sw-btn--ghost:hover {
	border-color: var(--sw-muted);
	background: rgba(248, 250, 252, 0.95);
	color: var(--sw-ink);
}

.sw-btn--header-login {
	border-radius: 999px;
	background: var(--sw-primary);
	color: #ffffff;
	font-weight: 600;
	font-size: clamp(0.8925rem, 0.32vw + 0.8375rem, 1rem);
	min-height: var(--sw-header-control-h, 2.3125rem);
	height: var(--sw-header-control-h, 2.3125rem);
	padding-block: 0;
	padding-inline: clamp(0.92rem, 2.1vw, 1.35rem);
	box-sizing: border-box;
	box-shadow: none;
	border: 1px solid var(--sw-primary-dark);
	text-decoration: none;
	white-space: nowrap;
}

.sw-btn--header-login:hover {
	color: #ffffff;
	filter: brightness(1.06);
	background: var(--sw-primary-dark);
	border-color: #0b47b8;
}

/* فوتر کشوی جمع‌شونده موبایل — فقط تا ۹۶۰ px */
.sw-mobile-panel-footer {
	display: none;
}


.sw-mobile-panel-login {
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	min-height: 2.6875rem;
	padding-inline: clamp(1rem, 4vw, 1.75rem);
}

.sw-mobile-panel-login:hover {
	filter: brightness(1.05);
	border-color: var(--sw-primary-dark);
	color: #ffffff;
}

/* بک‌دروپ منوی کشویی — فقط موبایل؛ خارج از `<header>` تا با overflow هدر قطع نشود */
#sw-site-header > .sw-drawer-backdrop {
	display: none;
}

@media (max-width: 960px) {
	#sw-site-header {
		padding-inline: 0;
		padding-block: 0;
		/* رنگ بک‌گراند مطابق canvas لایت — حالت شیشه‌ای حفظ می‌شه */
		background-color: rgba(237, 245, 255, 0.75) !important;
		backdrop-filter: blur(20px) saturate(1.65);
		-webkit-backdrop-filter: blur(20px) saturate(1.65);
		height: var(--sw-mobile-header-bar-h);
		overflow: hidden;
		transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	}

	#sw-site-header.is-nav-open {
		height: 100dvh;
		pointer-events: auto;
	}

	:root {
		--sw-header-surface-radius: 0;
		/* ارتفاع واقعی نوار موبایل — control-h + padding-block*2 */
		--sw-mobile-header-bar-h: calc(3rem + clamp(36px, 9vw, 48px));
	}

	#sw-site-header > .sw-header {
		position: relative;
		z-index: 10;
		height: 100%;
	}

	.sw-header.sw-header--marketing {
		position: relative;
		z-index: auto;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: transparent !important;
		border: none;
		box-shadow: none;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		overflow: hidden;
		height: 100%;
	}

	/* نوار موبایل: تمام‌عرض، بدون کپسول، flex-shrink:0 تا پایین نرود */
	.sw-header__bar {
		position: relative;
		z-index: 30;
		--sw-mobile-header-h: var(--sw-mobile-header-control-h);
		direction: rtl;
		display: flex;
		flex-flow: row wrap;
		align-items: center;
		justify-content: space-between;
		align-content: center;
		gap: 0.4rem;
		row-gap: 0;
		width: 100%;
		max-width: 100%;
		margin-inline: 0;
		padding-inline: clamp(0.65rem, 3vw, 1rem);
		padding-block: clamp(18px, 4.5vw, 24px);
		box-sizing: border-box;
		border-radius: 0;
		flex-shrink: 0;
	}

	/* ::before شیشه حذف — blur مستقیم روی #sw-site-header است */
	.sw-header__bar::before {
		display: none;
	}

	.sw-header__end {
		display: inline-flex;
		align-items: center;
		flex-shrink: 0;
		order: 2;
		margin-inline-start: auto;
		gap: 0;
	}

	.sw-header__trail {
		display: none !important;
	}

	.sw-header__actions {
		display: none !important;
	}

	.sw-logo-lockup {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		flex-shrink: 0;
		flex: 0 0 auto;
		order: 1;
		min-width: 0;
		line-height: 0;
		margin-inline-start: 0.35rem;
	}

	.sw-logo-lockup__img {
		width: 2.25rem;
		height: 2.25rem;
		max-width: 2.25rem;
		max-height: 2.25rem;
		object-fit: contain;
		object-position: center;
	}

	.sw-nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: relative;
		width: 3rem;
		height: 3rem;
		flex-shrink: 0;
		padding: 0.4rem;
		overflow: hidden;
	}

	/* هر دو آیکن روی هم و وسط‌چین */
	.sw-nav-toggle__icon,
	.sw-nav-toggle__icon-close {
		position: absolute;
		inset: 0;
		margin: auto;
		width: 28px !important;
		height: 28px !important;
		flex-shrink: 0;
		transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
	}

	/* حالت بسته: همبرگر نمایان، ضربدر پنهان */
	#sw-site-header:not(.is-nav-open) .sw-nav-toggle__icon {
		opacity: 1;
		transform: rotate(0deg) scale(1);
	}

	#sw-site-header:not(.is-nav-open) .sw-nav-toggle__icon-close {
		opacity: 0;
		transform: rotate(-90deg) scale(0.5);
		pointer-events: none;
	}

	/* حالت باز: همبرگر پنهان، ضربدر نمایان */
	#sw-site-header.is-nav-open .sw-nav-toggle__icon {
		display: block;
		opacity: 0;
		transform: rotate(90deg) scale(0.5);
		pointer-events: none;
	}

	#sw-site-header.is-nav-open .sw-nav-toggle__icon-close {
		display: block !important;
		opacity: 1;
		transform: rotate(0deg) scale(1);
	}

	/* بک‌دروپ پنل غیرفعال */
	#sw-site-header > .sw-drawer-backdrop {
		display: none !important;
		pointer-events: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
	}

	/* پنل منو — در جریان flex، پنهان/نمایان با opacity */
	#sw-site-header #sw-primary-nav.sw-nav--header-desktop-inline.sw-nav--header-mobile-panel,
	#sw-site-header #sw-primary-nav.sw-nav--header-mobile-panel {
		position: relative;
		top: auto; left: auto; right: auto; bottom: auto;
		z-index: auto;
		order: 10;
		flex: 1 1 100%;
		flex-shrink: 1;
		min-height: 0;           /* فلکس آیتم باید بتواند کوچک شود تا overflow کار کند */
		display: flex;
		flex-direction: column;
		width: 100%;
		margin: 0;
		box-sizing: border-box;
		direction: rtl;
		text-align: right;

		padding-block-start: 1rem;
		padding-block-end: clamp(0.45rem, 3vw, 0.82rem);
		padding-inline-start: 0.35rem;
		padding-inline-end: clamp(0.65rem, 3.2vw, 1rem);

		background: transparent !important;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;

		opacity: 0;
		pointer-events: none;
		overflow: hidden;

		transition: opacity 0.3s ease 0.15s;
	}

	#sw-site-header.is-nav-open #sw-primary-nav.sw-nav--header-mobile-panel {
		/* ارتفاع محدود = صفحه منهای نوار هدر — اسکرول داخلی فعال */
		max-height: calc(100dvh - var(--sw-mobile-header-bar-h));
		overflow-x: hidden;
		overflow-y: auto;
		opacity: 1;
		pointer-events: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		/* نوار اسکرول ساده، شفاف، سمت چپ (RTL) */
		scrollbar-width: thin;
		scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
	}

	#sw-site-header.is-nav-open #sw-primary-nav.sw-nav--header-mobile-panel::-webkit-scrollbar {
		width: 3px;
	}

	#sw-site-header.is-nav-open #sw-primary-nav.sw-nav--header-mobile-panel::-webkit-scrollbar-track {
		background: transparent;
	}

	#sw-site-header.is-nav-open #sw-primary-nav.sw-nav--header-mobile-panel::-webkit-scrollbar-thumb {
		background-color: rgba(0, 0, 0, 0.18);
		border-radius: 999px;
	}

	#sw-site-header.is-nav-open #sw-primary-nav.sw-nav--header-mobile-panel::-webkit-scrollbar-button,
	#sw-site-header.is-nav-open #sw-primary-nav.sw-nav--header-mobile-panel::-webkit-scrollbar-corner {
		display: none;
	}

	#sw-primary-nav.sw-nav--header ul.menu {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0.62rem;
		padding: 0;
		margin: 0;
		width: 100%;
		list-style: none;
		direction: rtl;
	}

	#sw-primary-nav.sw-nav--header ul.menu:last-of-type {
		padding-block-end: 0.35rem;
	}

	#sw-primary-nav.sw-nav--header ul.menu > li:not(:last-child) {
		border-block-end: none;
	}

	#sw-primary-nav.sw-nav--header a {
		display: block;
		width: 100%;
		text-align: start;
		justify-content: unset;
		padding-block: clamp(0.55rem, 2.5vw, 0.72rem);
		padding-inline: 0;
		font-size: clamp(1.05rem, 4vw, 1.2rem);
		font-weight: 600;
		border-radius: 0;
		box-sizing: border-box;
		background: transparent !important;
		color: var(--sw-ink);
		text-decoration: none;
	}

	#sw-primary-nav.sw-nav--header .menu a:hover,
	#sw-primary-nav.sw-nav--header .current-menu-item > a {
		background: transparent !important;
		color: var(--sw-primary-dark);
	}

	.sw-mobile-panel-footer {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0.55rem;
		width: 100%;
		box-sizing: border-box;
		margin-block-start: 0.5rem;
		padding-block-start: 0;
		border-block-start: none;
		direction: rtl;
	}

	/* دکمه‌های فوتر منو — اولویت بالاتر از استایل لینک‌های منو */
	#sw-primary-nav.sw-nav--header .sw-mobile-panel-footer a.sw-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		box-sizing: border-box;
		min-height: 2.75rem;
		padding-inline: clamp(1rem, 4vw, 1.75rem);
		border-radius: 999px;
		font-size: 0.94rem;
		font-weight: 700;
		text-align: center;
		text-decoration: none;
		box-shadow: none;
	}

	#sw-primary-nav.sw-nav--header .sw-mobile-panel-footer .sw-mobile-panel-download {
		background: transparent !important;
		border: 1.5px solid var(--sw-primary) !important;
		color: var(--sw-primary) !important;
	}

	#sw-primary-nav.sw-nav--header .sw-mobile-panel-footer .sw-mobile-panel-download:hover {
		background: var(--sw-primary-soft) !important;
		color: var(--sw-primary) !important;
		border-color: var(--sw-primary) !important;
	}

	#sw-primary-nav.sw-nav--header .sw-mobile-panel-footer .sw-mobile-panel-login {
		margin-inline: 0;
		background: var(--sw-primary) !important;
		border: 1px solid var(--sw-primary-dark) !important;
		color: #ffffff !important;
	}

	/* آیکن سمت راست آیتم‌های اصلی منو — فقط موبایل */
	.sw-nav-item-icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		color: var(--sw-primary);
		order: -1;   /* در RTL flex → سمت راست */
	}

	.sw-nav-item-icon .sw-icon {
		width: 18px !important;
		height: 18px !important;
	}

	/* لینک‌های معمولی (غیر mega) هم flex بشن تا آیکن کنار متن بیاد */
	#sw-primary-nav.sw-nav--header a.sw-nav-mega-trigger:not(.sw-nav-mega-trigger--desktop) {
		display: flex;
		align-items: center;
		gap: 0.55rem;
	}

	/* trigger مگامنو موبایل هم gap داشته باشه */
	#sw-primary-nav.sw-nav--header .sw-nav-mega-trigger--mobile {
		gap: 0.55rem;
		align-items: center;
	}

	#sw-primary-nav.sw-nav--header .sw-mobile-panel-footer .sw-mobile-panel-login:hover {
		background: var(--sw-primary-dark) !important;
		border-color: var(--sw-primary-dark) !important;
		color: #ffffff !important;
		filter: brightness(1.05);
	}
}

@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
	#sw-site-header {
		transition-duration: 0.01ms;
	}
	#sw-site-header #sw-primary-nav.sw-nav--header-desktop-inline.sw-nav--header-mobile-panel,
	#sw-site-header #sw-primary-nav.sw-nav--header-mobile-panel {
		transition-duration: 0.01ms;
	}
}

/* هیروی صفحهٔ خانه — همان لبهٔ بصری بالای صفحه تا زیر نوار؛ جبران padding اصلی اصلی */
.hero.hero--home {
	--hero-navy: #15375a;
	position: relative;
	overflow: clip;
	isolation: isolate;
	background: var(--sw-canvas);
	padding-block-start: clamp(4.5rem, 9vw + 3rem, 7.5rem);
	padding-block-end: clamp(2.5rem, 5.5vw + 1rem, 5rem);
	margin-block-start: calc(-1 * var(--sw-fixed-header-clearance));
	color: var(--sw-ink);
	text-align: center;
}

/* خطوط پرسپکتیو — شبکهٔ کم‌رنگ + درخشش کوتاه روی همان مسیر (فقط دسکتاپ) */
@media (max-width: 960px) {
	.hero--home__perspective {
		display: none;
	}
}

.hero--home__perspective {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
	-webkit-mask-image:
		linear-gradient(
			to right,
			transparent 0%,
			#000 11%,
			#000 89%,
			transparent 100%
		),
		linear-gradient(
			to bottom,
			#000 0%,
			#000 22%,
			rgba(0, 0, 0, 0.7) 50%,
			rgba(0, 0, 0, 0.28) 74%,
			transparent 100%
		);
	mask-image:
		linear-gradient(
			to right,
			transparent 0%,
			#000 11%,
			#000 89%,
			transparent 100%
		),
		linear-gradient(
			to bottom,
			#000 0%,
			#000 22%,
			rgba(0, 0, 0, 0.7) 50%,
			rgba(0, 0, 0, 0.28) 74%,
			transparent 100%
		);
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
}

.hero--home__perspective-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.hero--home__perspective-track {
	stroke: rgba(20, 99, 246, 0.04);
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
}

.hero--home__perspective-flow {
	stroke: rgba(79, 172, 254, 0.48);
	stroke-width: 1.25;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
	stroke-dasharray: 38 5000;
	stroke-dashoffset: 620;
	opacity: 0;
	filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.3));
}

.hero--home__perspective-flow--radial {
	animation: hero-home-persp-glow-r 22s ease-in-out infinite;
}

.hero--home__perspective-flow--horizontal {
	stroke-dasharray: 52 3000;
	stroke-dashoffset: 420;
	animation: hero-home-persp-glow-h 22s ease-in-out infinite;
}

/* ~۲ث ظاهر + محو؛ حرکت کوتاه و آهسته روی همان خط */
@keyframes hero-home-persp-glow-r {
	0%,
	84% {
		opacity: 0;
		stroke-dashoffset: 620;
	}

	86% {
		opacity: 0.7;
		stroke-dashoffset: 620;
	}

	94% {
		opacity: 0.65;
		stroke-dashoffset: 555;
	}

	96% {
		opacity: 0;
		stroke-dashoffset: 535;
	}

	100% {
		opacity: 0;
		stroke-dashoffset: 620;
	}
}

@keyframes hero-home-persp-glow-h {
	0%,
	84% {
		opacity: 0;
		stroke-dashoffset: 420;
	}

	86% {
		opacity: 0.58;
		stroke-dashoffset: 420;
	}

	94% {
		opacity: 0.52;
		stroke-dashoffset: 370;
	}

	96%,
	100% {
		opacity: 0;
		stroke-dashoffset: 355;
	}
}

[data-theme="dark"] .hero--home__perspective-track {
	stroke: rgba(147, 197, 253, 0.05);
}

[data-theme="dark"] .hero--home__perspective-flow {
	stroke: rgba(147, 197, 253, 0.52);
	filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.38));
}

@media (prefers-reduced-motion: reduce) {
	.hero--home__perspective-flow {
		animation: none;
		opacity: 0;
	}
}

/* ── Fade-in ورودی المان‌های هیرو ── */
@keyframes hero-elem-in {
	from {
		opacity: 0;
		transform: translateY(22px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hero--home__title,
.hero--home__lede,
.hero--home__actions,
.hero--home__trust {
	opacity: 0;
	animation: hero-elem-in 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero--home__title   { animation-delay: 0.08s; }
.hero--home__lede    { animation-delay: 0.24s; }
.hero--home__actions { animation-delay: 0.42s; }
.hero--home__trust   { animation-delay: 0.62s; }

@media (prefers-reduced-motion: reduce) {
	.hero--home__title,
	.hero--home__lede,
	.hero--home__actions,
	.hero--home__trust {
		opacity: 1;
		animation: none;
	}
}

.hero--home__grid {
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	justify-items: center;
	position: relative;
	z-index: 2;
}

.hero--home__copy {
	max-width: min(52rem, 100%);
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.hero--home__title {
	margin: clamp(2rem, 5vw + 0.85rem, 3.65rem) 0 1rem;
	font-size: clamp(1.95rem, 2.72vw + 1.08rem, 3.38rem);
	line-height: 1.38;
	text-wrap: balance;
}

.hero--home__title-brand {
	display: block;
	color: var(--sw-primary);
	font-weight: 800;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hero--home__title-claim {
	display: block;
	margin-top: 0.42rem;
	color: var(--hero-navy);
	font-weight: 800;
}

.hero--home__lede {
	margin: 0 auto 1.65rem;
	color: #334155;
	max-width: 42ch;
	font-size: clamp(1.0275rem, 0.55vw + 0.885rem, 1.15rem);
	font-weight: 600;
	line-height: 1.8;
	text-align: center;
}

.hero--home__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.62rem;
	margin-bottom: clamp(0.65rem, 2vw, 1rem);
	width: 100%;
}

.hero--home__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 3rem;
	padding: 0.58rem 1.28rem;
	border-radius: 9999px;
	font-family: inherit;
	font-weight: 600;
	font-size: clamp(0.905rem, 0.42vw + 0.795rem, 1.065rem);
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition:
		transform 0.08s ease,
		filter 0.18s ease;
}

.hero--home__btn:active {
	transform: scale(0.98);
}

.hero--home__btn-icon {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
}

.hero--home__btn--app {
	background: transparent;
	color: #ffffff;
	border: 1px solid var(--sw-primary);
	box-shadow: none;
}

.hero--home__btn--app:hover {
	color: #ffffff;
	background: rgba(20, 99, 246, 0.14);
	border-color: var(--sw-primary);
	filter: none;
	box-shadow: none;
}

[data-theme="light"] .hero--home__btn--app,
[data-theme="light"] .hero--home__btn--app:hover {
	color: var(--hero-navy);
}

.hero--home__btn--telegram {
	background: linear-gradient(135deg, var(--sw-primary) 0%, #3d82ff 50%, var(--sw-primary-dark) 100%);
	color: #ffffff;
	border-color: transparent;
	box-shadow: none;
}

.hero--home__btn--telegram:hover {
	color: #ffffff;
	filter: brightness(1.07);
	box-shadow: none;
}

/* ══════════════════════════════════════════════════
   سکشن اعتماد کاربران — زیر دکمه‌های دانلود در هیرو
   ══════════════════════════════════════════════════ */
.hero--home__trust {
	margin-block-start: clamp(1.5rem, 4vw, 2.5rem);
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3rem;
}

.hero--home__trust-side {
	font-size: clamp(0.88rem, 0.6vw + 0.76rem, 1rem);
	font-weight: 600;
	color: #94a3b8;
	white-space: nowrap;
}

.hero--home__trust-side--before {
	order: -1;
}

.hero--home__trust-side--after {
	order: 1;
}

/* فال‌بک SSR — با لود JS حذف و با بورد جایگزین می‌شود */
.hero--home__trust-count {
	font-size: clamp(2rem, 4.5vw + 0.6rem, 3.8rem);
	font-weight: 900;
	line-height: 1.1;
	color: var(--sw-primary);
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
	flex-shrink: 0;
}

/* ── مجوزهای سواپ‌ولت ── */
.hero--home__licenses {
	margin-block-start: clamp(1.4rem, 3.5vw, 2.2rem);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	opacity: 0;
	animation: hero-elem-in 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	animation-delay: 0.82s;
}

@media (prefers-reduced-motion: reduce) {
	.hero--home__licenses {
		opacity: 1;
		animation: none;
	}
}

.hero--home__licenses-title {
	margin: 0;
	font-size: clamp(0.72rem, 0.5vw + 0.62rem, 0.82rem);
	font-weight: 600;
	color: #94a3b8;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* ── ماروکی مجوزها ── */
.hero--home__licenses-marquee {
	width: 100%;
	overflow: hidden;
}

@keyframes sw-licenses-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* تراک: دو ست کنار هم، انیمیشن روی تراک */
.hero--home__licenses-track {
	display: flex;
	width: max-content;
	animation: sw-licenses-scroll 18s linear infinite;
}

/* هر ست: کارت‌ها با gap + padding-right برابر با gap تا فاصلهٔ بین دو ست مساوی باشد */
.hero--home__licenses-set {
	display: flex;
	gap: 0.5rem;
	padding-right: 0.5rem; /* direction-independent: always right in LTR marquee */
}

/* دسکتاپ: بدون انیمیشن — کارت‌ها وسط‌چین */
@media (min-width: 641px) {
	.hero--home__licenses-marquee {
		overflow: visible;
	}

	.hero--home__licenses-track {
		width: 100%;
		justify-content: center;
		animation: none;
	}

	/* ست تکراری در دسکتاپ پنهان می‌شود */
	.hero--home__licenses-track > .hero--home__licenses-set:last-child {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero--home__licenses-track {
		animation: none;
	}
}

.sw-license-card {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.45rem 0.65rem;
	border-radius: 0.75rem;
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(20, 99, 246, 0.1);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	text-align: start;
}

.sw-license-logo-box {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.sw-license-logo-box img {
	width: 26px;
	height: 26px;
	object-fit: contain;
	display: block;
}

.sw-license-text {
	font-size: clamp(0.65rem, 0.5vw + 0.58rem, 0.74rem);
	font-weight: 600;
	color: #334155;
	line-height: 1.4;
}

[data-theme="dark"] .hero--home__trust-side {
	color: #5a7a98;
}

/* ── دارک‌مود مجوزها ── */
[data-theme="dark"] .sw-license-card {
	background: rgba(255, 255, 255, 0.06);
	border-color: transparent;
}


[data-theme="dark"] .sw-license-text {
	color: #8ea5c0;
}

[data-theme="dark"] .hero--home__licenses-title {
	color: #5a7a98;
}

/* ══════════════════════════════════════
   Split-Flap Board — تابلوی فرودگاهی
   ══════════════════════════════════════ */
.sfb-board {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.22rem;
	direction: ltr;
}

/* ── یک کارت رقم ── */
.sfb-digit {
	position: relative;
	width: clamp(2.05rem, 5.5vw, 2.7rem);
	height: clamp(2.75rem, 7.4vw, 3.6rem);
	perspective: 600px;
	flex-shrink: 0;
}

/* خط میانی دید‌پذیر بین دو نیمه */
.sfb-digit::after {
	content: '';
	position: absolute;
	inset-inline: 0;
	top: 50%;
	height: 1.5px;
	background: rgba(255, 255, 255, 0.12);
	z-index: 10;
	transform: translateY(-50%);
	pointer-events: none;
}

/* لایه پایه — مشترک بین back / flap-top / flap-btm */
.sfb-digit__layer {
	position: absolute;
	inset: 0;
	border-radius: 0.38rem;
	background: #1e3a5f;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.sfb-digit__layer span {
	font-size: clamp(1.65rem, 4.5vw, 2.15rem);
	font-weight: 900;
	line-height: 1;
	color: #ffffff;
	user-select: none;
	pointer-events: none;
	direction: ltr;
}

/* لایه پشت — همیشه زیر فلپ‌ها — رقم آینده */
.sfb-digit__back {
	z-index: 0;
	box-shadow:
		inset 0 2px 6px rgba(0, 0, 0, 0.25),
		inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

/* فلپ بالایی — نشان‌دهنده نیمه بالای رقم فعلی
   pivot = خط میانی = 50% ارتفاع کارت */
.sfb-digit__flap-top {
	z-index: 2;
	clip-path: inset(0 0 50% 0 round 0.38rem 0.38rem 0 0);
	transform-origin: center 50%;
	transform: rotateX(0deg);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	will-change: transform;
}

/* فلپ پایینی — نشان‌دهنده نیمه پایین رقم آینده
   pivot = خط میانی = 50% ارتفاع کارت */
.sfb-digit__flap-btm {
	z-index: 2;
	clip-path: inset(50% 0 0 0 round 0 0 0.38rem 0.38rem);
	transform-origin: center 50%;
	transform: rotateX(0deg);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	will-change: transform;
}

/* جداکننده هزارتایی */
.sfb-sep {
	font-size: clamp(1.35rem, 3.6vw, 1.75rem);
	font-weight: 900;
	color: #1e3a5f;
	line-height: 1;
	align-self: center;
	padding-inline: 0.05rem;
	user-select: none;
}

/* ══════════════════════════════════════════════════════════
   سکشن امکانات سواپ‌ولت
   ══════════════════════════════════════════════════════════ */
.sw-features {
	position: relative;
	overflow: hidden;
	background: transparent;
	padding-block: clamp(3rem, 8vw, 5.5rem);
	color: var(--sw-ink);
	font-family: var(--font-yekan);
}

.sw-features .sw-shell {
	position: relative;
	z-index: 1;
}

.sw-features__head {
	text-align: center;
	margin-block-end: clamp(2rem, 5vw, 3rem);
}

.sw-features__title {
	font-size: clamp(1.6rem, 3.5vw + 0.5rem, 2.5rem);
	font-weight: 800;
	color: #0d2240;
	margin: 0 0 0.55rem;
}

.sw-features__lede {
	font-size: clamp(0.9rem, 1vw + 0.7rem, 1.05rem);
	color: rgba(13, 34, 64, 0.6);
	margin: 0;
	font-weight: 500;
}

/* ── نوار آیکن ── */
.sw-feat-carousel {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-block-end: clamp(1.5rem, 3vw, 2rem);
}

.sw-feat-nav {
	display: none; /* حذف‌شده از HTML هم */
}

.sw-feat-track-wrap {
	overflow: hidden;
	max-width: 100%;
}

/* بدون transform — flex centering کافیه */
.sw-feat-track {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: nowrap;
	gap: 0.55rem;
}

/* ── هر آیکن ── */
.sw-feat-item,
.sw-feat-card__title,
.sw-feat-card__text,
.sw-feat-card__icon-badge,
.sw-features__title,
.sw-features__lede {
	font-family: var(--font-yekan);
}

.sw-feat-item {
	display: inline-flex;
	align-items: center;
	gap: 0;
	flex-shrink: 0;
	width: 3.4rem;
	height: 3.4rem;
	padding: 0;
	border-radius: 0.9rem;
	background: rgba(20, 99, 246, 0.07);
	border: none;
	color: rgba(13, 34, 64, 0.5);
	cursor: pointer;
	justify-content: center;
	overflow: hidden;
	white-space: nowrap;
	transition:
		width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		gap 0.4s cubic-bezier(0.22, 1, 0.36, 1),
		padding-inline 0.4s cubic-bezier(0.22, 1, 0.36, 1),
		background 0.35s ease,
		color 0.35s ease;
}

.sw-feat-item.is-active {
	width: 3.4rem;
	padding-inline: 0;
	gap: 0;
	background: var(--sw-primary);
	color: #ffffff;
	justify-content: center;
}

.sw-feat-item__icon {
	width: 2.2rem;
	height: 2.2rem;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sw-feat-item__icon svg {
	width: 100%;
	height: 100%;
}

/* لیبل در دسکتاپ و موبایل هر دو مخفی */
.sw-feat-item__label,
.sw-feat-item.is-active .sw-feat-item__label {
	display: none;
}

/* ── کنترل‌های ناوبری ── */
.sw-feat-nav {
	flex-shrink: 0;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.sw-feat-nav:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
}

/* ── کارت‌های جزئیات — هم‌عرض با کروسل ── */
.sw-feat-cards {
	position: relative;
	max-width: min(44rem, 100%);
	margin-inline: auto;
}

.sw-feat-card {
	display: none;
	align-items: center;
	gap: clamp(1.5rem, 4vw, 3rem);
	background: var(--sw-surface);
	border: 1px solid var(--sw-border);
	border-radius: 1.25rem;
	padding: clamp(1.5rem, 3.5vw, 2.5rem);
	box-shadow: 0 4px 24px rgba(20, 99, 246, 0.07);
}

.sw-feat-card.is-active {
	display: flex;
}

/* محتوای کارت fade-only — بدون جابجایی */
@keyframes sw-feat-content-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.sw-feat-card.is-active .sw-feat-card__media {
	animation: sw-feat-content-in 0.35s ease both;
}

.sw-feat-card.is-active .sw-feat-card__body {
	animation: sw-feat-content-in 0.35s ease 0.07s both;
}

/* آیکن بزرگ — سمت راست کارت (inline-start در RTL) */
.sw-feat-card__media {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sw-feat-card__icon-wrap {
	width: clamp(140px, 20vw, 200px);
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 2rem;
	background: var(--sw-primary-soft);
	color: var(--sw-primary);
	flex-shrink: 0;
	padding: 1rem;
}

.sw-feat-card__icon-wrap .sw-icon {
	width: 72px;
	height: 72px;
}

/* ── آیکن‌های 3D با پلیس‌هولدر ── */
.sw-feat-icon-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.sw-feat-icon-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	transition: opacity 0.25s ease;
}

.sw-feat-icon-3d {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.sw-feat-icon-3d.sw-loaded {
	opacity: 1;
}

.sw-feat-icon-wrap:has(.sw-feat-icon-3d.sw-loaded) .sw-feat-icon-ph {
	opacity: 0;
}

/* محتوای متنی کارت */
.sw-feat-card__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.sw-feat-card__title {
	margin: 0;
	font-size: clamp(1.15rem, 2vw + 0.5rem, 1.55rem);
	font-weight: 800;
	color: #0d2240;
	line-height: 1.35;
}

.sw-feat-card__text {
	margin: 0;
	font-size: clamp(0.88rem, 1vw + 0.65rem, 1rem);
	color: rgba(13, 34, 64, 0.65);
	line-height: 1.85;
	font-weight: 400;
}

@media (max-width: 600px) {
	.sw-feat-phone {
		width: 130px;
		height: 230px;
	}
}

/* ── موبایل: هیرو — فاصلهٔ بیشتر بین محتواها ── */
@media (max-width: 960px) {
	.hero.hero--home {
		padding-block-end: clamp(3.25rem, 9vw + 1.5rem, 5.5rem);
	}

	.hero--home__copy {
		gap: clamp(1.65rem, 5.5vw, 2.5rem);
	}

	.hero--home__title {
		margin-block: clamp(1.35rem, 4vw, 2rem) 0 0;
	}

	.hero--home__lede {
		margin-block-end: 0;
	}

	.hero--home__actions {
		margin-block-end: 0;
	}

	.hero--home__trust {
		margin-block-start: 0;
	}

	.hero--home__licenses {
		margin-block-start: 0;
	}
}

/* ── موبایل: اسکرول افقی نامحدود ── */
@media (max-width: 960px) {
	.sw-feat-track-wrap {
		overflow-x: scroll;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		padding-inline: 0;
		/* از shell بیرون بزن تا با لبه صفحه flush بشه */
		margin-inline: calc(-1 * clamp(1rem, 4vw, 2rem));
		width: calc(100% + 2 * clamp(1rem, 4vw, 2rem));
	}

	.sw-feat-track-wrap::-webkit-scrollbar {
		display: none;
	}

	.sw-feat-track {
		justify-content: center;
		min-width: 100%;
		padding-inline-start: 0;
	}

	.sw-feat-item {
		scroll-snap-align: center;
		width: 2.6rem;
		height: 2.6rem;
		border-radius: 0.7rem;
		transition:
			background 0.22s ease,
			color      0.22s ease;
	}

	.sw-feat-item__icon {
		width: 1.6rem;
		height: 1.6rem;
	}

	.sw-feat-item.is-active {
		/* همان سایز — فقط رنگ تغییر می‌کنه */
		width: 2.6rem;
		padding-inline: 0;
		gap: 0;
		justify-content: center;
		flex-direction: row;
	}

	/* کارت: محتوا وسط‌چین */
	.sw-feat-card.is-active {
		flex-direction: column;
		text-align: center;
		align-items: center;
	}

	.sw-feat-card__media {
		align-self: center;
	}

	.sw-feat-card__body {
		align-items: center;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sw-feat-track { transition: none; }

	.sw-feat-item { transition: none; }

	.sw-feat-item__label { transition: none; }

	.sw-feat-card.is-active .sw-feat-card__media,
	.sw-feat-card.is-active .sw-feat-card__body {
		animation: none;
	}
}

/* سکشن مستقل نوار تیکر — بعد از هیرو */
.sw-market-ticker-section {
	padding-block: clamp(1.5rem, 4vw, 2.5rem);
	background: var(--sw-canvas);
}

.sw-market-ticker-section .hero-market-chip {
	margin-block-start: 0;
	max-width: min(56rem, 100%);
	margin-inline: auto;
}

/* نوار مارکیِ قیمت بازار تحت فراخوان هیرو؛ محتوای کشویی جهت واقعی افقی؛ انیمیشن translateX برای حرکت دیداری */
.hero-market-chip {
	margin-block-start: clamp(1rem, 2.85vw, 2.15rem);
	width: 100%;
	max-width: min(43rem, 100%);
	align-self: center;
}

.hero-market-chip__caption {
	margin: 0 auto 0.48rem;
	font-size: clamp(0.74rem, 0.62vw + 0.6275rem, 0.85rem);
	font-weight: 600;
	line-height: 1.62;
	text-align: center;
	color: #94a3b8;
	letter-spacing: 0.01em;
	max-width: 38ch;
}

.hero-market-chip__viewport {
	overflow: hidden;
	position: relative;
	border-radius: 9999px;
	border: 1px solid rgba(203, 213, 225, 0.95);
	background: rgba(247, 250, 255, 0.98);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.95),
		inset 0 -1px 0 rgba(241, 245, 249, 0.65);
	min-height: 3.05rem;
}

.hero-market-chip__track {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	box-sizing: border-box;
	padding-block: clamp(0.5rem, 1.5vw, 0.75rem);
	width: max-content;
	gap: 0;
	animation: hero-market-marquee-shift 72s linear infinite;
	will-change: transform;
}

.hero-market-chip__seq {
	display: inline-flex;
	align-items: center;
	gap: clamp(2rem, 6vw, 3.5rem);
	padding-inline-start: clamp(2rem, 6vw, 3.5rem);
}

.hero-market-chip__item {
	display: inline-flex;
	align-items: center;
	gap: 0.38rem;
	white-space: nowrap;
	flex-shrink: 0;
	direction: rtl;
}

.hero-market-chip__coin-img {
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	display: block;
}

.hero-market-chip__label {
	font-size: 0.74rem;
	font-weight: 700;
	line-height: 1.3;
	color: #1e293b;
}

.hero-market-chip__price {
	font-variant-numeric: tabular-nums;
	font-size: 0.72rem;
	font-weight: 600;
	color: #46607a;
	direction: ltr;
}

@keyframes hero-market-marquee-shift {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-market-chip__track {
		animation: none;
	}

	.hero-market-chip__viewport {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.hero-market-chip__seq--duplicate {
		display: none !important;
	}
}

.hero-market-chip--reduced .hero-market-chip__track {
	animation: none;
}

.hero-market-chip--reduced .hero-market-chip__viewport {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.hero-market-chip--reduced .hero-market-chip__seq--duplicate {
	display: none !important;
}

@media (min-width: 961px) {
	/* محتوا بالاتر؛ خطوط پرسپکتیو در لایهٔ جدا */
	.hero.hero--home {
		padding-block-start: clamp(3.25rem, 6.5vw + 1.75rem, 5.75rem);
	}

	.hero--home__title {
		font-size: clamp(2.55rem, 2.92vw + 1.62rem, 4.375rem);
		line-height: 1.34;
		margin-block-start: clamp(1rem, 2vw + 0.25rem, 1.75rem);
	}

	.hero--home__lede {
		max-width: 52ch;
		font-size: clamp(1.12rem, 0.92vw + 0.9175rem, 1.4325rem);
	}

	.hero-market-chip {
		max-width: min(53rem, 100%);
	}

	.hero-market-chip__coin-img {
		width: 1.65rem;
		height: 1.65rem;
	}

	.hero-market-chip__label {
		font-size: 0.8rem;
	}

	.hero-market-chip__price {
		font-size: 0.78rem;
	}
}


/* ── موبایل: فونت‌های سکشن اول بزرگ‌تر ── */
@media (max-width: 960px) {
	.hero--home__title {
		font-size: clamp(2.25rem, 9vw, 3rem);
		line-height: 1.36;
	}

	.hero--home__lede {
		font-size: clamp(1.15rem, 4vw, 1.35rem);
	}

	.hero--home__btn {
		font-size: clamp(1.05rem, 3.5vw, 1.2rem);
	}

	.hero--home__trust-side {
		font-size: clamp(0.98rem, 3vw, 1.1rem);
	}

	.hero--home__trust-count {
		font-size: clamp(2.4rem, 10vw, 3.2rem);
	}
}

/* ═══════════════════════════════════════════════════════════
   صفحه درباره ما
═══════════════════════════════════════════════════════════ */

/* هیرو */
.sw-mini-hero.sw-about-hero {
	background: transparent;
	color: var(--sw-ink);
}

.sw-about-hero .sw-shell {
	max-width: 720px;
	text-align: center;
}

.sw-about-hero h1 {
	color: var(--sw-ink);
}

.sw-mini-hero.sw-about-hero p {
	color: var(--sw-muted);
	margin-inline: auto;
}

/* ── نوار مجوزها ── */
.sw-about-licenses-strip {
	padding-block: clamp(1.25rem, 2.5vw, 2rem);
	padding-block-start: 0;
}

@media (min-width: 641px) {
	.sw-mini-hero.sw-about-hero {
		padding-block-end: clamp(1rem, 2vw, 1.5rem);
	}
}

.sw-about-licenses-marquee {
	opacity: 1 !important;
	animation: none !important;
	margin-block-start: 0 !important;
}

/* ── بخش معرفی ── */
.sw-about-intro {
	padding-block: clamp(3rem, 6vw, 5rem);
	padding-block-end: clamp(1.5rem, 3vw, 2.5rem);
}

.sw-about-intro__grid {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(1.5rem, 3vw, 2rem);
}

.sw-about-intro__copy,
.sw-about-company-info,
.sw-about-support {
	max-width: 720px;
	width: 100%;
}

.sw-about-intro__copy {
	background: var(--sw-surface);
	border: 1px solid var(--sw-border);
	border-radius: 1.25rem;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	text-align: right;
}

.sw-about-intro__copy > p:first-child {
	font-size: clamp(1rem, 1.2vw + 0.75rem, 1.2rem);
	line-height: 1.9;
	color: var(--sw-ink);
	margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}

.sw-about-feature-block {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	margin-block-end: clamp(1.25rem, 2.5vw, 1.75rem);
}

.sw-about-feature-block__icon {
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0.85rem;
	background: var(--sw-primary-soft);
	color: var(--sw-primary);
	margin-top: 0.1rem;
}

.sw-about-feature-block strong {
	display: block;
	font-size: 1rem;
	font-weight: 800;
	color: var(--sw-ink);
	margin-block-end: 0.35rem;
}

.sw-about-feature-block p {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.85;
	color: var(--sw-muted);
}

.sw-about-mission {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.85;
	color: var(--sw-primary-dark);
	border-inline-start: 3px solid var(--sw-primary);
	padding-inline-start: 1rem;
	margin: clamp(1.25rem, 3vw, 2rem) 0 0;
}


/* عنوان پشتیبانی */
.sw-about-support__title {
	font-size: 1rem;
	font-weight: 800;
	color: var(--sw-ink);
	margin: 0 0 1rem;
}

/* اطلاعات شرکت */
.sw-about-company-info {
	margin: 0;
	padding: 1.1rem 1.25rem;
	background: var(--sw-surface);
	border: 1px solid var(--sw-border);
	border-radius: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

@media (min-width: 641px) {
	.sw-about-company-info {
		flex-direction: row;
		align-items: center;
		gap: 0;
	}

	.sw-about-company-info__row {
		flex: 1;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
		gap: 0.25rem;
		padding-inline: 1rem;
	}

	.sw-about-company-info__row + .sw-about-company-info__row {
		border-inline-start: 1px solid var(--sw-border);
	}
}

.sw-about-company-info__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
}

.sw-about-company-info__row dt {
	color: var(--sw-muted);
	font-weight: 500;
}

.sw-about-company-info__row dd {
	margin: 0;
	font-weight: 700;
	color: var(--sw-ink);
}

/* پشتیبانی */
.sw-about-support {
	padding: 1.25rem;
	background: var(--sw-surface);
	border: 1px solid var(--sw-border);
	border-radius: 1rem;
}

.sw-about-support__lede {
	font-size: 0.85rem;
	color: var(--sw-muted);
	margin: -0.5rem 0 1rem;
}

.sw-about-support__items {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.sw-about-support__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 0.9rem;
	border-radius: 0.75rem;
	background: var(--sw-canvas);
	border: 1px solid var(--sw-border);
	text-decoration: none;
	color: var(--sw-ink);
	transition: border-color 0.18s, background 0.18s;
}

.sw-about-support__item:hover {
	border-color: var(--sw-primary);
	background: var(--sw-primary-soft);
	color: var(--sw-ink);
}

.sw-about-support__num {
	flex-shrink: 0;
	width: 1.75rem;
	height: 1.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--sw-primary-soft);
	color: var(--sw-primary);
	font-size: 0.78rem;
	font-weight: 800;
}

.sw-about-support__info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.sw-about-support__info strong {
	font-size: 0.85rem;
	font-weight: 700;
}

.sw-about-support__info span {
	font-size: 0.75rem;
	color: var(--sw-muted);
}

.sw-about-support__phone {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--sw-primary);
}

/* ── بخش سئو ── */
.sw-about-seo {
	padding-block: clamp(3rem, 6vw, 5rem);
}

.sw-about-seo__inner {
	display: flex;
	flex-direction: column;
	gap: clamp(2rem, 4vw, 3rem);
}

.sw-about-seo__section {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
}

.sw-about-seo__icon {
	flex-shrink: 0;
	width: 3rem;
	height: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 1rem;
	background: var(--sw-primary-soft);
	color: var(--sw-primary);
	margin-top: 0.15rem;
}

.sw-about-seo__content h2 {
	margin: 0 0 0.65rem;
	font-size: clamp(1.05rem, 1vw + 0.85rem, 1.25rem);
	font-weight: 800;
	color: var(--sw-ink);
	line-height: 1.4;
}

.sw-about-seo__content p {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.9;
	color: var(--sw-muted);
}

/* ── CTA ── */
.sw-about-cta {
	padding-block: clamp(3rem, 7vw, 5.5rem);
	text-align: center;
}

.sw-about-cta__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	max-width: 600px;
}

.sw-about-cta h2 {
	margin: 0;
	font-size: clamp(1.5rem, 2vw + 0.9rem, 2.2rem);
	font-weight: 900;
	line-height: 1.35;
	color: var(--sw-ink);
}

.sw-about-cta p {
	margin: 0;
	font-size: clamp(0.9rem, 0.5vw + 0.8rem, 1rem);
	line-height: 1.85;
	color: var(--sw-muted);
	max-width: 50ch;
}

.sw-about-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin-top: 0.5rem;
}

.sw-about-cta__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 3rem;
	padding: 0.6rem 1.5rem;
	border-radius: 999px;
	font-family: inherit;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	transition: transform 0.15s ease, filter 0.18s ease;
}

.sw-about-cta__btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

.sw-about-cta__btn--tg {
	background: #29a0e4;
	color: #ffffff;
	border: none;
}

/* dark mode — کارت‌های سکشن معرفی خودکار از --sw-surface استفاده می‌کنند */

/* ── دکمه شناور پشتیبانی ── */
.sw-support-fab {
	position: fixed;
	bottom: clamp(1.25rem, 3vw, 2rem);
	right: clamp(1rem, 3vw, 2rem);
	left: auto;
	z-index: 990;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--sw-primary);
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: none;
	transition: transform 0.18s ease, filter 0.18s ease;
}

.sw-support-fab:hover {
	transform: translateY(-2px);
	filter: brightness(1.1);
}

.sw-support-fab:active {
	transform: scale(0.94);
}

/* پنهان‌کردن دکمه پیش‌فرض Chatwoot — فقط bubble، نه widget container */
.woot-widget-bubble {
	display: none !important;
}

/* سایز و موقعیت پاپ‌آپ Chatwoot در دسکتاپ */
@media (min-width: 641px) {
	.woot-widget-holder,
	.woot--widget-holder {
		width: 340px !important;
		height: 520px !important;
		max-height: 520px !important;
		right: clamp(1rem, 3vw, 2rem) !important;
		left: auto !important;
		bottom: 90px !important;
		transform-origin: bottom right !important;
		animation: sw-chatwoot-open 0.22s cubic-bezier(0.22, 1, 0.36, 1) both !important;
	}
}

@keyframes sw-chatwoot-open {
	from { opacity: 0; transform: translateY(16px) scale(0.97); }
	to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* باند CTA انتهای صفحهٔ خانه (تم تیره) */
.sw-home-cta {
	position: relative;
	overflow: clip;
	isolation: isolate;
	background:
		radial-gradient(720px circle at 8% -10%, rgba(20, 99, 246, 0.22), transparent 55%),
		radial-gradient(820px circle at 88% 0%, rgba(90, 168, 255, 0.12), transparent 50%),
		linear-gradient(180deg, #0b1220 0%, #121a29 52%, var(--sw-canvas) 100%);
	padding-block: clamp(3rem, 6vw + 2rem, 4.35rem);
	color: #eaf1ff;
}

.sw-home-cta::before {
	content: '';
	position: absolute;
	inset: -20% auto auto 50%;
	width: clamp(560px, 70vw, 880px);
	height: clamp(560px, 70vw, 880px);
	translate: -50% 0;
	border-radius: 50%;
	filter: blur(90px);
	background: radial-gradient(circle at 50% 50%, rgba(20, 99, 246, 0.45), transparent 62%);
	opacity: 0.75;
	z-index: -2;
	pointer-events: none;
}

.sw-home-cta .sw-shell {
	position: relative;
	z-index: 1;
	max-width: var(--sw-container);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
}

.sw-home-cta__inner {
	display: grid;
	gap: clamp(1rem, 2.6vw, 1.72rem);
	text-align: center;
	max-width: 70ch;
	margin-inline: auto;
}

.sw-home-cta h2 {
	margin: 0;
	font-size: clamp(1.55rem, 1.55vw + 0.94rem, 2.06rem);
	font-weight: 900;
	line-height: 1.35;
	text-wrap: balance;
	color: inherit;
}

.sw-home-cta__lede {
	margin: 0;
	color: rgba(231, 251, 245, 0.9);
	line-height: 1.75;
	font-size: clamp(0.95rem, 0.42vw + 0.852rem, 1.05rem);
}

.sw-home-cta__buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.55rem;
	margin-top: 0.2rem;
}

.sw-home-cta__btn-telegram {
	border-color: rgba(234, 241, 255, 0.45);
	background: rgba(0, 0, 0, 0.15);
	color: #eaf1ff;
	text-decoration: none;
}

.hero-grid {
	max-width: var(--sw-container);
	margin-inline: auto;
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.92fr);
	gap: clamp(1.75rem, 4vw, 3.25rem);
	align-items: center;
}

/* هیروی خانه تک‌ستونه و وسط — الگوی دوسوتونهٔ .hero-grid بعد از تعریف نباید برنده شود */
.hero.hero--home > .hero-grid {
	grid-template-columns: minmax(0, 1fr);
	justify-items: center;
	column-gap: 0;
	row-gap: 0;
	align-items: start;
}

.hero-card {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	padding: clamp(1.25rem, 3vw, 1.85rem);
	border-radius: var(--sw-radius-lg);
	box-shadow: 0 16px 50px rgba(0, 0, 0, 0.32);
	display: grid;
	gap: 0.95rem;
}

.hero-card-heading {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.65rem;
}

.hero-card-heading strong {
	font-size: clamp(1.05rem, 0.5vw + 0.92rem, 1.22rem);
}

.hero-card-muted {
	margin: 0;
	color: rgba(234, 241, 255, 0.82);
	font-size: 0.918rem;
	line-height: 1.72;
}

.section {
	max-width: var(--sw-container);
	margin-inline: auto;
	padding-block: clamp(2.25rem, 4vw, 4rem);
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1rem;
	margin-bottom: 1.65rem;
}

.section-head h2 {
	margin: 0;
	font-size: clamp(1.55rem, 1.2vw + 1rem, 2rem);
	line-height: 1.35;
	text-wrap: balance;
}

.section-head .section-lede {
	margin: 0.45rem 0 0;
	color: var(--sw-muted);
	font-size: clamp(0.935rem, 0.35vw + 0.85rem, 1.02rem);
	max-width: 46ch;
}

.sw-link-soft {
	display: inline-flex;
	align-items: center;
	font-weight: 700;
	color: var(--sw-primary-dark);
	text-decoration: none;
}

.sw-link-soft:hover {
	color: var(--sw-primary);
}

.banner-slot {
	max-width: var(--sw-container);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
}

.banner-slot-inner {
	min-height: 120px;
	background: repeating-linear-gradient(
		-55deg,
		var(--sw-surface),
		var(--sw-surface) 12px,
		color-mix(in srgb, var(--sw-primary-soft) 60%, transparent) 12px,
		color-mix(in srgb, var(--sw-primary-soft) 60%, transparent) 26px
	);
	border: 2px dashed color-mix(in srgb, var(--sw-muted) 40%, transparent);
	border-radius: var(--sw-radius-md);
	box-shadow: var(--sw-shadow);
	padding: clamp(1rem, 2.5vw, 1.5rem);
}

.banner-slot .widget {
	margin-block: 0;
}

.banner-label {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	border-radius: 6px;
	background: var(--sw-primary-soft);
	color: var(--sw-primary-dark);
	font-weight: 800;
	font-size: 0.75rem;
	margin-bottom: 0.85rem;
}

/* ── سکشن آخرین پست‌ها ── */
.sw-latest-section {
	padding-inline: clamp(1rem, 4vw, 2rem);
}

.sw-latest-head {
	text-align: center;
	margin-block-end: 1.75rem;
}

.sw-latest-head h2 {
	margin: 0 0 0.45rem;
	font-size: clamp(1.55rem, 2vw + 0.85rem, 2.25rem);
	font-weight: 800;
	line-height: 1.32;
}

.sw-latest-title-primary {
	color: var(--sw-ink);
}

.sw-swapmag__title-primary {
	color: var(--sw-primary);
}

/* هدر اصلی سواپ‌مگ — بالای اسلایدر */
.sw-swapmag__main-head {
	padding-block-start: clamp(2rem, 4vw, 3rem);
	padding-block-end: clamp(1rem, 2vw, 1.5rem);
	text-align: center;
}

.sw-swapmag__main-head h1 {
	font-size: clamp(1.4rem, 2.5vw + 0.5rem, 2.1rem);
	font-weight: 700;
	color: var(--sw-ink);
	margin: 0;
	line-height: 1.4;
}

/* هر دو span در یک خط — ارث از h1 */
.sw-swapmag__main-sub {
	color: var(--sw-ink);
}

/* عنوان صفحه سواپ‌مگ */
.sw-swapmag__carousel-section .sw-latest-head h1 {
	margin: 0 0 0.45rem;
	font-size: clamp(1.55rem, 2vw + 0.85rem, 2.25rem);
	font-weight: 800;
	line-height: 1.32;
}

@media (max-width: 700px) {
	.sw-swapmag__carousel-section .sw-latest-head h1 {
		font-size: 1.65rem;
		margin-block-end: 0.3rem;
	}

	.sw-swapmag__carousel-section .sw-latest-head .section-lede {
		font-size: 0.95rem;
		color: var(--sw-muted);
	}
}

.sw-latest-head .section-lede {
	font-size: clamp(0.92rem, 0.5vw + 0.82rem, 1.02rem);
	font-weight: 500;
	color: var(--sw-muted);
	margin: 0 auto 0.75rem;
	color: var(--sw-muted);
	font-size: clamp(0.85rem, 0.35vw + 0.78rem, 0.95rem);
	max-width: 52ch;
}

.sw-latest-slider-wrap {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	overflow: hidden; /* جلوگیری از نمایش کارت‌های کناری و scrollbar */
}

/* اسلایدر افقی — دسکتاپ ۴ کارت، تا ۸ پست */
.sw-latest-slider {
	container-type: inline-size;
	container-name: latest-slider;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.sw-latest-slider::-webkit-scrollbar { display: none; }

.sw-latest-track {
	display: flex;
	flex-direction: row;
	gap: 0.85rem;
	align-items: stretch;
	width: max-content;
	min-width: 100%;
}

.sw-latest-track .post-card {
	flex-shrink: 0;
	scroll-snap-align: center;
}

/* دسکتاپ: چهار کارت در هر نما */
@container latest-slider (min-width: 701px) {
	.sw-latest-track .post-card {
		flex: 0 0 calc((100cqw - 3 * 0.85rem) / 4);
	}
}

@supports not (container-type: inline-size) {
	@media (min-width: 701px) {
		.sw-latest-track .post-card {
			flex: 0 0 clamp(200px, 22vw, 260px);
		}
	}
}

/* موبایل: یک کارت کامل در هر نما */
@container latest-slider (max-width: 700px) {
	.sw-latest-track .post-card {
		flex: 0 0 100cqw;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}
}

@media (max-width: 700px) {
	/* اسلایدر لبه‌به‌لبه — بدون padding تا کارت‌های کناری نپیچن */
	.sw-swapmag__carousel-section,
	.sw-latest-section {
		padding-inline: 0;
	}

	.sw-latest-head {
		padding-inline: 1rem;
	}

	.sw-latest-slider {
		padding-inline: 0;
		overflow-x: scroll;
		scroll-snap-type: x mandatory;
		scroll-padding-inline-start: 0;
	}

	/* gap بین کارت‌ها فقط هنگام swipe دیده می‌شه */
	.sw-latest-track {
		gap: 0.75rem;
		padding-inline: 0;
	}

	.sw-latest-track .post-card {
		flex: 0 0 100cqw;
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}

	/* متن‌های کارت — بزرگ‌تر در موبایل */
	.sw-latest-section .post-card-title,
	.sw-swapmag__carousel-section .post-card-title {
		font-size: 1.1rem;
	}

	.sw-latest-section .post-excerpt,
	.sw-swapmag__carousel-section .post-excerpt {
		font-size: 0.88rem;
		-webkit-line-clamp: 3;
		line-clamp: 3;
	}

	.sw-latest-section .post-meta-date,
	.sw-swapmag__carousel-section .post-meta-date {
		font-size: 0.8rem;
	}

	/* سکشن آخرین مقالات مگ — محتوای کارت کوچک‌تر */
	.sw-swapmag__latest-section .post-card-title {
		font-size: 0.88rem;
	}

	.sw-swapmag__latest-section .post-excerpt {
		font-size: 0.73rem;
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}

	.sw-swapmag__latest-section .post-meta-date {
		font-size: 0.68rem;
	}

	.sw-swapmag__latest-section .post-card-body {
		padding: 0.65rem;
	}
}

/* نقطه‌های اسلاید — فقط موبایل */
.sw-latest-footer {
	display: flex;
	justify-content: center;
	padding-block-start: clamp(1.25rem, 2.5vw, 2rem);
}

.sw-latest-more-link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.sw-latest-dots {
	display: none;
	justify-content: center;
	align-items: center;
	gap: 0.45rem;
	padding-block-start: 0.15rem;
}

@media (max-width: 700px) {
	.sw-latest-dots:not([hidden]) {
		display: flex;
	}
}

.sw-latest-dot {
	width: 0.45rem;
	height: 0.45rem;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: var(--sw-border);
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
}

.sw-latest-dot.is-active {
	background: var(--sw-primary);
	transform: scale(1.25);
}

.sw-latest-dot:hover {
	background: var(--sw-primary-soft);
}

.card-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
}

.post-card {
	background: var(--sw-surface);
	border-radius: var(--sw-radius-lg);
	border: 2px solid var(--sw-border);
	box-shadow: none;
	overflow: clip;
	transition: border-color 0.15s ease;
	display: grid;
	grid-template-rows: auto 1fr;
}

.post-card:hover {
	border-color: var(--sw-primary);
}

.post-card-thumb {
	width: 100%;
	aspect-ratio: 3 / 2;      /* نسبت ۳:۲ متناسب با سایز ۶۰۰×۴۰۰ */
	flex-shrink: 0;
	overflow: clip;
	position: relative;
	background: radial-gradient(circle at 30% -10%, rgba(20, 99, 246, 0.4), transparent 55%);
}

.post-card-thumb a {
	display: block;
	height: 100%;
}

.post-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.post-card-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	align-items: center;
}

.post-card-body {
	display: grid;
	grid-template-rows: auto auto auto 1fr;
	gap: 0.4rem;
	padding: 0.85rem;
	text-align: right;
	direction: rtl;
	min-width: 0;            /* جلوگیری از overflow متن در grid */
	overflow: hidden;
}

.post-meta-row {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--sw-muted);
	text-align: right;
}

.post-cat-pill {
	display: inline-block;
	padding: 0.15em 0.6em;
	border-radius: 999px;
	background: rgba(var(--sw-primary-rgb, 20, 99, 246), 0.12);
	color: var(--sw-primary);
	font-size: 0.68rem;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.6;
	transition: background 0.15s ease;
}

.post-cat-pill:hover {
	background: rgba(var(--sw-primary-rgb, 20, 99, 246), 0.22);
}

.post-meta-date {
	color: var(--sw-muted);
	font-size: 0.72rem;
	font-weight: 500;
	margin-inline-start: auto;
}

.post-card-title {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.4;
	text-wrap: pretty;
	font-weight: 700;
	overflow-wrap: break-word;
	word-break: break-word;
}

.post-card-title a {
	color: inherit;
	text-decoration: none;
}

.post-card-title a:hover {
	color: var(--sw-primary-dark);
}

.post-excerpt {
	margin: 0;
	color: var(--sw-muted);
	font-size: 0.78rem;
	line-height: 1.65;
	display: -webkit-box;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.categories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
	gap: 1rem;
}

.cat-card {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), #fff);
	border: 1px solid var(--sw-border);
	border-radius: var(--sw-radius-lg);
	padding: clamp(1.05rem, 2.8vw, 1.36rem);
	display: grid;
	grid-template-rows: auto 1fr auto;
	gap: 0.72rem;
	min-height: 190px;
}

.cat-card-name {
	text-decoration: none;
	color: var(--sw-ink);
	font-weight: 900;
	font-size: 1.15rem;
}

.cat-card-desc {
	margin: 0;
	color: var(--sw-muted);
	font-size: 0.94rem;
}

.cat-card-count {
	font-weight: 800;
	font-size: 0.85rem;
	color: var(--sw-primary-dark);
}

.site-layout {
	max-width: var(--sw-container);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
	padding-block: clamp(1.85rem, 4vw, 3.25rem);
	display: grid;
	gap: 1.5rem;
	grid-template-columns: minmax(0, 1fr) minmax(0, clamp(288px, 30vw, 340px));
}

.site-layout.sidebar-off {
	grid-template-columns: minmax(0, 1fr);
}

.sidebar .widget {
	background: var(--sw-surface);
	border: 1px solid var(--sw-border);
	border-radius: var(--sw-radius-lg);
	padding: clamp(1rem, 2.8vw, 1.35rem);
	margin-bottom: 1rem;
	box-shadow: var(--sw-shadow);
}

.sidebar .widgettitle {
	font-size: 1.05rem;
	font-weight: 900;
	margin: 0 0 0.9rem;
}

/* سایدبار وبلاگ — مقالات اخیر، بنر */
.sw-sidebar-recent {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}

.sw-sidebar-recent__item {
	margin: 0;
}

.sw-sidebar-recent__card {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.55rem 0.65rem;
	border-radius: var(--sw-radius-md);
	background: color-mix(in srgb, var(--sw-ink) 4%, var(--sw-surface));
	border: 1px solid color-mix(in srgb, var(--sw-border) 80%, transparent);
	text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.sw-sidebar-recent__card:hover {
	border-color: color-mix(in srgb, var(--sw-primary) 35%, var(--sw-border));
	background: color-mix(in srgb, var(--sw-primary) 6%, var(--sw-surface));
}

.sw-sidebar-recent__thumb {
	flex-shrink: 0;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 0.55rem;
	overflow: hidden;
}

.sw-sidebar-recent__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sw-sidebar-recent__fallback {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--sw-primary-soft), color-mix(in srgb, var(--sw-primary) 20%, var(--sw-surface)));
}

.sw-sidebar-recent__title {
	flex: 1;
	min-width: 0;
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.55;
	color: var(--sw-ink);
}

.sidebar--blog .sw-sidebar-banner-slot {
	margin-bottom: 1rem;
}

.sidebar--blog .sw-sidebar-banner {
	line-height: 0;
	border-radius: var(--sw-radius-lg);
	overflow: hidden;
}

.sidebar--blog .sw-sidebar-banner__link {
	display: block;
	line-height: 0;
}

.sidebar--blog .sw-sidebar-banner__img {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: inherit;
}

.entry-header h1 {
	margin: 0 0 1rem;
	line-height: 1.38;
	text-wrap: pretty;
	font-size: clamp(1.8rem, 2vw + 1rem, 2.46rem);
}

.entry-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	color: var(--sw-muted);
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 1.65rem;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content figure {
	max-width: 100%;
	border-radius: var(--sw-radius-md);
	overflow: clip;
	box-shadow: var(--sw-shadow);
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.42rem;
	margin-top: 2rem;
}

.entry-tags a {
	background: var(--sw-primary-soft);
	color: var(--sw-primary-dark);
	padding: 0.3rem 0.65rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.8rem;
	text-decoration: none;
}

.pagination {
	max-width: var(--sw-container);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
	padding-block: 2rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.56rem;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	color: var(--sw-muted);
}

.pagination a {
	text-decoration: none;
	background: var(--sw-surface);
	border: 1px solid var(--sw-border);
	color: inherit;
	min-width: 2.56rem;
	text-align: center;
	padding-block: 0.45rem;
	border-radius: 10px;
}

.pagination span.current {
	background: var(--sw-primary);
	border-color: var(--sw-primary-dark);
	color: #ffffff;
	min-width: 2.56rem;
	text-align: center;
	padding-block: 0.45rem;
	border-radius: 10px;
	display: inline-block;
}

.comments-wrap {
	max-width: var(--sw-container);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
	padding-block: 2rem 4rem;
}

.comments-title {
	margin: 0 0 1.25rem;
	font-size: 1.5rem;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}

.comment-body {
	padding: clamp(1rem, 3vw, 1.35rem);
	background: var(--sw-surface);
	border: 1px solid var(--sw-border);
	border-radius: var(--sw-radius-lg);
	box-shadow: var(--sw-shadow);
}

.comment-metadata {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
	flex-wrap: wrap;
	font-size: 0.85rem;
	color: var(--sw-muted);
}

.comment-awaiting-moderation {
	background: rgba(245, 158, 11, 0.12);
	border-radius: var(--sw-radius-md);
	padding: 0.35rem 0.62rem;
	color: #92400e;
	font-weight: 700;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
	display: block;
	font-weight: 800;
	margin-bottom: 0.35rem;
}

.comment-form input[type='text'],
.comment-form input[type='email'],
.comment-form textarea {
	width: 100%;
	padding: 0.65rem 0.76rem;
	border-radius: var(--sw-radius-md);
	border: 1px solid var(--sw-border);
	font-family: inherit;
	font-size: 1rem;
}

.form-submit input[type='submit'] {
	cursor: pointer;
}

/* ── سکشن SEO آکاردئون ── */
.sw-seo-accordion {
	background: var(--sw-canvas);
	padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.sw-seo-accordion__body {
	position: relative;
	max-height: 8.5rem;
	overflow: hidden;
	transition: max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1);
	-webkit-mask-image: linear-gradient(
		to bottom,
		#000 0%,
		#000 42%,
		rgba(0, 0, 0, 0.72) 68%,
		rgba(0, 0, 0, 0.28) 86%,
		transparent 100%
	);
	mask-image: linear-gradient(
		to bottom,
		#000 0%,
		#000 42%,
		rgba(0, 0, 0, 0.72) 68%,
		rgba(0, 0, 0, 0.28) 86%,
		transparent 100%
	);
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

.sw-seo-accordion__body[aria-expanded="true"] {
	max-height: none;
	overflow: visible;
	-webkit-mask-image: none;
	mask-image: none;
}

.sw-seo-accordion__content {
	padding-block-end: 0.5rem;
}

.sw-seo-accordion__heading {
	font-size: clamp(0.95rem, 1vw + 0.8rem, 1.1rem);
	font-weight: 700;
	color: var(--sw-ink);
	margin-block: 1.25rem 0.5rem;
	line-height: 1.5;
}

.sw-seo-accordion__heading:first-child {
	margin-block-start: 0;
}

.sw-seo-accordion__content h2,
.sw-seo-accordion__content h3 {
	font-size: clamp(0.95rem, 1vw + 0.8rem, 1.1rem);
	font-weight: 700;
	color: var(--sw-ink);
	margin-block: 1.25rem 0.5rem;
	line-height: 1.5;
}

.sw-seo-accordion__content h2:first-child,
.sw-seo-accordion__content h3:first-child {
	margin-block-start: 0;
}

.sw-seo-accordion__content ul,
.sw-seo-accordion__content ol {
	margin-block: 0 0.65rem;
	padding-inline-start: 1.25rem;
	font-size: clamp(0.8rem, 0.5vw + 0.72rem, 0.9rem);
	line-height: 1.85;
	color: var(--sw-muted);
}

.sw-seo-accordion__content p {
	font-size: clamp(0.8rem, 0.5vw + 0.72rem, 0.9rem);
	line-height: 1.85;
	color: var(--sw-muted);
	margin-block: 0 0.65rem;
}

.sw-seo-accordion__disclaimer {
	font-size: 0.78rem !important;
	font-style: italic;
	opacity: 0.7;
}

/* دکمه toggle — فلش وسط‌چین */
.sw-seo-accordion__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-inline: auto;
	margin-block-start: 0.85rem;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	border: 1px solid var(--sw-border);
	background: var(--sw-surface);
	color: var(--sw-muted);
	cursor: pointer;
	transition: background 0.18s, color 0.18s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sw-seo-accordion__toggle:hover {
	background: var(--sw-primary-soft);
	color: var(--sw-primary);
}

.sw-seo-accordion__toggle[aria-expanded="true"] .sw-seo-accordion__arrow {
	transform: rotate(180deg);
}

.sw-seo-accordion__arrow {
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
	flex-shrink: 0;
}

/* ══════════════════════════════════════════
   فوتر سواپ‌ولت
   ══════════════════════════════════════════ */
.site-footer {
	background: var(--sw-canvas);
	border-top: 1px solid var(--sw-border);
	font-family: var(--font-yekan);
}

@media (max-width: 640px) {
	.site-footer {
		padding-block-end: 5.5rem;
	}
}

/* ── ستون‌های لینک ── */
.sw-footer-cols {
	padding-block: clamp(2rem, 4vw, 3rem);
	border-bottom: 1px solid var(--sw-border);
}

.sw-footer-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1.5rem 1rem;
}

/* دسکتاپ: تریگر شبیه تیتر، پنل همیشه باز */
@media (min-width: 701px) {
	.sw-footer-col__trigger {
		pointer-events: none;
		cursor: default;
		width: 100%;
		display: block;
		margin: 0 0 0.85rem;
		padding: 0 0 0.55rem;
		border: none;
		border-bottom: 1px solid var(--sw-border);
		background: none;
		font-family: inherit;
		font-size: 0.85rem;
		font-weight: 700;
		color: var(--sw-ink);
		text-align: start;
	}

	.sw-footer-col__trigger-icon,
	.sw-footer-col__chevron {
		display: none !important;
	}

	.sw-footer-col__trigger::after {
		display: none !important;
	}

	.sw-footer-col__trigger-text {
		display: block;
	}

	.sw-footer-col__panel[hidden] {
		display: block !important;
	}
}

/* موبایل: آکاردئون عمودی */
@media (max-width: 700px) {
	.sw-footer-cols {
		padding-block: 0;
	}

	.sw-footer-grid {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.sw-footer-col {
		border-bottom: 1px solid var(--sw-border);
	}

	.sw-footer-col__trigger {
		width: 100%;
		display: flex;
		align-items: center;
		gap: 0.65rem;
		padding: 0.95rem 0;
		border: none;
		background: none;
		font-family: inherit;
		font-size: 0.88rem;
		font-weight: 700;
		color: var(--sw-ink);
		text-align: start;
		cursor: pointer;
	}

	.sw-footer-col__trigger-icon {
		flex-shrink: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 1.75rem;
		height: 1.75rem;
		color: var(--sw-primary);
	}

	.sw-footer-col__trigger-text {
		flex: 1;
	}

	/* chevron با pseudo-element در موبایل */
	.sw-footer-col__trigger::after {
		content: '▾';
		flex-shrink: 0;
		color: var(--sw-muted);
		font-size: 1rem;
		line-height: 1;
		transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
		display: inline-block;
		margin-inline-start: auto;
	}

	.sw-footer-col.is-open .sw-footer-col__trigger::after {
		transform: rotate(180deg);
	}

	.sw-footer-col__panel {
		padding-block-end: 0.85rem;
	}

	.sw-footer-col__panel[hidden] {
		display: none;
	}
}

.sw-footer-col__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.sw-footer-col__list a {
	font-size: 0.8rem;
	color: var(--sw-muted);
	text-decoration: none;
	transition: color 0.15s;
	display: block;
}

.sw-footer-col__list a:hover {
	color: var(--sw-primary);
}

.sw-footer-chatwoot-btn {
	font-size: 0.8rem;
	color: var(--sw-muted);
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font-family: inherit;
	display: block;
	transition: color 0.15s;
}

.sw-footer-chatwoot-btn:hover {
	color: var(--sw-primary);
}

/* ── نوار دانلود اپ ── */
.sw-footer-app-bar {
	border-bottom: 1px solid var(--sw-border);
	padding-block: 1rem;
}

.sw-footer-app-bar__inner--mobile {
	display: none;
}

.sw-footer-app-bar__inner--desktop {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.85rem;
}

.sw-footer-app-bar__brand {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.sw-footer-app-bar__logo-full {
	height: 32px;
	width: auto;
	object-fit: contain;
	display: block;
}

.sw-footer-app-bar__stores {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.sw-footer-store-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.7rem 0.85rem;
	border-radius: 0.6rem;
	border: 1px solid var(--sw-border);
	background: var(--sw-canvas);
	color: var(--sw-ink);
	text-decoration: none;
	transition: border-color 0.18s, background 0.18s;
}

.sw-footer-store-btn:hover {
	border-color: var(--sw-primary);
	background: var(--sw-primary-soft);
}

/* مینی‌اپ — رنگ پرایمری */
.sw-footer-store-btn--primary {
	border-color: var(--sw-primary);
	background: var(--sw-primary);
	color: #fff;
}

.sw-footer-store-btn--primary .sw-footer-store-btn__sub {
	color: rgba(255, 255, 255, 0.75);
}

.sw-footer-store-btn--primary .sw-footer-store-btn__name {
	color: #fff;
}

.sw-footer-store-btn--primary:hover {
	background: var(--sw-primary-dark, #0f50d8);
	border-color: var(--sw-primary-dark, #0f50d8);
}

.sw-footer-store-btn__sub {
	display: block;
	font-size: 0.62rem;
	color: var(--sw-muted);
	line-height: 1;
}

.sw-footer-store-btn__name {
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.3;
	direction: ltr;
}

.sw-footer-app-bar__cta {
	font-size: 0.82rem;
	padding: 0.45rem 1.1rem;
	white-space: nowrap;
}

/* ── شبکه‌های اجتماعی ── */
.sw-footer-social-bar {
	padding-block: 1.25rem;
	border-bottom: 1px solid var(--sw-border);
}

.sw-footer-social-bar__title {
	margin: 0 0 1rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--sw-ink-muted, rgba(255,255,255,0.55));
	text-align: center;
	letter-spacing: 0.01em;
}

.sw-footer-social-bar__links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.sw-footer-social-link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 1.1rem;
	border-radius: 2rem;
	border: 1px solid var(--sw-border);
	color: var(--sw-ink);
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 500;
	transition: border-color 0.18s, background 0.18s, color 0.18s;
	white-space: nowrap;
}

.sw-footer-social-link:hover {
	border-color: var(--sw-primary);
	background: rgba(var(--sw-primary-rgb, 99,102,241), 0.08);
	color: var(--sw-primary);
}

.sw-footer-social-link .sw-icon {
	flex-shrink: 0;
}

@media (max-width: 700px) {
	.sw-footer-social-bar__title {
		margin: 0 0 0.85rem;
		font-size: 0.92rem;
		font-weight: 700;
		color: var(--sw-ink);
		letter-spacing: 0;
	}

	.sw-footer-social-bar__links {
		gap: 0.75rem;
	}

	.sw-footer-social-link {
		width: 44px;
		height: 44px;
		padding: 0;
		border-radius: 50%;
		justify-content: center;
	}

	.sw-footer-social-link span:not(.sw-icon) {
		display: none;
	}
}

/* ── کپی‌رایت ── */
.sw-footer-copy-bar {
	padding-block: 1.25rem 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* متن حقوقی و هشدار ریسک */
.sw-footer-legal {
	font-size: 0.68rem;
	line-height: 1.9;
	color: var(--sw-muted);
	opacity: 0.55;
	margin: 0 0 0.6rem;
	text-align: right;
}

.sw-footer-legal--risk {
	margin-block-end: 1.25rem;
}

.sw-footer-legal strong {
	font-weight: 700;
}

.sw-footer-copy-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	flex-wrap: wrap;
	direction: rtl;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sw-footer-copy-text {
	font-size: 0.75rem;
	color: var(--sw-muted);
	margin: 0;
	text-align: center;
}

.sw-footer-copy-divider {
	width: 1px;
	height: 0.9rem;
	background: rgba(255, 255, 255, 0.2);
	flex-shrink: 0;
}

.sw-footer-copy-cr {
	font-size: 0.75rem;
	color: var(--sw-muted);
	opacity: 0.7;
	margin: 0;
	flex-shrink: 0;
	direction: ltr;
}

.sw-footer-icons8 {
	margin: 0.35rem 0 0;
	font-size: 0.72rem;
	color: var(--sw-muted);
	opacity: 0.7;
}

.sw-footer-icons8 a {
	color: inherit;
	text-decoration: none;
}

.sw-footer-icons8 a:hover {
	color: var(--sw-primary);
	text-decoration: underline;
}

/* موبایل: بخش اپ ساده با دو دکمه */
@media (max-width: 700px) {
	.sw-footer-app-bar__inner--desktop {
		display: none;
	}

	.sw-footer-app-bar__inner--mobile {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0.85rem;
	}

	.sw-footer-app-bar__mobile-title {
		margin: 0;
		font-size: 0.92rem;
		font-weight: 700;
		color: var(--sw-ink);
		text-align: center;
	}

	.sw-footer-app-bar__mobile-actions {
		display: flex;
		gap: 0.65rem;
	}

	.sw-footer-app-btn--download,
	.sw-footer-app-btn--miniapp {
		flex: 1;
		justify-content: center;
		min-height: 2.65rem;
		padding-inline: 1rem;
		border-radius: 999px;
		font-size: 0.88rem;
		font-weight: 700;
		text-decoration: none;
		white-space: nowrap;
	}

	.sw-footer-app-btn--download {
		background: transparent;
		border: 1.5px solid var(--sw-primary);
		color: var(--sw-primary);
	}

	.sw-footer-app-btn--download:hover {
		background: var(--sw-primary-soft);
	}

	.sw-footer-app-btn--miniapp {
		color: #ffffff;
	}

	.sw-footer-app-btn--miniapp:hover {
		filter: brightness(1.06);
	}
}

@media (max-width: 700px) {
	.sw-footer-copy-inner {
		flex-direction: column;
		gap: 0.35rem;
	}

	.sw-footer-copy-divider {
		display: none;
	}

	.sw-footer-copy-text,
	.sw-footer-copy-cr {
		text-align: center;
	}
}

.skip-link:focus {
	left: auto;
	right: auto;
	top: 0.56rem;
	inset-inline-start: 1rem;
	inset-inline-end: auto;
	background: var(--sw-surface);
	border: 1px solid var(--sw-border);
	border-radius: var(--sw-radius-md);
	padding: 0.45rem 0.76rem;
	font-weight: 800;
	color: inherit;
	box-shadow: var(--sw-shadow);
}

@media (max-width: 900px) {
	.hero-grid {
		grid-template-columns: 1fr;
	}

	.site-layout:not(.sidebar-off) {
		grid-template-columns: 1fr;
	}
}

.taxonomy-description {
	max-width: 68ch;
	color: var(--sw-muted);
	font-weight: 600;
	line-height: 1.85;
	font-size: 0.9625rem;
}

/* گفت‌وگوها */
.comment-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.comment-body {
	margin-inline-start: 0;
	padding-block-start: .25rem;
}

.comment-meta {
	line-height: 1.66;
	font-weight: 700;
	font-size: .92rem;
}

.comment-list .children {
	list-style: none;
	margin-block-start: 1rem;
	padding-inline-start: clamp(.75rem, 3vw, 1.5rem);
	border-inline-start: 2px solid var(--sw-border);
	margin-inline-start: 0;
}

#reply-title,
.comment-notes,
.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
	font-weight: 900;
	font-size: .95rem;
}

.form-submit input[type='submit'].submit {
	cursor: pointer;
	border-radius: 999px;
	border: none;
	padding: .55rem 1.2rem;
	background: linear-gradient(135deg, var(--sw-primary), var(--sw-primary-dark));
	color: #ffffff;
	font-weight: 900;
	font-family: var(--font-yekan);
}

/* جست‌وجو — فرم سراسری (sw-search-form) */
.sw-search-form,
.widget_search form,
.search-form {
	display: block;
}

.sw-search-form__wrap {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	border: 1px solid var(--sw-border);
	border-radius: var(--sw-radius-md);
	overflow: hidden;
	background: var(--sw-surface);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sw-search-form__wrap:focus-within {
	border-color: var(--sw-primary);
	box-shadow: 0 0 0 3px var(--sw-primary-soft);
}

.sw-search-form__input,
.widget_search .search-field,
.search-form .search-field {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	box-sizing: border-box;
	min-height: 2.75rem;
	padding: 0.55rem 0.85rem;
	border: 0;
	border-radius: 0;
	background: color-mix(in srgb, var(--sw-ink) 3%, var(--sw-surface));
	color: var(--sw-ink);
	font-family: var(--font-yekan);
	font-size: 0.92rem;
}

.sw-search-form__input:focus,
.widget_search .search-field:focus,
.search-form .search-field:focus {
	outline: none;
	box-shadow: none;
}

.sw-search-form__submit,
.widget_search .search-submit,
.search-form .search-submit,
.search-form input[type='submit'] {
	flex: 0 0 auto;
	position: static;
	transform: none;
	min-height: 2.75rem;
	margin: 0;
	padding: 0 1rem;
	border: 0;
	border-inline-start: 1px solid var(--sw-border);
	border-radius: 0;
	background: color-mix(in srgb, var(--sw-ink) 52%, var(--sw-surface));
	color: #fff;
	font-family: var(--font-yekan);
	font-weight: 700;
	font-size: 0.84rem;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
}

.sw-search-form__submit:hover,
.widget_search .search-submit:hover,
.search-form .search-submit:hover,
.search-form input[type='submit']:hover {
	background: color-mix(in srgb, var(--sw-ink) 62%, var(--sw-surface));
}

.widget_search label:not(.screen-reader-text),
.search-form label:not(.screen-reader-text) {
	display: block;
	font-weight: 800;
	font-size: .9rem;
	margin-bottom: .4rem;
}

.sidebar .widget_search label:not(.screen-reader-text),
.sidebar .search-form label:not(.screen-reader-text) {
	display: none;
}

/* Careers + متن وبلاگ + ناوبری نوشته */
.sw-mini-hero {
	background:
		radial-gradient(640px circle at 6% -20%, rgba(20, 99, 246, 0.24), transparent 58%),
		radial-gradient(720px circle at 86% -10%, rgba(90, 168, 255, 0.16), transparent 54%),
		linear-gradient(180deg, #0b1324 0%, #111b2f 62%, var(--sw-canvas) 100%);
	color: rgba(237, 255, 248, 0.94);
	position: relative;
	overflow: clip;
	padding-block: clamp(2rem, 4vw + 1rem, 3.95rem);
}

.sw-mini-hero__grid.hero-grid {
	row-gap: clamp(1rem, 2.5vw, 2rem);
}

.sw-mini-hero__tag {
	margin: 0 0 0.75rem;
	font-weight: 800;
	font-size: 0.9rem;
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	width: fit-content;
}

.sw-mini-hero h1 {
	margin: 0 0 1rem;
	line-height: 1.32;
	text-wrap: balance;
	font-weight: 900;
	font-size: clamp(2rem, 2.2vw + 1rem, 2.7rem);
}

.sw-mini-hero p {
	max-width: 58ch;
	color: rgba(232, 255, 248, 0.9);
	line-height: 1.92;
	font-size: clamp(0.95rem, 0.45vw + 0.86rem, 1.0625rem);
}

.sw-careers-bullets {
	margin: clamp(1.15rem, 2.5vw, 1.7rem) 0 0;
	padding-inline-start: clamp(1.18rem, 3vw, 1.74rem);
	padding-inline-end: clamp(1rem, 2.5vw, 1.2rem);
	list-style-position: outside;
	list-style-type: disc;
	display: flex;
	flex-direction: column;
	gap: 0.62rem;
	color: rgba(232, 255, 248, 0.88);
	line-height: 1.93;
	max-width: 59ch;
}

.sw-careers-mini-stats {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.9rem;
	margin: clamp(1rem, 2.5vw, 1.4rem) 0 1.05rem;
}

.sw-careers-mini-stats dt {
	margin: 0;
	font-weight: 800;
	color: rgba(232, 255, 248, 0.78);
	font-size: 0.8525rem;
}

.sw-careers-mini-stats dd {
	margin: 0.25rem 0 0;
	font-weight: 900;
	font-size: clamp(1.0625rem, 0.4vw + 0.938rem, 1.18rem);
}

.sw-mini-hero__cta {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.52rem;
}

.sw-mini-hero__cta-note {
	display: inline-block;
	color: rgba(232, 255, 248, 0.72);
	line-height: 1.74;
	font-size: 0.875rem;
}

.sw-careers-content .careers-intro-body {
	max-width: 72ch;
	margin-inline-start: auto;
	margin-inline-end: auto;
	line-height: 1.93;
	font-size: clamp(0.95rem, 0.42vw + 0.8875rem, 1.07rem);
}

.job-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
	align-items: stretch;
}

.job-card {
	background: var(--sw-surface);
	border-radius: var(--sw-radius-lg);
	border: 1px solid var(--sw-border);
	box-shadow: var(--sw-shadow);
	padding: clamp(1.06rem, 2.55vw, 1.35rem);
	display: grid;
	grid-template-rows: auto auto 1fr auto;
	row-gap: 0.92rem;
}

.job-card-head h3 {
	margin: 0;
	font-size: clamp(1.2rem, 0.72vw + 1.035rem, 1.386rem);
	line-height: 1.52;
	text-wrap: pretty;
	font-weight: 900;
	color: var(--sw-ink);
}

.job-meta-row {
	display: flex;
	flex-wrap: wrap;
	column-gap: 0.62rem;
	row-gap: 0.42rem;
	color: var(--sw-muted);
	font-weight: 700;
	font-size: 0.875rem;
	align-items: center;
}

.job-meta-row .sep {
	width: 0.28rem;
	height: 0.28rem;
	border-radius: 50%;
	background: var(--sw-muted);
	opacity: 0.35;
	flex-shrink: 0;
	display: inline-block;
}

.job-card-desc {
	margin: 0;
	color: var(--sw-muted);
	line-height: 1.93;
	text-wrap: pretty;
}

.sw-careers-strip {
	max-width: var(--sw-container);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
}

.sw-careers-strip-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.06fr) minmax(260px, 0.94fr);
	gap: clamp(1rem, 2.5vw, 1.6rem);
	padding: clamp(1.56rem, 3vw, 2rem);
	align-items: center;
	border-radius: var(--sw-radius-lg);
	border: 1px solid var(--sw-border);
	background: linear-gradient(110deg, rgba(20, 99, 246, 0.12), #fff);
	box-shadow: var(--sw-shadow);
}

.sw-careers-strip-inner h2 {
	margin: 0 0 0.625rem;
	font-size: clamp(1.485rem, 1vw + 1rem, 1.85rem);
	font-weight: 900;
}

.sw-careers-strip-inner p {
	margin: 0;
	color: var(--sw-muted);
	font-weight: 600;
	line-height: 1.88;
	max-width: 58ch;
}

.sw-careers-strip-actions {
	justify-self: stretch;
	align-self: center;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.post-navigation {
	margin-block: clamp(2.15rem, 3.5vw, 3.15rem);
	border-top: 1px dashed color-mix(in srgb, var(--sw-muted) 30%, transparent);
	padding-block-start: clamp(1.42rem, 2vw, 1.85rem);
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(248px, 100%), 1fr));
	gap: 1rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	background: var(--sw-surface);
	border: 1px solid var(--sw-border);
	border-radius: var(--sw-radius-lg);
	box-shadow: var(--sw-shadow);
	padding: clamp(0.9625rem, 2vw, 1.1rem);
}

.post-navigation .post-nav-flag {
	display: inline-flex;
	margin-inline-start: 0;
	margin-inline-end: 0.35rem;
	font-size: 0.8125rem;
	font-weight: 900;
	color: var(--sw-primary-dark);
}

.post-navigation .nav-links a {
	color: inherit;
	text-decoration: none;
	font-weight: 800;
	font-size: 1rem;
	line-height: 1.66;
	overflow-wrap: anywhere;
}

.entry-content ul,
.entry-content ol {
	max-width: min(760px, 100%);
	line-height: 1.93;
	padding-inline-start: clamp(1.15rem, 3vw, 1.72rem);
}

.entry-content ul li::marker {
	color: var(--sw-primary-dark);
}

.entry-content ol li::marker {
	font-weight: 900;
	color: var(--sw-primary-dark);
}

.entry-content h2,
.entry-content h3 {
	margin-block: clamp(1.92rem, 3vw, 2.76rem) 0.9rem;
	font-weight: 900;
	line-height: 1.4;
	max-width: min(740px, 100%);
	text-wrap: pretty;
}

.entry-content h2 {
	font-size: clamp(1.5rem, 1.2vw + 1.065rem, 1.956rem);
}

.entry-content h3 {
	font-size: clamp(1.2rem, 1vw + 0.865rem, 1.6rem);
}

.entry-content blockquote {
	margin: clamp(1.75rem, 3vw, 2.45rem) 0;
	padding-inline-start: clamp(1.08rem, 2.85vw, 1.74rem);
	padding-inline-end: clamp(1.06rem, 2.85vw, 1.74rem);
	border-inline-start: 4px solid var(--sw-primary);
	background: rgba(20, 99, 246, 0.08);
	border-radius: calc(var(--sw-radius-lg) / 2);
	font-weight: 700;
	line-height: 1.93;
	max-width: min(740px, 100%);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
	color: color-mix(in srgb, var(--sw-ink) 94%, transparent);
}

/* ── جدول داخل محتوا ── */
.entry-content table,
.entry-content .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	margin-block: clamp(1.5rem, 3vw, 2.25rem);
	font-size: 0.92rem;
	line-height: 1.6;
	direction: rtl;
	text-align: right;
	background: var(--sw-surface);
	border-radius: var(--sw-radius-lg);
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.entry-content .wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-block: clamp(1.5rem, 3vw, 2.25rem);
}

.entry-content .wp-block-table table {
	margin-block: 0;
}

.entry-content table th,
.entry-content table td {
	padding: 0.65rem 0.9rem;
	text-align: right;
	vertical-align: middle;
	border: 1px solid var(--sw-border);
}

.entry-content table thead th {
	background: var(--sw-surface-alt, rgba(20, 99, 246, 0.06));
	font-weight: 800;
	font-size: 0.85rem;
	color: var(--sw-ink);
	border-bottom: 2px solid var(--sw-border);
}

.entry-content table tbody tr:nth-child(even) {
	background: rgba(20, 99, 246, 0.03);
}

.entry-content table tbody tr:hover {
	background: rgba(20, 99, 246, 0.07);
	transition: background 0.12s ease;
}

@media (max-width: 940px) {
	.sw-careers-strip-inner {
		grid-template-columns: 1fr;
	}

	.sw-careers-strip-actions {
		justify-self: stretch;
	}
}

@media (max-width: 720px) {
	.job-meta-row .sep {
		display: none;
	}

	.job-meta-row span {
		width: auto;
	}
}

/* ═══════════════════════════════════════════════════════════
   جدول قیمت لحظه‌ای رمزارزها
═══════════════════════════════════════════════════════════ */
.sw-mkt-section {
	padding-block: clamp(2.5rem, 5vw, 4.5rem);
	background: transparent;
	font-family: var(--font-yekan);
}

/* هدر: تب‌های مرتب‌سازی (راست) + تب‌های ارز (چپ) */
.sw-mkt-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-block-end: 1.25rem;
}

/* تب‌های مرتب‌سازی */
.sw-mkt-sort-tabs {
	display: flex;
	align-items: center;
	gap: 0.2rem;
}

.sw-mkt-sort-tab {
	border: none;
	background: transparent;
	font-family: inherit;
	font-size: clamp(0.85rem, 1vw + 0.7rem, 0.975rem);
	font-weight: 700;
	color: var(--sw-muted);
	padding: 0.38rem 0.6rem;
	cursor: pointer;
	position: relative;
	border-block-end: 2px solid transparent;
	transition: color 0.18s, border-color 0.18s;
	white-space: nowrap;
}

.sw-mkt-sort-tab.is-active {
	color: var(--sw-ink);
	border-block-end-color: var(--sw-primary);
}

.sw-mkt-sort-tab:hover {
	color: var(--sw-ink);
}

/* تب‌های ارز — کپسول */
.sw-mkt-currency-tabs {
	display: inline-flex;
	background: var(--sw-surface);
	border: 1px solid var(--sw-border);
	border-radius: 999px;
	padding: 3px;
	gap: 2px;
}

.sw-mkt-currency-tab {
	border: none;
	background: transparent;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--sw-muted);
	padding: 0.28rem 0.9rem;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.18s, color 0.18s;
	white-space: nowrap;
}

.sw-mkt-currency-tab.is-active {
	background: var(--sw-ink);
	color: var(--sw-canvas);
}

/* انیمیشن fade-in ردیف‌های جدول */
@keyframes sw-mkt-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

#sw-mkt-tbody.sw-mkt--refreshing {
	animation: sw-mkt-fade-in 0.28s ease forwards;
}

/* موبایل: تب‌های کوچک‌تر */
@media (max-width: 600px) {
	.sw-mkt-sort-tab {
		font-size: 0.78rem;
		padding: 0.28rem 0.42rem;
	}

	.sw-mkt-currency-tab {
		font-size: 0.78rem;
		padding: 0.22rem 0.6rem;
	}
}

/* ── جدول ── */
.sw-mkt-table-wrap {
	border-radius: var(--sw-radius-lg);
	border: 1px solid var(--sw-border);
	overflow: hidden;
}

.sw-mkt-table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--font-yekan);
}

.sw-mkt-table thead th {
	padding: 0.5rem 1.25rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--sw-muted);
	background: var(--sw-surface);
	border-block-end: 1px solid var(--sw-border);
	white-space: nowrap;
}

/* چینش ستون‌ها */
.sw-mkt-table thead th:first-child { text-align: right; }
.sw-mkt-table thead th:nth-child(2),
.sw-mkt-table thead th:nth-child(3) { text-align: center; }
.sw-mkt-table thead th:last-child   { text-align: left; width: 1%; }

/* ردیف‌ها */
.sw-mkt-row {
	border-block-end: 1px solid var(--sw-border);
	transition: background 0.14s;
}

.sw-mkt-row:last-child {
	border-block-end: none;
}

.sw-mkt-row:hover {
	background: color-mix(in srgb, var(--sw-primary) 10%, var(--sw-surface));
	cursor: pointer;
}

.sw-mkt-table td {
	padding: 0.1rem 1.25rem;
	background: var(--sw-surface);
	vertical-align: middle;
}

/* ستون اسپارک‌لاین */
.sw-mkt-th-sparkline {
	text-align: center;
}
.sw-mkt-cell-sparkline {
	text-align: center;
	vertical-align: middle;
}
.sw-mkt-sparkline {
	display: block;
	margin: 0 auto;
	width: 80px;
	height: 32px;
}

/* ستون نام رمزارز */
.sw-mkt-cell-coin {
	min-width: 0;
	text-align: right;
}

.sw-mkt-coin-wrap {
	display: flex;
	align-items: center;
	gap: 0.72rem;
}

.sw-mkt-coin-icon {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	object-fit: contain;
	flex-shrink: 0;
	background: var(--sw-primary-soft);
}

.sw-mkt-coin-icon--fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--sw-primary-soft);
	color: var(--sw-primary);
	font-size: 0.7rem;
	font-weight: 800;
	flex-shrink: 0;
}

.sw-mkt-coin-names {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
	align-items: flex-start;
	text-align: right;
}

.sw-mkt-coin-pair {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--sw-ink);
	white-space: nowrap;
}

.sw-mkt-coin-name {
	font-size: 0.7rem;
	color: var(--sw-muted);
	font-weight: 500;
	white-space: nowrap;
}

/* ستون قیمت */
.sw-mkt-cell-price {
	text-align: center;
	white-space: nowrap;
}

.sw-mkt-price {
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--sw-ink);
	line-height: 1.2;
}

.sw-mkt-price-unit {
	display: block;
	font-size: 0.68rem;
	color: var(--sw-muted);
	margin-top: 0;
	line-height: 1.2;
}

/* ستون تغییرات */
.sw-mkt-cell-change {
	text-align: center;
	white-space: nowrap;
}

.sw-mkt-change {
	font-size: 0.78rem;
	font-weight: 700;
}

.sw-mkt-change--up   { color: #16a34a; }
.sw-mkt-change--down { color: #dc2626; }

/* ستون دکمه */
.sw-mkt-cell-action {
	text-align: left;
	white-space: nowrap;
}

.sw-mkt-action-btn {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	border: 1px solid var(--sw-border);
	background: transparent;
	color: var(--sw-ink);
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.sw-mkt-action-btn:hover {
	background: var(--sw-primary);
	border-color: var(--sw-primary);
	color: #ffffff;
}

/* فوتر */
.sw-mkt-footer {
	display: flex;
	justify-content: center;
	margin-block-start: 1.35rem;
}

.sw-mkt-see-all {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--sw-primary-dark);
	text-decoration: none;
	transition: color 0.15s;
}

.sw-mkt-see-all:hover {
	color: var(--sw-primary);
}

/* اسکلتون لودینگ */
.sw-mkt-skeleton-row td {
	padding: 0.85rem 1.25rem;
	background: var(--sw-surface);
}

.sw-mkt-skeleton-bar {
	height: 2.4rem;
	border-radius: 0.6rem;
	background: linear-gradient(
		90deg,
		var(--sw-border) 0%,
		color-mix(in srgb, var(--sw-border) 55%, transparent) 50%,
		var(--sw-border) 100%
	);
	background-size: 200% 100%;
	animation: sw-mkt-skeleton-shimmer 1.6s ease infinite;
}

@keyframes sw-mkt-skeleton-shimmer {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* حالت خالی / خطا */
.sw-mkt-empty {
	text-align: center !important;
	color: var(--sw-muted) !important;
	padding: 2.5rem !important;
	background: var(--sw-surface) !important;
	font-size: 0.9rem;
}

/* ── موبایل ── */
@media (max-width: 640px) {
	.sw-mkt-th-change,
	.sw-mkt-th-sparkline {
		display: none;
	}

	.sw-mkt-table thead th,
	.sw-mkt-table td {
		padding-inline: 0.7rem;
		padding-block: 0.55rem;
	}

	.sw-mkt-coin-name {
		display: none;
	}
}

/* ── فونت بزرگ‌تر جدول در دسکتاپ ── */
@media (min-width: 641px) {
	.sw-mkt-table thead th {
		font-size: 0.95rem;
	}

	.sw-mkt-table td {
		padding: 1rem 1.25rem;
	}

	.sw-mkt-coin-icon,
	.sw-mkt-coin-icon--fallback {
		width: 2.4rem;
		height: 2.4rem;
		font-size: 0.85rem;
	}

	.sw-mkt-coin-pair {
		font-size: 0.95rem;
	}

	.sw-mkt-coin-name {
		font-size: 0.82rem;
	}

	.sw-mkt-price {
		font-size: 0.95rem;
	}

	.sw-mkt-price-unit {
		font-size: 0.78rem;
	}

	.sw-mkt-change {
		font-size: 0.9rem;
	}
}

/* ردیف کلیک‌پذیر */
.sw-mkt-row--link {
	cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════
   سکشن دانلود اپلیکیشن — هوم‌پیج
═══════════════════════════════════════════════════════════ */
.sw-app-dl {
	position: relative;
	margin-block: clamp(2rem, 4vw, 3rem);
	padding-block: clamp(2.5rem, 5vw, 4rem);
	color: #0d2240;
	font-family: var(--font-yekan);
	background: transparent;
}

/* ── انیمیشن لوگو گلو ── */
.sw-app-dl__logo-deco {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: clamp(260px, 28vw, 380px);
	pointer-events: none;
	z-index: 0;
}

.sw-logo-deco-svg {
	width: 100%;
	height: auto;
	overflow: visible;
}

/* لایه پس‌زمینه: شکل فیل شده با opacity خیلی کم */
.sw-logo-deco-bg-rect {
	opacity: 0.04;
	color: var(--sw-ink);
}

.sw-logo-deco-bg-path {
	opacity: 0.05;
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* انیمیشن حرکت glow روی مسیر */
@keyframes sw-glow-trace {
	0%   { stroke-dashoffset: 1; }
	100% { stroke-dashoffset: -1; }
}

.sw-logo-deco-glow {
	animation: sw-glow-trace 3.6s linear infinite;
}

.sw-logo-deco-glow--wide   { opacity: 0.7; }
.sw-logo-deco-glow--sharp  { opacity: 0.9; animation-duration: 3.6s; }
.sw-logo-deco-glow--bright { opacity: 1;   animation-duration: 3.6s; }

@media (min-width: 960px) {
	.sw-app-dl__logo-deco { display: block; }
}

@media (prefers-reduced-motion: reduce) {
	.sw-logo-deco-glow { animation: none; }
}

[data-theme="dark"] .sw-logo-deco-bg-rect  { opacity: 0.06; }
[data-theme="dark"] .sw-logo-deco-bg-path  { opacity: 0.07; }

/* گرید چهارخانه بک‌گراند — فقط دسکتاپ */
@media (min-width: 960px) {
	.sw-app-dl::before {
		content: '';
		position: absolute;
		inset: 0;
		background-image:
			linear-gradient(var(--sw-border) 1px, transparent 1px),
			linear-gradient(90deg, var(--sw-border) 1px, transparent 1px);
		background-size: 44px 44px;
		-webkit-mask-image: linear-gradient(90deg, transparent 0%, black 28%, transparent 35%, transparent 65%, black 72%, transparent 100%);
		mask-image: linear-gradient(90deg, transparent 0%, black 28%, transparent 35%, transparent 65%, black 72%, transparent 100%);
		opacity: 0.3;
		pointer-events: none;
		z-index: 0;
	}
}

.sw-app-dl__layout {
	display: grid;
	gap: clamp(2rem, 4vw, 3rem);
	align-items: center;
	position: relative;
	z-index: 1;
}

.sw-app-dl__copy {
	order: 1;
	display: flex;
	flex-direction: column;
	gap: clamp(1rem, 2vw, 1.35rem);
	min-width: 0;
}

.sw-app-dl__visual {
	order: 2;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: clamp(280px, 38vw, 380px);
}

@media (min-width: 960px) {
	.sw-app-dl__layout {
		grid-template-columns: 1fr;
		justify-items: center;
	}

	.sw-app-dl__visual {
		display: none;
	}

	.sw-app-dl__copy {
		order: 0;
		text-align: center;
		align-items: center;
		max-width: 640px;
	}

	.sw-app-dl__link-arrow {
		display: flex !important;
	}

	.sw-app-dl__link {
		gap: 0.8rem;
	}

	.sw-app-dl__tabs {
		align-self: center;
		margin-inline: auto;
	}

	.sw-app-dl__panels,
	.sw-app-dl__panel.is-active,
	.sw-app-dl__links {
		width: 100%;
		max-width: 560px;
		box-sizing: border-box;
	}

	.sw-app-dl__links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.55rem;
	}

	.sw-app-dl__link {
		direction: rtl;
		text-align: right;
	}
}

.sw-app-dl__title {
	margin: 0;
	font-size: clamp(1.55rem, 2vw + 0.85rem, 2.25rem);
	font-weight: 800;
	line-height: 1.32;
	text-wrap: balance;
	color: #0d2240;
}

.sw-app-dl__lede {
	margin: 0;
	max-width: 52ch;
	font-size: clamp(0.92rem, 0.5vw + 0.82rem, 1.02rem);
	line-height: 1.85;
	font-weight: 500;
	color: rgba(13, 34, 64, 0.6);
}

.sw-app-dl__tabs {
	display: inline-flex;
	flex-wrap: wrap;
	align-self: flex-start;
	gap: 0.2rem;
	padding: 0.2rem;
	border-radius: 999px;
	border: 1px solid var(--sw-border);
	background: color-mix(in srgb, var(--sw-surface) 92%, transparent);
}

.sw-app-dl__tab {
	border: 0;
	background: transparent;
	color: var(--sw-muted);
	font-family: inherit;
	font-size: 0.84rem;
	font-weight: 700;
	padding: 0.45rem 0.95rem;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.18s ease, color 0.18s ease;
}

.sw-app-dl__tab.is-active {
	background: var(--sw-primary);
	color: #fff;
}

.sw-app-dl__tab:focus-visible {
	outline: 2px solid var(--sw-primary);
	outline-offset: 2px;
}

.sw-app-dl__panels {
	min-height: 5.5rem;
}

.sw-app-dl__panel {
	display: none;
}

.sw-app-dl__panel.is-active {
	display: block;
	animation: sw-app-dl-fade 0.28s ease;
}

@keyframes sw-app-dl-fade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.sw-app-dl__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.55rem;
}

.sw-app-dl__link {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 1.1rem 0.9rem;
	border-radius: var(--sw-radius-md);
	border: 1px solid var(--sw-border);
	background: var(--sw-surface);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
	position: relative;
}

.sw-app-dl__link-arrow {
	display: none;
	flex-shrink: 0;
	width: 1.2rem;
	height: 1.2rem;
	color: var(--sw-primary);
	order: 99;
	margin-right: auto;
	margin-left: 0;
}

.sw-app-dl__link-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 0.62rem;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid var(--sw-border);
	box-sizing: border-box;
}

.sw-app-dl__link-icon .sw-store-icon {
	width: 1.55rem;
	height: 1.55rem;
}

.sw-app-dl__link-icon img {
	display: block;
	width: 1.55rem;
	height: 1.55rem;
	object-fit: contain;
}

.sw-app-dl__link-text {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
	flex: 1 1 auto;
}

.sw-app-dl__link-badge {
	flex-shrink: 0;
	align-self: center;
	padding: 0.18rem 0.5rem;
	border-radius: 999px;
	font-size: 0.62rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--sw-muted);
	background: color-mix(in srgb, var(--sw-muted) 12%, transparent);
	border: 1px solid var(--sw-border);
}

.sw-app-dl__link--soon {
	cursor: not-allowed;
	opacity: 0.72;
}

.sw-app-dl__link--soon:hover {
	transform: none;
	box-shadow: none;
	border-color: var(--sw-border);
}

.sw-app-dl__link:hover {
	border-color: color-mix(in srgb, var(--sw-primary) 35%, var(--sw-border));
	box-shadow: var(--sw-shadow);
	transform: translateY(-1px);
	color: inherit;
}

.sw-app-dl__link-sub {
	font-size: 0.68rem;
	font-weight: 600;
	color: var(--sw-muted);
}

.sw-app-dl__link-name {
	font-size: 0.88rem;
	font-weight: 800;
	color: #0d2240;
}

.sw-app-dl__visual-glow {
	position: absolute;
	inset: 8% 10%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(20, 99, 246, 0.16) 0%, transparent 68%);
	filter: blur(28px);
	z-index: 0;
}

.sw-app-dl__devices {
	position: relative;
	z-index: 1;
	width: min(100%, 18rem);
	min-height: 24rem; /* فضای کافی برای آیکن‌های شناور */
}

.sw-app-dl__device {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: clamp(150px, 42vw, 190px);
	/* بدون aspect-ratio — ارتفاع از تصویر داخل میاد */
	border-radius: 2.4rem;
	background: #111;
	border: 5px solid #1a1a1a;
	box-shadow: 0 28px 56px rgba(0, 0, 0, 0.32);
	overflow: hidden;
}

.sw-app-dl__device-notch {
	position: absolute;
	top: 0.65rem;
	left: 50%;
	transform: translateX(-50%);
	width: 2.8rem;
	height: 0.26rem;
	border-radius: 999px;
	background: #2a2a2a;
	z-index: 2;
}

.sw-app-dl__device-screen {
	display: block;
	border-radius: 1.85rem;
	overflow: hidden;
	background: #000;
}

.sw-app-dl__screen-img {
	width: 100%;
	height: auto;   /* ارتفاع متناسب با نسبت عکس */
	display: block;
}

/* آیکن‌های شناور دایره‌ای */
.sw-app-dl__store-float {
	position: absolute;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--sw-surface);
	border: 1.5px solid var(--sw-border);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	animation: sw-app-dl-float 5s ease-in-out infinite;
}

.sw-app-dl__store-float img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

/* موقعیت‌های پراکنده */
.sw-app-dl__store-float--gplay   { top: 2%;   inset-inline-end: 2%;   animation-delay: 0s;    }
.sw-app-dl__store-float--bazaar  { top: 28%;  inset-inline-end: -6%;  animation-delay: -1.8s; }
.sw-app-dl__store-float--android { bottom: 22%; inset-inline-end: -2%;  animation-delay: -3.2s; }
.sw-app-dl__store-float--myket   { bottom: 4%;  inset-inline-start: 4%; animation-delay: -0.6s; }
.sw-app-dl__store-float--pwa     { top: 6%;   inset-inline-start: -2%; animation-delay: -2.5s; }

@keyframes sw-app-dl-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

@media (max-width: 959px) {
	.sw-app-dl__layout {
		grid-template-columns: 1fr;
	}

	.sw-app-dl__visual {
		display: none;
	}

	.sw-app-dl__copy {
		text-align: center;
		align-items: center;
		order: 0;
	}

	.sw-app-dl__lede {
		max-width: none;
	}

	.sw-app-dl__tabs {
		align-self: center;
	}

	/* کل زنجیره باید تمام‌عرض باشه */
	.sw-app-dl__panels,
	.sw-app-dl__panel.is-active,
	.sw-app-dl__links {
		width: 100%;
		box-sizing: border-box;
	}

	.sw-app-dl__links {
		grid-template-columns: 1fr;
		gap: 0.45rem;
	}

	.sw-app-dl__links li {
		width: 100%;
	}

	.sw-app-dl__link-arrow {
		display: flex !important;
	}

	.sw-app-dl__link {
		width: 100%;
		box-sizing: border-box;
		padding: 0.75rem 0.9rem;
		font-size: 0.9rem;
		gap: 0.8rem;
	}

	.sw-app-dl__link-icon {
		width: 2rem;
		height: 2rem;
	}

	.sw-app-dl__link-icon .sw-store-icon {
		width: 1.3rem;
		height: 1.3rem;
	}

	.sw-app-dl__link-icon img {
		width: 1.3rem;
		height: 1.3rem;
	}

	.sw-app-dl__link-text {
		text-align: right;
	}

	.sw-app-dl__link-sub {
		font-size: 0.63rem;
	}

	.sw-app-dl__link-name {
		font-size: 0.8rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sw-app-dl__download-badge,
	.sw-app-dl__platform-chip {
		animation: none;
	}

	.sw-app-dl__panel.is-active {
		animation: none;
	}
}

/* ═══════════════════════════════════════════════════════════
   سکشن مینی‌اپ تلگرام — هوم‌پیج
═══════════════════════════════════════════════════════════ */
.sw-tg-mini {
	position: relative;
	margin-block: clamp(2rem, 4vw, 3rem);
	padding-block: clamp(3rem, 6vw, 5rem);
	color: #0d2240;
	font-family: var(--font-yekan);
	background: transparent;
}

.sw-tg-mini__shell {
	position: relative;
}

.sw-tg-mini__layout {
	display: grid;
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: center;
}

@media (min-width: 960px) {
	.sw-tg-mini__layout {
		grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
		gap: clamp(2rem, 3vw, 3rem);
	}
}

.sw-tg-mini__copy {
	display: flex;
	flex-direction: column;
	gap: clamp(1rem, 2vw, 1.35rem);
	min-width: 0;
}

.sw-tg-mini__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	align-self: flex-start;
	padding: 0.38rem 0.85rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--sw-primary-dark);
	background: var(--sw-primary-soft);
	border: 1px solid color-mix(in srgb, var(--sw-primary) 28%, var(--sw-border));
	box-shadow: none;
}

.sw-tg-mini__badge svg,
.sw-tg-mini__badge .sw-icon {
	color: var(--sw-primary);
	flex-shrink: 0;
}

.sw-tg-mini__title {
	margin: 0;
	font-size: clamp(1.65rem, 2.2vw + 0.85rem, 2.45rem);
	font-weight: 800;
	line-height: 1.28;
	text-wrap: balance;
	color: #0d2240;
}

.sw-tg-mini__lede {
	margin: 0;
	max-width: 52ch;
	font-size: clamp(0.92rem, 0.5vw + 0.82rem, 1.04rem);
	line-height: 1.85;
	font-weight: 500;
	color: rgba(13, 34, 64, 0.6);
}

/* ── grid دسکتاپ ── */
.sw-tg-mini__features {
	list-style: none;
	margin: 0.25rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem;
}

/* ست تکراری همیشه مخفی در دسکتاپ */
.sw-tg-mini__features--dup {
	display: none;
}

/* ── مارکی موبایل ── */
@media (max-width: 960px) {
	.sw-tg-mini__feat-marquee-wrap {
		width: 100%;
		overflow: hidden;
		/* LTR اجباری: در RTL، flex از راست شروع می‌شه و track در موقعیت اشتباه قرار می‌گیره */
		direction: ltr;
	}

	/* track: دو ست چپ‌به‌راست، انیمیشن translateX(-50%) */
	.sw-tg-mini__feat-track {
		display: flex;
		flex-direction: row;
		width: max-content;
		animation: sw-tg-feat-scroll 12s linear infinite;
	}

	/* هر ست: کارت‌ها افقی */
	.sw-tg-mini__features {
		display: flex;
		flex-direction: row;
		flex-shrink: 0;
		flex-wrap: nowrap;
		gap: 0;
		margin: 0;
		padding: 0;
		width: max-content;
		align-items: stretch;
	}

	/* ست تکراری موبایل نمایان */
	.sw-tg-mini__features--dup {
		display: flex;
	}

	.sw-tg-mini__feat {
		flex-shrink: 0;
		width: auto;
		min-width: 0;
		box-sizing: border-box;
		direction: rtl;
		text-align: right;
		align-items: flex-start;
		margin-inline-end: 0.65rem;
		/* حذف fade-in انیمیشن در کروسل */
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}

	/* حذف fade-in کارت‌ها در کروسل موبایل */
	.sw-tg-mini__feat.sw-tg-mini__reveal {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

@keyframes sw-tg-feat-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
	.sw-tg-mini__feat-track {
		animation: none;
	}
	.sw-tg-mini__features--dup {
		display: none;
	}
	.sw-tg-mini__features {
		flex-wrap: wrap;
		width: 100%;
		gap: 0.65rem;
	}
}

.sw-tg-mini__feat {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.85rem 0.9rem;
	border-radius: 1.25rem;
	background: #f0f6ff;
	border: none;
	box-shadow: none;
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.sw-tg-mini__feat:hover { }

.sw-tg-mini__feat-icon {
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.85rem;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	color: var(--sw-primary);
	background: rgba(20, 99, 246, 0.1);
	border: none;
}

.sw-tg-mini__feat-copy {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.sw-tg-mini__feat-copy strong {
	font-size: 0.84rem;
	font-weight: 800;
	color: #0d2240;
	line-height: 1.4;
}

.sw-tg-mini__feat-copy span {
	font-size: 0.74rem;
	color: rgba(13, 34, 64, 0.55);
	line-height: 1.55;
}

.sw-tg-mini__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 0.35rem;
}

.sw-tg-mini__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 2.85rem;
	padding: 0.55rem 1.35rem;
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.92rem;
	font-weight: 800;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.sw-tg-mini__btn--primary {
	color: #fff;
	background: linear-gradient(135deg, var(--sw-primary) 0%, var(--sw-primary-dark) 100%);
	box-shadow: 0 8px 22px rgba(20, 99, 246, 0.28);
}

.sw-tg-mini__btn--primary:hover {
	transform: scale(1.03);
	box-shadow: 0 12px 28px rgba(20, 99, 246, 0.34);
	color: #fff;
}

.sw-tg-mini__btn--ghost {
	color: #0d2240;
	border: 1px solid var(--sw-border);
	background: var(--sw-surface);
}

.sw-tg-mini__btn--ghost:hover {
	border-color: color-mix(in srgb, var(--sw-primary) 35%, var(--sw-border));
	background: var(--sw-primary-soft);
	color: var(--sw-primary-dark);
}

.sw-tg-mini__visual {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: clamp(280px, 38vw, 400px);
}

/* ── Orbit ── */
.sw-tg-orbit {
	--sw-orbit-size: clamp(260px, 36vw, 320px);
	--sw-orbit-r: calc(var(--sw-orbit-size) / 2);    /* شعاع نوار */
	--sw-orbit-coin: 44px;                             /* قطر کوین */
	position: relative;
	width: var(--sw-orbit-size);
	height: var(--sw-orbit-size);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* نوار دایره‌ای در حال چرخش */
.sw-tg-orbit__ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1.5px solid rgba(20, 99, 246, 0.2);
	animation: sw-orbit-spin 36s linear infinite;   /* کندتر */
}

/*
 * هر کوین:
 *  - از مرکز شروع می‌کنه (top/left: 50%)
 *  - با rotate(angle) جهت می‌گیره
 *  - با translateX(شعاع) روی نوار می‌ره
 *  - margin: -half-size مرکز کوین رو روی نوار می‌ذاره
 */
.sw-tg-orbit__coin {
	position: absolute;
	top: 50%;
	left: 50%;
	width: var(--sw-orbit-coin);
	height: var(--sw-orbit-coin);
	margin: calc(var(--sw-orbit-coin) / -2);
	transform: rotate(var(--sw-orbit-angle)) translateX(var(--sw-orbit-r));
}

/*
 * لایه ۱: باطل کردن زاویه اولیه موقعیت‌دهی (استاتیک)
 * این لایه محور کوین رو به حالت عمودی برمی‌گردونه
 */
.sw-tg-orbit__coin-inner {
	width: var(--sw-orbit-coin);
	height: var(--sw-orbit-coin);
	transform: rotate(calc(-1 * var(--sw-orbit-angle)));
}

/*
 * لایه ۲: باطل کردن چرخش نوار (انیمیشن)
 * همزمان با چرخش نوار به سمت مخالف می‌چرخه
 */
.sw-tg-orbit__coin-face {
	width: var(--sw-orbit-coin);
	height: var(--sw-orbit-coin);
	border-radius: 50%;
	overflow: hidden;
	background: var(--sw-surface);
	border: 2px solid var(--sw-border);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	animation: sw-orbit-counter 36s linear infinite;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sw-tg-orbit__coin-face img {
	width: 32px;
	height: 32px;
	object-fit: cover;
	border-radius: 50%;
	display: block;
	flex-shrink: 0;
}

/* آیکن تلگرام مرکز */
.sw-tg-orbit__center {
	position: relative;
	z-index: 2;
	width: clamp(80px, 11vw, 96px);
	height: clamp(80px, 11vw, 96px);
	border-radius: 50%;
	background: var(--sw-primary-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sw-primary);
	box-shadow: 0 0 0 10px rgba(20, 99, 246, 0.05);
}

@keyframes sw-orbit-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

@keyframes sw-orbit-counter {
	from { transform: rotate(0deg); }
	to   { transform: rotate(-360deg); }
}

.sw-tg-mini__float {
	position: absolute;
	z-index: 2;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--sw-surface);
	border: 2px solid var(--sw-border);
	box-shadow: 0 6px 24px rgba(0,0,0,0.13);
	animation: sw-tg-float 5s ease-in-out infinite;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sw-tg-mini__float img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

/* موقعیت ۸ کوین — پراکنده اطراف موبایل */
.sw-tg-mini__float--btc  { top: -2%;   inset-inline-start: 8%; }
.sw-tg-mini__float--eth  { top: 22%;   inset-inline-end: -4%; }
.sw-tg-mini__float--usdt { bottom: 18%; inset-inline-end: -6%; }
.sw-tg-mini__float--bnb  { top: 8%;    inset-inline-end: 12%; }
.sw-tg-mini__float--sol  { top: 52%;   inset-inline-start: -6%; }
.sw-tg-mini__float--doge { bottom: 2%; inset-inline-end: 8%; }
.sw-tg-mini__float--xrp  { bottom: 32%; inset-inline-start: -4%; }
.sw-tg-mini__float--trx  { top: 38%;   inset-inline-end: -6%; }

@keyframes sw-tg-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

.sw-tg-mini__phone-wrap {
	position: relative;
	z-index: 1;
	transform: rotate(-2deg);
	transition: transform 0.15s ease-out;
	will-change: transform;
}

.sw-tg-mini__phone-glow { display: none; }

.sw-tg-mini__phone {
	position: relative;
	width: clamp(200px, 28vw, 260px);
	aspect-ratio: 9 / 19;
	border-radius: 2.8rem;
	background: #111;
	border: 6px solid #1a1a1a;
	box-shadow: 0 32px 64px rgba(0,0,0,0.35);
	overflow: hidden;
}

.sw-tg-mini__phone-notch {
	position: absolute;
	top: 0.7rem;
	left: 50%;
	transform: translateX(-50%);
	width: 3rem;
	height: 0.28rem;
	border-radius: 999px;
	background: #2a2a2a;
	z-index: 2;
}

.sw-tg-mini__phone-screen {
	position: absolute;
	inset: 0;
	border-radius: 2.4rem;
	overflow: hidden;
	background: #000;
	display: flex;
	align-items: stretch;
}

/* عکس اسکرین — کل فضای موبایل رو پر کنه */
.sw-tg-mini__screen-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}

.sw-tg-mini__app-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem;
	padding-bottom: 0.15rem;
}

.sw-tg-mini__app-title {
	font-size: 0.62rem;
	font-weight: 700;
	color: rgba(226, 232, 240, 0.85);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sw-tg-mini__app-dot {
	width: 0.35rem;
	height: 0.35rem;
	border-radius: 50%;
	background: rgba(148, 163, 184, 0.45);
	flex-shrink: 0;
}

.sw-tg-mini__app-chart {
	position: relative;
	border-radius: 1rem;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.07);
	padding: 0.45rem 0.55rem 0.5rem;
}

.sw-tg-mini__app-chart svg {
	display: block;
	width: 100%;
	height: 3.5rem;
}

.sw-tg-mini__app-chart-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-top: 0.25rem;
	font-size: 0.62rem;
	color: rgba(203, 213, 225, 0.75);
}

.sw-tg-mini__app-chart-meta strong {
	color: #4ade80;
	font-size: 0.68rem;
	font-weight: 800;
}

.sw-tg-mini__app-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.45rem;
	flex: 1;
}

.sw-tg-mini__app-list li {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 0.45rem;
	align-items: center;
	padding: 0.45rem 0.5rem;
	border-radius: 0.85rem;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.sw-tg-mini__coin-badge {
	width: 1.65rem;
	height: 1.65rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 0.58rem;
	font-weight: 900;
	color: #fff;
}

.sw-tg-mini__coin-badge--btc { background: linear-gradient(135deg, #f7931a, #e2761b); }
.sw-tg-mini__coin-badge--eth { background: linear-gradient(135deg, #627eea, #4c5fd5); }
.sw-tg-mini__coin-badge--usdt { background: linear-gradient(135deg, #26a17b, #1f8a68); }

.sw-tg-mini__coin-meta {
	display: flex;
	flex-direction: column;
	gap: 0.05rem;
	min-width: 0;
}

.sw-tg-mini__coin-meta strong {
	font-size: 0.68rem;
	font-weight: 700;
	color: #f1f5f9;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sw-tg-mini__coin-meta small {
	font-size: 0.58rem;
	color: rgba(148, 163, 184, 0.85);
	font-family: ui-monospace, monospace;
}

.sw-tg-mini__coin-price {
	font-size: 0.68rem;
	font-weight: 800;
	color: #e2e8f0;
	white-space: nowrap;
}

.sw-tg-mini__app-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.45rem;
	margin-top: auto;
}

.sw-tg-mini__app-btn {
	display: grid;
	place-items: center;
	min-height: 1.85rem;
	border-radius: 0.75rem;
	font-size: 0.68rem;
	font-weight: 800;
}

.sw-tg-mini__app-btn--buy {
	color: #fff;
	background: linear-gradient(135deg, #3b82f6, var(--sw-primary-dark));
}

.sw-tg-mini__app-btn--sell {
	color: #e2e8f0;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.sw-tg-mini__reveal {
	transition: opacity 0.65s ease, transform 0.65s ease;
	transition-delay: var(--sw-tg-reveal-delay, 0s);
}

.sw-tg-mini.is-animated .sw-tg-mini__reveal {
	opacity: 0;
	transform: translateY(18px);
}

.sw-tg-mini.is-animated .sw-tg-mini__reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.sw-tg-mini__reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.sw-tg-mini__float {
		animation: none;
	}

	.sw-tg-mini__phone-wrap {
		transform: none;
	}
}

@media (max-width: 959px) {
	.sw-tg-mini__visual {
		min-height: 300px;
	}

	.sw-tg-mini__copy {
		text-align: center;
		align-items: center;
	}

	.sw-tg-mini__lede {
		max-width: none;
	}

	.sw-tg-mini__actions {
		justify-content: center;
	}
}

/* ═══════════════════════════════════════════════════════════
   دکمهٔ تغییر تم (لایت/دارک)
═══════════════════════════════════════════════════════════ */
.sw-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--sw-header-control-h, 2.3125rem);
	height: var(--sw-header-control-h, 2.3125rem);
	border-radius: 50%;
	border: 1px solid transparent;
	background: transparent;
	color: var(--sw-ink);
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.sw-theme-toggle:hover {
	background: rgba(0, 0, 0, 0.07);
}

.sw-theme-toggle:active {
	transform: scale(0.92);
}

/* در لایت‌مود: ماه نمایان، آفتاب پنهان — specificity بالاتر از .sw-icon */
.sw-theme-toggle .sw-theme-toggle__sun  { display: none !important; }
.sw-theme-toggle .sw-theme-toggle__moon { display: block !important; }

/* آیکن منو فقط موبایل — در دسکتاپ پنهان */
.sw-nav-item-icon {
	display: none;
}

/* دکمهٔ موبایل — پیش‌فرض پنهان، در موبایل نمایان */
.sw-theme-toggle--mobile {
	display: none;
	width: var(--sw-mobile-header-control-h, 2.25rem);
	height: var(--sw-mobile-header-control-h, 2.25rem);
	--sw-icon-size: 22px;  /* آیکن داخل دکمه */
}

@media (max-width: 960px) {
	/* پیش‌فرض: مخفی — فقط وقتی منو باز است نمایش داده می‌شود */
	.sw-theme-toggle--mobile {
		display: none;
		width: 3rem;
		height: 3rem;
		--sw-icon-size: 28px;
	}
	.sw-theme-toggle--mobile .sw-icon {
		width: 28px !important;
		height: 28px !important;
	}
	#sw-site-header.is-nav-open .sw-theme-toggle--mobile {
		display: inline-flex;
	}
}

/* ═══════════════════════════════════════════════════════════
   تم تاریک — متغیرها
═══════════════════════════════════════════════════════════ */
[data-theme="dark"] {
	--sw-canvas:  #09121e;
	--sw-site-bg: var(--sw-canvas);
	--sw-surface: #0d1e33;
	--sw-ink:     #dde6f0;
	--sw-muted:   #7a9abb;
	--sw-border:  rgba(255, 255, 255, 0.1);
	--sw-shadow:  0 10px 30px rgba(0, 0, 0, 0.45);

	/* شیشه‌ای تیره */
	--sw-glass-bg:           rgba(9, 18, 30, 0.68);
	--sw-glass-bg-strong:    rgba(9, 18, 30, 0.85);
	--sw-glass-stroke:       rgba(255, 255, 255, 0.14);
	--sw-glass-stroke-soft:  rgba(255, 255, 255, 0.08);
	--sw-glass-shadow:       0 8px 32px rgba(0, 0, 0, 0.4);

	/* نوار هدر — همان مقادیر شیشه‌ای ساب‌منو */
	--sw-header-bar-fill:    rgba(17, 35, 61, 0.4);
	--sw-header-glass-bg:    rgba(17, 35, 61, 0.4);
	--sw-header-glass-border: rgba(255, 255, 255, 0.07);
	--sw-header-glass-backdrop: blur(20px) saturate(1.8);
	--sw-header-glass-shadow: none;

	--sw-scrollbar-track: rgba(255, 255, 255, 0.05);
	--sw-scrollbar-thumb: rgba(79, 172, 254, 0.42);
	--sw-scrollbar-thumb-hover: rgba(79, 172, 254, 0.62);

	color-scheme: dark;
}

/* ── نورهای محیطی بک‌گراند (فقط دارک) ── */
.sw-ambient-bg {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

[data-theme="dark"] .sw-ambient-bg {
	display: block;
}

.sw-ambient-glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.38;
	will-change: transform;
}

/* بالای صفحه — هیرو */
.sw-ambient-glow--top {
	width: min(52vw, 36rem);
	height: min(52vw, 36rem);
	top: -12%;
	left: 50%;
	transform: translateX(-50%);
	background: radial-gradient(circle, rgba(20, 99, 246, 0.55) 0%, rgba(20, 99, 246, 0) 68%);
}

/* سمت راست (شروع در RTL) */
.sw-ambient-glow--start {
	width: min(42vw, 28rem);
	height: min(42vw, 28rem);
	top: 28%;
	inset-inline-start: -14%;
	background: radial-gradient(circle, rgba(79, 172, 254, 0.42) 0%, rgba(20, 99, 246, 0) 70%);
}

/* سمت چپ (پایان در RTL) */
.sw-ambient-glow--end {
	width: min(46vw, 30rem);
	height: min(46vw, 30rem);
	top: 42%;
	inset-inline-end: -16%;
	background: radial-gradient(circle, rgba(56, 189, 248, 0.38) 0%, rgba(20, 99, 246, 0) 72%);
}

/* وسط صفحه — امکانات / جدول */
.sw-ambient-glow--center {
	width: min(55vw, 32rem);
	height: min(40vw, 24rem);
	top: 52%;
	left: 50%;
	transform: translate(-50%, -50%);
	opacity: 0.22;
	background: radial-gradient(ellipse, rgba(20, 99, 246, 0.45) 0%, transparent 72%);
}

/* پایین صفحه */
.sw-ambient-glow--bottom {
	width: min(60vw, 40rem);
	height: min(35vw, 22rem);
	bottom: -8%;
	left: 50%;
	transform: translateX(-50%);
	opacity: 0.28;
	background: radial-gradient(ellipse, rgba(59, 130, 246, 0.35) 0%, transparent 75%);
}

@media (prefers-reduced-motion: reduce) {
	.sw-ambient-glow {
		filter: blur(60px);
		opacity: 0.2;
	}
}

/* سکشن‌ها شفاف تا نورها دیده شوند — هدر fixed بماند */
[data-theme="dark"] .site-main {
	position: relative;
	z-index: 1;
}

[data-theme="dark"] .hero.hero--home,
[data-theme="dark"] .sw-features,
[data-theme="dark"] .sw-mkt-section,
[data-theme="dark"] .sw-app-dl,
[data-theme="dark"] .sw-tg-mini,
[data-theme="dark"] .sw-market-ticker-section,
[data-theme="dark"] .sw-latest-section,
[data-theme="dark"] .section,
[data-theme="dark"] .sw-seo-accordion {
	background: transparent;
}

/* سکشن‌ها شفاف — لایت (گرadiant از body دیده شود) */
[data-theme="light"] .site-main {
	position: relative;
	z-index: 1;
}

[data-theme="light"] .hero.hero--home,
[data-theme="light"] .sw-features,
[data-theme="light"] .sw-mkt-section,
[data-theme="light"] .sw-app-dl,
[data-theme="light"] .sw-tg-mini,
[data-theme="light"] .sw-market-ticker-section,
[data-theme="light"] .sw-latest-section,
[data-theme="light"] .section,
[data-theme="light"] .sw-seo-accordion,
[data-theme="light"] .site-footer,
[data-theme="light"] .sw-careers-section,
[data-theme="light"] .sw-careers-cta,
[data-theme="light"] .sw-cml,
[data-theme="light"] .sw-ctl,
[data-theme="light"] .sw-hc {
	background: transparent;
}

/* دکمهٔ تم در حالت تاریک */
[data-theme="dark"] .sw-theme-toggle {
	color: rgba(221, 230, 240, 0.85);
}

[data-theme="dark"] .sw-theme-toggle:hover {
	background: rgba(255, 255, 255, 0.1);
}

/* در دارک‌مود: آفتاب نمایان، ماه پنهان */
[data-theme="dark"] .sw-theme-toggle .sw-theme-toggle__sun  { display: block !important; }
[data-theme="dark"] .sw-theme-toggle .sw-theme-toggle__moon { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   هدر — تم تاریک
═══════════════════════════════════════════════════════════ */

/* دارک مود — بک‌گراند مطابق canvas تاریک */
@media (max-width: 960px) {
	[data-theme="dark"] #sw-site-header {
		background-color: rgba(9, 18, 30, 0.78) !important;
	}
}

[data-theme="dark"] .sw-nav-mega__item:hover {
	background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .sw-nav-mega__icon {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .sw-logo-lockup {
	color: var(--sw-ink);
}

[data-theme="dark"] .sw-nav-toggle {
	color: var(--sw-ink);
}

[data-theme="dark"] .sw-header-download {
	color: var(--sw-ink);
}

/* لینک‌های منو در دارک‌مود */
[data-theme="dark"] #sw-primary-nav .menu a {
	color: var(--sw-ink);
}

[data-theme="dark"] #sw-primary-nav .menu a:hover,
[data-theme="dark"] #sw-primary-nav .current-menu-item > a {
	color: var(--sw-primary);
}

/* خط جداکننده منو موبایل در دارک‌مود */
[data-theme="dark"] #sw-primary-nav.sw-nav--header-mobile-panel {
	border-block-start-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .sw-nav-mega--mobile .sw-nav-mega__item:active {
	background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .menu-item-has-mega.is-mega-open > .sw-nav-mega--mobile > .sw-nav-mega__inner {
	border-inline-start-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] #sw-site-header.is-nav-open #sw-primary-nav.sw-nav--header-mobile-panel {
	scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

[data-theme="dark"] #sw-site-header.is-nav-open #sw-primary-nav.sw-nav--header-mobile-panel::-webkit-scrollbar-thumb {
	background-color: rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════════════════════════
   هیرو صفحهٔ اصلی — تم تاریک
═══════════════════════════════════════════════════════════ */
[data-theme="dark"] .hero.hero--home {
	--hero-navy: #b8d4f0;
}

[data-theme="dark"] .hero--home__lede {
	color: #8ea8c5;
}

[data-theme="dark"] .hero--home__btn--app {
	background: transparent;
	border-color: var(--sw-primary);
	color: #ffffff;
}

[data-theme="dark"] .hero--home__btn--app:hover {
	color: #ffffff;
	background: rgba(20, 99, 246, 0.2);
	border-color: var(--sw-primary);
}

/* ═══════════════════════════════════════════════════════════
   نوار تیکر قیمت — تم تاریک
═══════════════════════════════════════════════════════════ */

[data-theme="dark"] .hero-market-chip__viewport {
	background: rgba(13, 30, 55, 0.96);
	border-color: rgba(255, 255, 255, 0.12);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.06),
		inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .hero-market-chip__label {
	color: #dde6f0;
}

[data-theme="dark"] .hero-market-chip__price {
	color: #7a9abb;
}

[data-theme="dark"] .hero-market-chip__caption {
	color: #5a7a98;
}

/* ═══════════════════════════════════════════════════════════
   سکشن‌ها و کارت‌ها — تم تاریک
═══════════════════════════════════════════════════════════ */

/* کارت‌های دسته‌بندی */
[data-theme="dark"] .cat-card {
	background: linear-gradient(180deg, #102240 0%, #0d1e33 100%);
}

/* کارت‌های پست: از --sw-surface و --sw-border استفاده می‌کنند → خودکار تاریک می‌شن */

/* جدول محتوا — dark mode */
[data-theme="dark"] .entry-content table thead th {
	background: rgba(20, 99, 246, 0.12);
}

[data-theme="dark"] .entry-content table tbody tr:nth-child(even) {
	background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .entry-content table tbody tr:hover {
	background: rgba(20, 99, 246, 0.1);
}

/* سطر متا پست */
[data-theme="dark"] .post-card:hover {
	border-color: var(--sw-primary);
}

/* بنرها */
[data-theme="dark"] .banner-slot-inner {
	border-color: rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════════
   باند CTA پایین صفحه — تم تاریک
═══════════════════════════════════════════════════════════ */
[data-theme="dark"] .sw-home-cta {
	background:
		radial-gradient(720px circle at 8% -10%, rgba(20, 99, 246, 0.18), transparent 55%),
		radial-gradient(820px circle at 88% 0%, rgba(90, 168, 255, 0.09), transparent 50%),
		linear-gradient(180deg, #060e1a 0%, #09121e 52%, #060e1a 100%);
}

/* ═══════════════════════════════════════════════════════════
   جدول رمزارزها — تم تاریک
═══════════════════════════════════════════════════════════ */
[data-theme="dark"] .sw-mkt-action-btn {
	border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .sw-mkt-action-btn:hover {
	background: var(--sw-primary);
	border-color: var(--sw-primary);
	color: #ffffff;
}

[data-theme="dark"] .sw-mkt-currency-tab.is-active {
	background: #dde6f0;
	color: #09121e;
}

[data-theme="dark"] .sw-mkt-change--up   { color: #4ade80; }
[data-theme="dark"] .sw-mkt-change--down { color: #f87171; }

/* جدول دارک‌مود — حذف بوردرها */
[data-theme="dark"] .sw-mkt-table-wrap {
	border-color: transparent;
}
[data-theme="dark"] .sw-mkt-row {
	border-block-end-color: rgba(255, 255, 255, 0.06);
}

/* ═══════════════════════════════════════════════════════════
   سکشن امکانات — تم تاریک
═══════════════════════════════════════════════════════════ */
[data-theme="dark"] .sw-features {
	color: #e8f2ff;
}

[data-theme="dark"] .sw-features__title {
	color: #e8f2ff;
}

[data-theme="dark"] .sw-features__lede {
	color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .sw-feat-item {
	background: rgba(255, 255, 255, 0.07);
	border: none;
	color: rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .sw-feat-item.is-active {
	background: var(--sw-primary);
	border: none;
	color: #ffffff;
}

[data-theme="dark"] .sw-feat-card {
	background: #101c2e;
	border-color: transparent;
	box-shadow: none;
}

[data-theme="dark"] .sw-feat-card__icon-wrap {
	background: rgba(20, 99, 246, 0.18);
}

[data-theme="dark"] .sw-feat-card__title {
	color: #ffffff;
}

[data-theme="dark"] .sw-feat-card__text {
	color: rgba(255, 255, 255, 0.62);
}

[data-theme="dark"] .sw-tg-mini__title,
[data-theme="dark"] .sw-tg-mini__feat-copy strong {
	color: #e8f2ff;
}

[data-theme="dark"] .sw-tg-mini__lede,
[data-theme="dark"] .sw-tg-mini__feat-copy span {
	color: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] .sw-tg-mini__feat {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid transparent;
}

[data-theme="dark"] .sw-tg-mini__feat:hover {
}

[data-theme="dark"] .sw-tg-mini__feat-icon {
	background: rgba(59, 130, 246, 0.14);
	border: 1px solid transparent;
}

[data-theme="dark"] .sw-tg-mini__btn--primary {
	background: linear-gradient(135deg, #3b82f6 0%, var(--sw-primary) 45%, var(--sw-primary-dark) 100%);
	box-shadow: 0 10px 28px rgba(20, 99, 246, 0.35);
}

[data-theme="dark"] .sw-tg-mini__btn--primary:hover {
	box-shadow: 0 14px 36px rgba(59, 130, 246, 0.45);
}

[data-theme="dark"] .sw-tg-mini__btn--ghost {
	color: #e8f2ff;
	border-color: rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .sw-tg-mini__btn--ghost:hover {
	border-color: rgba(147, 197, 253, 0.4);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

[data-theme="dark"] .sw-tg-mini__float {
	color: #e8f2ff;
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.1);
	box-shadow: none;
}

[data-theme="dark"] .sw-tg-mini__phone-glow {
	background: radial-gradient(circle, rgba(59, 130, 246, 0.42) 0%, transparent 68%);
	opacity: 0.85;
}

[data-theme="dark"] .sw-tg-mini__phone {
	box-shadow:
		0 30px 70px rgba(0, 0, 0, 0.55),
		0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

[data-theme="light"] .sw-tg-mini {
	color: #0d2240;
}

[data-theme="light"] .sw-tg-mini__badge {
	color: var(--sw-primary-dark);
	background: rgba(20, 99, 246, 0.08);
	border-color: rgba(20, 99, 246, 0.16);
}

[data-theme="dark"] .sw-app-dl__title,
[data-theme="dark"] .sw-app-dl__link-name {
	color: #e8f2ff;
}

[data-theme="dark"] .sw-app-dl {
	color: #e8f2ff;
}

[data-theme="dark"] .sw-app-dl__lede {
	color: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] .sw-app-dl__tabs {
	background: rgba(255, 255, 255, 0.05);
	border-color: transparent;
}

[data-theme="dark"] .sw-app-dl__link {
	background: rgba(255, 255, 255, 0.05);
	border-color: transparent;
}

[data-theme="dark"] .sw-app-dl__link:hover {
	border-color: color-mix(in srgb, var(--sw-primary) 45%, transparent);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .sw-app-dl__link-icon {
	background: rgba(255, 255, 255, 0.08);
	border-color: transparent;
}

[data-theme="dark"] .sw-app-dl__link-badge {
	color: rgba(255, 255, 255, 0.55);
	background: rgba(255, 255, 255, 0.06);
	border-color: transparent;
}

[data-theme="dark"] .sw-app-dl__link--soon {
	opacity: 0.58;
}

[data-theme="dark"] .sw-app-dl__platform-chip {
	color: #e8f2ff;
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .sw-app-dl__visual-glow {
	background: radial-gradient(circle, rgba(59, 130, 246, 0.28) 0%, transparent 68%);
}

[data-theme="dark"] .sw-app-dl__device {
	border-color: #3a3a3a;
}

/* ── منظومهٔ تزئینی کناره‌ها (دسکتاپ — لایت + دارک) ── */
.sw-features__orbits {
	display: none;
}

@media (min-width: 1024px) {
	.sw-features__orbits {
		display: block;
		position: absolute;
		inset: 0;
		z-index: 0;
		pointer-events: none;
		overflow: hidden;
		-webkit-mask-image: linear-gradient(
			to bottom,
			transparent 0%,
			#000 14%,
			#000 86%,
			transparent 100%
		);
		mask-image: linear-gradient(
			to bottom,
			transparent 0%,
			#000 14%,
			#000 86%,
			transparent 100%
		);
	}

	.sw-features__orbits-svg {
		position: absolute;
		top: 50%;
		width: clamp(12rem, 18vw, 18rem);   /* بزرگ‌تر */
		height: min(96%, 32rem);
		transform: translateY(-50%);
		overflow: visible;
	}

	.sw-features__orbits-svg--start {
		inset-inline-start: 0;
	}

	.sw-features__orbits-svg--end {
		inset-inline-end: 0;
	}

	/* رنگ لایت‌مود */
	.sw-feat-orbit__track {
		fill: none;
		stroke: rgba(20, 99, 246, 0.1);
		stroke-width: 1;
		vector-effect: non-scaling-stroke;
	}

	.sw-feat-orbit__light {
		fill: none;
		stroke: rgba(20, 99, 246, 0.7);
		stroke-width: 1.5;
		stroke-linecap: round;
		vector-effect: non-scaling-stroke;
		stroke-dasharray: 28 520;
		filter: drop-shadow(0 0 5px rgba(20, 99, 246, 0.5))
			drop-shadow(0 0 14px rgba(20, 99, 246, 0.25));
	}

	/* رنگ دارک‌مود */
	[data-theme="dark"] .sw-feat-orbit__track {
		stroke: rgba(79, 172, 254, 0.14);
	}

	[data-theme="dark"] .sw-feat-orbit__light {
		stroke: rgba(147, 197, 253, 0.92);
		filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.75))
			drop-shadow(0 0 14px rgba(20, 99, 246, 0.45));
	}

	.sw-feat-orbit__light--a {
		animation: sw-feat-orbit-light-a 13s ease-in-out infinite;
	}

	.sw-feat-orbit__light--b {
		stroke-dasharray: 22 480;
		animation: sw-feat-orbit-light-b 9.5s ease-in-out infinite;
		animation-delay: -2.4s;
	}

	.sw-feat-orbit__light--c {
		stroke-dasharray: 18 360;
		animation: sw-feat-orbit-light-c 11.8s ease-in-out infinite;
		animation-delay: -5.1s;
	}

	.sw-feat-orbit__light--d {
		stroke-dasharray: 14 280;
		animation: sw-feat-orbit-light-d 7.2s ease-in-out infinite;
		animation-delay: -1.2s;
	}

	.sw-feat-orbit__light--e {
		animation: sw-feat-orbit-light-e 12.4s ease-in-out infinite;
		animation-delay: -3.8s;
	}

	.sw-feat-orbit__light--f {
		stroke-dasharray: 24 500;
		animation: sw-feat-orbit-light-f 8.6s ease-in-out infinite;
		animation-delay: -6.2s;
	}

	.sw-feat-orbit__light--g {
		stroke-dasharray: 20 380;
		animation: sw-feat-orbit-light-g 10.2s ease-in-out infinite;
		animation-delay: -4.5s;
	}

	.sw-feat-orbit__light--h {
		stroke-dasharray: 16 300;
		animation: sw-feat-orbit-light-h 6.8s ease-in-out infinite;
		animation-delay: -0.9s;
	}

	@keyframes sw-feat-orbit-light-a {
		0%   { stroke-dashoffset: 0; opacity: 0.35; }
		18%  { stroke-dashoffset: -95; opacity: 1; }
		42%  { stroke-dashoffset: -210; opacity: 0.55; }
		58%  { stroke-dashoffset: -240; opacity: 1; }
		82%  { stroke-dashoffset: -410; opacity: 0.4; }
		100% { stroke-dashoffset: -548; opacity: 0.35; }
	}

	@keyframes sw-feat-orbit-light-b {
		0%   { stroke-dashoffset: 0; }
		12%  { stroke-dashoffset: -60; }
		35%  { stroke-dashoffset: -140; }
		50%  { stroke-dashoffset: -155; }
		72%  { stroke-dashoffset: -300; }
		100% { stroke-dashoffset: -502; }
	}

	@keyframes sw-feat-orbit-light-c {
		0%   { stroke-dashoffset: 0; }
		25%  { stroke-dashoffset: -110; }
		48%  { stroke-dashoffset: -175; }
		65%  { stroke-dashoffset: -280; }
		88%  { stroke-dashoffset: -360; }
		100% { stroke-dashoffset: -398; }
	}

	@keyframes sw-feat-orbit-light-d {
		0%   { stroke-dashoffset: 0; }
		20%  { stroke-dashoffset: -45; }
		45%  { stroke-dashoffset: -120; }
		70%  { stroke-dashoffset: -195; }
		100% { stroke-dashoffset: -294; }
	}

	@keyframes sw-feat-orbit-light-e {
		0%   { stroke-dashoffset: 0; opacity: 0.4; }
		22%  { stroke-dashoffset: -130; opacity: 1; }
		44%  { stroke-dashoffset: -255; opacity: 0.5; }
		61%  { stroke-dashoffset: -290; opacity: 0.95; }
		85%  { stroke-dashoffset: -460; opacity: 0.45; }
		100% { stroke-dashoffset: -548; opacity: 0.4; }
	}

	@keyframes sw-feat-orbit-light-f {
		0%   { stroke-dashoffset: 0; }
		16%  { stroke-dashoffset: -85; }
		38%  { stroke-dashoffset: -200; }
		55%  { stroke-dashoffset: -220; }
		78%  { stroke-dashoffset: -380; }
		100% { stroke-dashoffset: -524; }
	}

	@keyframes sw-feat-orbit-light-g {
		0%   { stroke-dashoffset: 0; }
		28%  { stroke-dashoffset: -100; }
		52%  { stroke-dashoffset: -190; }
		68%  { stroke-dashoffset: -250; }
		100% { stroke-dashoffset: -418; }
	}

	@keyframes sw-feat-orbit-light-h {
		0%   { stroke-dashoffset: 0; }
		24%  { stroke-dashoffset: -55; }
		50%  { stroke-dashoffset: -130; }
		74%  { stroke-dashoffset: -210; }
		100% { stroke-dashoffset: -316; }
	}
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
	.sw-feat-orbit__light {
		animation: none;
		stroke-dasharray: none;
		opacity: 0.35;
	}
}

/* ═══════════════════════════════════════════════════════════
   هیرو — تم تاریک: برداشتن سایهٔ سفید از «سواپ‌ولت»
═══════════════════════════════════════════════════════════ */
[data-theme="dark"] .hero--home__title-brand {
	text-shadow: none;
}

/* ═══════════════════════════════════════════════════════════
   فوتر — تم تاریک
═══════════════════════════════════════════════════════════ */
[data-theme="dark"] .site-footer {
	position: relative;
	z-index: 0;
	background: rgba(6, 13, 24, 0.72);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .sw-footer-col__trigger {
	border-bottom-color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .sw-footer-col {
	border-bottom-color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .sw-footer-store-btn {
	background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .site-footer a {
	color: #8ea5c0;
}

[data-theme="dark"] .site-footer a:hover {
	color: #dde6f0;
}

/* ═══════════════════════════════════════════════════════════
   سکشن «چطور شروع کنم؟» — sw-hts
═══════════════════════════════════════════════════════════ */

/* ── ظرف اصلی ── */
.sw-hts {
	position: relative;
	padding-block: clamp(3rem, 7vw, 5.5rem);
	overflow: hidden;
}

/* ── هدر ── */
.sw-hts__head {
	text-align: center;
	margin-block-end: clamp(2rem, 4.5vw, 3.5rem);
}

.sw-hts__title {
	font-size: clamp(1.55rem, 2.6vw + 0.6rem, 2.4rem);
	font-weight: 800;
	color: var(--sw-ink);
	margin: 0 0 0.45em;
	line-height: 1.3;
}

.sw-hts__lede {
	font-size: clamp(0.92rem, 0.8vw + 0.6rem, 1.05rem);
	color: var(--sw-muted);
	margin: 0;
	font-weight: 500;
}

/* ── ردیف اصلی: کارت‌ها + خطوط ── */
.sw-hts__track {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 0;
	justify-content: center;
}

/* ── کارت ── */
.sw-hts__card {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	max-width: 300px;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 1.1rem;
	padding: clamp(1.25rem, 2.2vw, 1.75rem) clamp(1.1rem, 2vw, 1.6rem);
	background: var(--sw-surface);
	border: 1px solid var(--sw-border);
	border-radius: var(--sw-radius-lg);
	box-shadow: var(--sw-shadow);
	transition:
		box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		transform   0.35s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.35s ease;
	cursor: default;
	overflow: hidden;
}

/* shimmer درونی کارت */
.sw-hts__card::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(
		ellipse 80% 50% at 50% 0%,
		rgba(20, 99, 246, 0.06) 0%,
		transparent 70%
	);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.35s ease;
}

.sw-hts__card:hover {
	transform: translateY(-4px);
	box-shadow:
		0 20px 50px rgba(15, 23, 42, 0.12),
		0 4px 12px rgba(20, 99, 246, 0.08);
	border-color: rgba(20, 99, 246, 0.22);
}

.sw-hts__card:hover::before {
	opacity: 1;
}

/* ── حالت active کارت (کنترل‌شده با JS) ── */
.sw-hts__card.is-active {
	border-color: rgba(20, 99, 246, 0.38);
	box-shadow:
		0 0 0 1px rgba(20, 99, 246, 0.18),
		0 0 22px rgba(20, 99, 246, 0.18),
		0 12px 32px rgba(15, 23, 42, 0.1);
}

.sw-hts__card.is-active::before {
	opacity: 1;
}

/* glow حلقه‌ای دور کارت فعال */
.sw-hts__card.is-active::after {
	content: '';
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	background: transparent;
	box-shadow:
		0 0 18px 4px rgba(20, 99, 246, 0.14),
		0 0 40px 8px rgba(20, 99, 246, 0.07);
	pointer-events: none;
	animation: sw-hts-glow-pulse 2.4s ease-in-out infinite;
}

@keyframes sw-hts-glow-pulse {
	0%, 100% { opacity: 0.7; }
	50%       { opacity: 1; }
}

/* ── بج شماره/تیک ── */
.sw-hts__step-badge {
	position: relative;
	flex-shrink: 0;
	width: 3rem;
	height: 3rem;
}

.sw-hts__step-num,
.sw-hts__step-check {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	border: 2px solid var(--sw-primary);
	background: var(--sw-primary-soft);
	color: var(--sw-primary);
	font-weight: 800;
	font-size: 1.2rem;
	line-height: 1;
	transition:
		opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.sw-hts__step-check {
	opacity: 0;
	transform: scale(0.55) rotate(-30deg);
	background: rgba(20, 99, 246, 0.15);
}

.sw-hts__step-check svg {
	width: 1.15rem;
	height: 1.15rem;
	display: block;
}

/* morph: عدد → تیک */
.sw-hts__card.is-active .sw-hts__step-num {
	opacity: 0;
	transform: scale(0.55) rotate(30deg);
}

.sw-hts__card.is-active .sw-hts__step-check {
	opacity: 1;
	transform: scale(1) rotate(0deg);
	background: rgba(20, 99, 246, 0.15);
	border-color: #1463f6;
	color: #1463f6;
}

/* ── متن کارت ── */
.sw-hts__copy {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
}

.sw-hts__card-title {
	display: block;
	font-size: clamp(1rem, 1.1vw + 0.5rem, 1.2rem);
	font-weight: 800;
	color: var(--sw-ink);
	line-height: 1.3;
}

.sw-hts__card-sub {
	display: block;
	font-size: clamp(0.8rem, 0.7vw + 0.45rem, 0.9rem);
	color: var(--sw-muted);
	font-weight: 500;
	line-height: 1.55;
}

/* ── خط اتصال ── */
.sw-hts__connector {
	flex-shrink: 0;
	width: clamp(1.5rem, 3vw, 3rem);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	align-self: center;
}

.sw-hts__connector-track {
	position: relative;
	width: 100%;
	height: 2px;
	background: var(--sw-border);
	border-radius: 999px;
	overflow: hidden;
}

/* pulse روان روی خط */
.sw-hts__connector-pulse {
	position: absolute;
	top: 0;
	right: -55%;
	width: 55%;
	height: 100%;
	border-radius: 999px;
	/* gradient معکوس: «سر» روشن در سمت چپ (جهت حرکت در RTL) */
	background: linear-gradient(
		90deg,
		transparent 0%,
		var(--sw-primary) 30%,
		rgba(20, 99, 246, 0.65) 60%,
		transparent 100%
	);
	opacity: 0;
	transition: none;
}

/* حالت فعال خط: pulse از راست به چپ (RTL) */
.sw-hts__connector.is-active .sw-hts__connector-pulse {
	animation: sw-hts-pulse-flow 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes sw-hts-pulse-flow {
	0%   { right: -55%; opacity: 0; }
	12%  { opacity: 1; }
	88%  { opacity: 0.85; }
	100% { right: 100%; opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   موبایل — عمودی
═══════════════════════════════════════════════════════════ */
@media (max-width: 700px) {
	.sw-hts__track {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.sw-hts__card {
		max-width: none;
		flex: none;
	}

	.sw-hts__connector {
		width: auto;
		height: clamp(1.25rem, 4vw, 1.75rem);
		align-items: center;
		justify-content: center;
		align-self: stretch;
	}

	.sw-hts__connector-track {
		width: 2px;
		height: 100%;
		margin: 0 auto;
	}

	.sw-hts__connector-pulse {
		top: 100%;
		right: auto;
		left: 0;
		width: 100%;
		height: 55%;
		background: linear-gradient(
			180deg,
			transparent 0%,
			rgba(20, 99, 246, 0.65) 40%,
			var(--sw-primary) 70%,
			transparent 100%
		);
	}

	.sw-hts__connector.is-active .sw-hts__connector-pulse {
		animation: sw-hts-pulse-flow-v 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	}

	@keyframes sw-hts-pulse-flow-v {
		0%   { top: -55%; opacity: 0; }
		12%  { opacity: 1; }
		88%  { opacity: 0.85; }
		100% { top: 100%; opacity: 0; }
	}
}

/* ═══════════════════════════════════════════════════════════
   تم تاریک — sw-hts
═══════════════════════════════════════════════════════════ */
[data-theme="dark"] .sw-hts__title {
	color: #dde6f0;
}

[data-theme="dark"] .sw-hts__lede {
	color: #7a9abb;
}

[data-theme="dark"] .sw-hts__card {
	background: rgba(13, 30, 51, 0.72);
	border-color: transparent;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .sw-hts__card:hover {
	border-color: rgba(20, 99, 246, 0.4);
	box-shadow:
		0 20px 50px rgba(0, 0, 0, 0.45),
		0 4px 12px rgba(20, 99, 246, 0.18);
}

[data-theme="dark"] .sw-hts__card.is-active {
	border-color: rgba(20, 99, 246, 0.5);
	background: rgba(13, 30, 51, 0.88);
	box-shadow:
		0 0 0 1px rgba(20, 99, 246, 0.25),
		0 0 28px rgba(20, 99, 246, 0.22),
		0 12px 36px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .sw-hts__card-title {
	color: #dde6f0;
}

[data-theme="dark"] .sw-hts__card-sub {
	color: #7a9abb;
}

[data-theme="dark"] .sw-hts__connector-track {
	background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .sw-hts__step-num,
[data-theme="dark"] .sw-hts__step-check {
	background: rgba(20, 99, 246, 0.18);
	border-color: rgba(79, 172, 254, 0.7);
	color: #7eb8ff;
}

[data-theme="dark"] .sw-hts__card.is-active .sw-hts__step-check {
	background: rgba(20, 99, 246, 0.18);
	border-color: #4a9ffe;
	color: #4a9ffe;
}

/* ── دکمه CTA زیر کارت‌ها ── */
.sw-hts__cta-wrap {
	display: flex;
	justify-content: center;
	margin-top: 2rem;
}

.sw-hts__cta-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: none;
	border: none;
	padding: 0;
	color: var(--sw-primary);
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s ease, gap 0.25s ease;
}

.sw-hts__cta-link:hover {
	opacity: 0.8;
	gap: 0.65rem;
}

.sw-hts__cta-arrow {
	width: 1.1rem;
	height: 1.1rem;
	flex-shrink: 0;
	transition: transform 0.25s ease;
}

.sw-hts__cta-link:hover .sw-hts__cta-arrow {
	transform: translateX(-3px);
}

/* کاهش حرکت */
@media (prefers-reduced-motion: reduce) {
	.sw-hts__card,
	.sw-hts__card::before,
	.sw-hts__card::after,
	.sw-hts__step-num,
	.sw-hts__step-check,
	.sw-hts__connector-pulse {
		animation: none !important;
		transition: none !important;
	}
}

/* ── صفحهٔ مگ ── */
.sw-mag__pagination {
	margin-block-start: clamp(2rem, 4vw, 3rem);
	text-align: center;
}

.sw-mag__empty {
	text-align: center;
	color: var(--sw-muted);
	padding: 3rem 0;
}

/* ══════════════════════════════════════════
   Hero Carousel — صفحهٔ مگ
   ۵ کارت در ویو، ۳ لایه عمق، blur+تاریکی تصاعدی
   ══════════════════════════════════════════ */

/* سکشن: overflow:hidden جلوی اسکرول افقی را می‌گیرد */
.sw-mag-hc-section {
	overflow: hidden;
}

/* ── wrapper ── */
.sw-mag-hc {
	position: relative;
	padding-block: clamp(1rem, 2vw, 1.5rem);
}

/* ── تراک اسکرول — ۵ کارت وسط‌چین، اینفینیت ── */
.sw-mag-hc__track {
	display: flex;
	flex-flow: row nowrap;
	gap: clamp(0.5rem, 1vw, 0.75rem);
	padding-inline: 0;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.sw-mag-hc__track::-webkit-scrollbar { display: none; }

/* ── کارت: ۴۰٪ صفحه — کارت کناری نصفش بیرون ── */
.sw-mag-hc__card {
	flex-shrink: 0;
	width: 40%;
	display: flex;
	flex-direction: column;
	border-radius: var(--sw-radius-lg);
	overflow: hidden;
	text-decoration: none;
	background: var(--sw-surface);
	border: 2px solid var(--sw-border);
	scroll-snap-align: center;
	transition: opacity 0.35s ease, border-color 0.25s ease;
}

.sw-mag-hc__card.is-center:hover {
	border-color: var(--sw-primary);
}

/* عکس */
.sw-mag-hc__img {
	width: 100%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	flex-shrink: 0;
}

.sw-mag-hc__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

/* hover zoom تصویر فقط روی کارت مرکز */
.sw-mag-hc__card.is-center:hover .sw-mag-hc__img img {
	transform: scale(1.04);
}

.sw-mag-hc__img-fallback {
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 30% -10%, rgba(20,99,246,0.78), transparent 55%),
		radial-gradient(circle at 90% 20%, rgba(90,168,255,0.42), transparent 45%),
		#121a29;
}

/* تایتل — زیر عکس */
.sw-mag-hc__info {
	padding: clamp(0.65rem, 1.5vw, 1rem);
	background: var(--sw-surface);
}

.sw-mag-hc__title {
	font-size: clamp(1rem, 1.2vw + 0.4rem, 1.35rem);
	font-weight: 700;
	color: var(--sw-ink);
	margin: 0;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* دکمه‌های prev/next — روی تراک */
.sw-mag-hc__btn {
	position: absolute;
	top: 50%;
	transform: translateY(-60%);   /* کمی بالاتر از وسط (زیر عکس) */
	z-index: 10;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.22);
	background: rgba(9, 18, 30, 0.65);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: background 0.2s, border-color 0.2s;
	padding: 0;
}

.sw-mag-hc__btn:hover {
	background: rgba(20, 99, 246, 0.8);
	border-color: rgba(255, 255, 255, 0.4);
}

.sw-mag-hc__btn--prev { right: 0.5rem; }
.sw-mag-hc__btn--next { left:  0.5rem; }

/* فلش prev باید به راست نشان دهد */
.sw-mag-hc__btn-icon--flip {
	transform: rotate(180deg);
	display: block;
}

/* dots */
.sw-mag-hc__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.4rem;
	margin-block-start: 0.85rem;
}

.sw-mag-hc__dot {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: var(--sw-border);
	border: none;
	cursor: pointer;
	padding: 0;
	transition: width 0.3s ease, background 0.3s ease;
}

.sw-mag-hc__dot.is-active {
	width: 22px;
	background: var(--sw-primary);
}

/* دارک‌مود */
[data-theme="dark"] .sw-mag-hc__card  { background: var(--sw-surface); }
[data-theme="dark"] .sw-mag-hc__info  { background: var(--sw-surface); }

/* موبایل: کارت وسط ۸۰٪ — کارت‌های کناری ۱۰٪ پیدا */
@media (max-width: 700px) {
	.sw-mag-hc__card {
		width: 80%;
	}
}

/* ══════════════════════════════════════════
   سکشن محبوب‌ترین مقالات — صفحهٔ مگ
   ══════════════════════════════════════════ */

/* ══════════════════════════════════════════
   دسته‌بندی‌های مگ
   ══════════════════════════════════════════ */

.sw-mag-cats-section {
	padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.sw-mag-cats__head {
	margin-block-end: clamp(1.25rem, 2.5vw, 2rem);
	text-align: center;
}

.sw-mag-cats__head h2 {
	font-size: clamp(1.4rem, 2.5vw + 0.5rem, 2.1rem);
	font-weight: 700;
	color: var(--sw-ink);
	margin: 0 0 0.5rem;
}

.sw-mag-cats__sub {
	font-size: clamp(0.82rem, 0.8vw + 0.36rem, 0.95rem);
	color: var(--sw-muted);
	margin: 0;
	line-height: 1.65;
}

.sw-mag-cats__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(0.75rem, 1.5vw, 1.1rem);
}

@media (max-width: 760px) {
	.sw-mag-cats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
	.sw-mag-cats__grid { grid-template-columns: 1fr; }
}

/* کارت دسته‌بندی — آیکن سمت راست، متن سمت چپ */
.sw-mag-cat-card {
	display: flex;
	flex-direction: row;
	align-items: center;
	direction: rtl;
	gap: clamp(0.75rem, 1.5vw, 1rem);
	padding: clamp(1rem, 2vw, 1.35rem);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 1rem;
	text-decoration: none;
	color: inherit;
	transition: background 0.22s, border-color 0.22s, transform 0.22s;
}

.sw-mag-cat-card:hover {
	background: rgba(20, 99, 246, 0.08);
	border-color: rgba(20, 99, 246, 0.35);
	transform: translateY(-3px);
}

/* آیکن دسته — سمت راست، هم‌ارتفاع با محتوا */
.sw-mag-cat-card__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sw-primary);
	align-self: stretch;
}

/* فلش چپ — انتهای کارت */
.sw-mag-cat-card__arrow {
	flex-shrink: 0;
	margin-inline-start: auto;
	display: flex;
	align-items: center;
	color: var(--sw-primary);
	opacity: 0.7;
	transition: opacity 0.2s, transform 0.2s;
}

.sw-mag-cat-card:hover .sw-mag-cat-card__arrow {
	opacity: 1;
	transform: translateX(-4px);
}

/* ستون متن */
.sw-mag-cat-card__content {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
}

.sw-mag-cat-card__title {
	font-size: clamp(0.9rem, 1vw + 0.4rem, 1.05rem);
	font-weight: 700;
	color: var(--sw-ink);
	margin: 0;
	direction: rtl;
}

.sw-mag-cat-card__desc {
	font-size: clamp(0.72rem, 0.75vw + 0.32rem, 0.82rem);
	color: var(--sw-muted);
	line-height: 1.65;
	margin: 0;
	direction: rtl;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* دارک‌مود */
[data-theme="dark"] .sw-mag-cat-card {
	background: rgba(255, 255, 255, 0.03);
	border-color: rgba(255, 255, 255, 0.07);
}

[data-theme="dark"] .sw-mag-cat-card:hover {
	background: rgba(20, 99, 246, 0.1);
	border-color: rgba(20, 99, 246, 0.4);
}

/* ══════════════════════════════════════════ */

.sw-mag-popular-wrap {
	padding-inline: clamp(1rem, 4vw, 2rem);
	padding-block-end: clamp(1.5rem, 3vw, 2.5rem);
}

/* کارت شیشه‌ای ظرف */
.sw-mag-popular {
	display: flex;
	flex-flow: row nowrap;
	align-items: stretch;
	gap: 0;
	background: rgba(9, 18, 30, 0.48);
	backdrop-filter: blur(18px) saturate(1.5);
	-webkit-backdrop-filter: blur(18px) saturate(1.5);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 1.15rem;
	overflow: hidden;
	direction: rtl;
}

/* ── ستون راست: آیکن + تایتل ── */
.sw-mag-popular__label {
	flex-shrink: 0;
	width: clamp(100px, 13vw, 150px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.7rem;
	padding: clamp(1.25rem, 3vw, 2rem) 0.75rem;
	border-inline-end: 1px solid rgba(255, 255, 255, 0.09);
	background: rgba(20, 99, 246, 0.07);
}

.sw-mag-popular__icon {
	color: var(--sw-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.sw-mag-popular__title {
	color: #fff;
	font-size: clamp(0.7rem, 0.9vw + 0.3rem, 0.88rem);
	font-weight: 700;
	text-align: center;
	line-height: 1.5;
	margin: 0;
}

/* ── ستون چپ: اسکرول کارت‌ها ── */
.sw-mag-popular__scroll-wrap {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	overflow: hidden;
	padding-block: clamp(0.75rem, 1.5vw, 1.1rem);
}

.sw-mag-popular__track {
	display: flex;
	flex-flow: row nowrap;
	align-items: stretch;
	gap: clamp(0.6rem, 1.2vw, 0.9rem);
	padding-inline: clamp(0.75rem, 1.5vw, 1.1rem);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.sw-mag-popular__track::-webkit-scrollbar { display: none; }

/* ── کارت کوچک بلاگ‌پست — داخل کارت شیشه‌ای مجزا ── */
.sw-mag-pop-card {
	flex-shrink: 0;
	width: clamp(150px, 18vw, 210px);
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.75rem;
	overflow: hidden;
	scroll-snap-align: start;
	transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.sw-mag-pop-card:hover {
	background: rgba(255, 255, 255, 0.09);
	border-color: rgba(20, 99, 246, 0.4);
	transform: translateY(-2px);
}

.sw-mag-pop-card__thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	flex-shrink: 0;
}

.sw-mag-pop-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.sw-mag-pop-card:hover .sw-mag-pop-card__thumb img {
	transform: scale(1.06);
}

.sw-mag-pop-card__thumb-fallback {
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 30% -10%, rgba(20,99,246,0.65), transparent 55%),
		#0d1a2e;
}

.sw-mag-pop-card__body {
	padding: 0.65rem 0.7rem 0.8rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	flex: 1;
}

.sw-mag-pop-card__name {
	font-size: clamp(0.68rem, 0.75vw + 0.32rem, 0.82rem);
	font-weight: 700;
	color: #fff;
	line-height: 1.45;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	direction: rtl;
}

.sw-mag-pop-card__excerpt {
	font-size: clamp(0.6rem, 0.65vw + 0.28rem, 0.72rem);
	color: rgba(255, 255, 255, 0.52);
	line-height: 1.55;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	direction: rtl;
}

/* ── کارت «مشاهده بیشتر» — همسان با کارت‌های مقاله ── */
.sw-mag-pop-more {
	flex-shrink: 0;
	width: clamp(110px, 13vw, 145px);
	align-self: stretch;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	padding: 1rem 0.75rem;
	text-decoration: none;
	color: var(--sw-primary);
	background: rgba(20, 99, 246, 0.06);
	border: 1px solid rgba(20, 99, 246, 0.2);
	border-radius: 0.75rem;
	transition: background 0.2s, border-color 0.2s;
	scroll-snap-align: end;
}

.sw-mag-pop-more:hover {
	background: rgba(20, 99, 246, 0.12);
}

.sw-mag-pop-more__icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.sw-mag-pop-more__text {
	font-size: clamp(0.62rem, 0.75vw + 0.28rem, 0.75rem);
	font-weight: 700;
	text-align: center;
	line-height: 1.45;
	direction: rtl;
}

/* موبایل */
@media (max-width: 700px) {
	.sw-mag-popular { flex-flow: column nowrap; }

	.sw-mag-popular__label {
		flex-direction: row;
		width: 100%;
		justify-content: flex-start;
		padding: 0.75rem 1rem;
		border-inline-end: none;
		border-block-end: 1px solid rgba(255, 255, 255, 0.09);
	}

	.sw-mag-popular__title { text-align: start; }

	.sw-mag-pop-card  { width: clamp(150px, 52vw, 210px); }
	.sw-mag-pop-more  { width: clamp(100px, 36vw, 140px); }
}

/* ─── صفحه آرشیو نویسنده (/author/{slug}/) ──────────────────────────────── */
.sw-author-archive {
	width: 100%;
	padding: clamp(2rem, 4vw, 4rem) clamp(1rem, 3vw, 2rem);
}

.sw-author-archive__inner {
	max-width: var(--sw-container);
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

/* ── کارت پروفایل ── */
.sw-author-archive__profile {
	display: flex;
	align-items: flex-start;
	gap: 1.75rem;
	background: var(--sw-surface);
	border: 1px solid var(--sw-border);
	border-radius: var(--sw-radius-lg);
	padding: 2rem 2.25rem;
	box-shadow: var(--sw-shadow);
	transition: background 0.2s, border-color 0.2s;
}

.sw-author-archive__avatar {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 3px solid var(--sw-border);
}

.sw-author-archive__avatar--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sw-primary);
	color: #fff;
	font-size: 2.25rem;
	font-weight: 700;
}

.sw-author-archive__profile-body {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	min-width: 0;
}

.sw-author-archive__name {
	font-size: clamp(1.25rem, 2vw, 1.6rem);
	font-weight: 700;
	margin: 0;
	color: var(--sw-ink);
}

.sw-author-archive__bio {
	color: var(--sw-muted);
	line-height: 1.7;
	margin: 0;
	font-size: 0.95rem;
}

.sw-author-archive__count {
	font-size: 0.82rem;
	color: var(--sw-muted);
	margin: 0;
	opacity: 0.75;
}

/* ── گرید مقالات ── */
.sw-author-post-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
}

.sw-author-post-grid .post-card-thumb {
	aspect-ratio: 16 / 9;
}

.sw-author-post-grid .post-card-body {
	padding: 0.85rem 1rem 1rem;
}

.sw-author-post-grid .post-card-title {
	font-size: 0.95rem;
	-webkit-line-clamp: 2;
}

.sw-author-post-grid .post-excerpt {
	font-size: 0.82rem;
	-webkit-line-clamp: 2;
}

/* ── دکمه نمایش بیشتر ── */
.sw-author-archive__more-wrap {
	display: flex;
	justify-content: center;
	padding-top: 0.5rem;
}

.sw-author-archive__more-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 2.25rem;
	background: transparent;
	border: 1.5px solid var(--sw-primary);
	color: var(--sw-primary);
	border-radius: 2rem;
	font-size: 0.95rem;
	font-family: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.18s, color 0.18s;
}

.sw-author-archive__more-btn:hover:not(:disabled) {
	background: var(--sw-primary);
	color: #fff;
}

.sw-author-archive__more-btn:disabled {
	opacity: 0.55;
	cursor: wait;
}

/* ── خالی ── */
.sw-author-archive__empty {
	text-align: center;
	color: var(--sw-muted);
	padding: 3rem 0;
}

/* ── موبایل ── */
@media (max-width: 600px) {
	.sw-author-archive__profile {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 1.5rem 1.25rem;
	}

	.sw-author-post-grid {
		grid-template-columns: 1fr 1fr;
		gap: 0.75rem;
	}
}

@media (max-width: 400px) {
	.sw-author-post-grid {
		grid-template-columns: 1fr;
	}
}

}

/* ═══════════════════════════════════════════════════════════
   ورود نرم صفحه (Page Transitions)
═══════════════════════════════════════════════════════════ */

/* ── ۱. Fade-in کل صفحه — CSS خالص، بدون JS ──
   forwards: صفحه بعد از انیمیشن opacity:1 می‌ماند حتی اگه JS نباشد */
@keyframes sw-page-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

body {
	animation: sw-page-in 0.28s ease 0.04s both;
}

/* ── ۲. ورود تدریجی سکشن‌ها — کلاس‌ها توسط JS اضافه می‌شوند ── */
.sw-reveal {
	opacity: 0;
	transform: translateY(20px);
	transition:
		opacity  0.52s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: opacity, transform;
}

.sw-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ── ۳. اگه JS ندارد یا prefers-reduced-motion فعال است ── */
.sw-no-transitions .sw-reveal,
.sw-no-transitions .sw-reveal.is-visible {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
	body {
		animation: none;
	}

	.sw-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ── ۴. فضای رزرو برای محتوای دینامیک (جلوگیری از layout shift) ── */
#sw-mkt-tbody:empty,
#sw-mkt-tbody:has(.sw-mkt-skeleton-row) {
	min-height: 360px;
}

.hero--home__trust-count:empty {
	min-width: 8ch;
	min-height: 1.2em;
	display: inline-block;
}

/* ══════════════════════════════════════════════════════════════════
   هدر اختصاصی سواپ‌مگ — تمام‌عرض
   ══════════════════════════════════════════════════════════════════ */

/* ── متغیرهای اختصاصی ── */
:root {
	--sw-mag-hdr-h: 3.75rem;
}

/* ── wrapper fixed ── */
#sw-mag-site-header {
	position: fixed;
	top: 0;
	inset-inline: 0;
	width: 100%;
	z-index: 80;
	pointer-events: none;
}

body.admin-bar #sw-mag-site-header { top: 32px; }

@media screen and (max-width: 782px) {
	body.admin-bar #sw-mag-site-header { top: 46px; }
}

/* ── هدر اصلی — پس‌زمینه تمام‌عرض روی wrapper ── */
.sw-mag-hdr {
	pointer-events: auto;
	position: relative;
	z-index: 10;
	border-bottom: 1px solid var(--sw-header-glass-border);
	background-color: var(--sw-header-glass-bg);
	backdrop-filter: var(--sw-header-glass-backdrop);
	-webkit-backdrop-filter: var(--sw-header-glass-backdrop);
	transition: background-color 0.25s ease, box-shadow 0.25s ease,
	            border-color 0.25s ease;
}

/* اسکرول‌شده — shadow */
.sw-mag-hdr.is-scrolled {
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .sw-mag-hdr.is-scrolled {
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.38);
}

/* ── نوار محتوا — محدود به عرض صفحه مثل sw-shell ── */
.sw-mag-hdr__bar {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	gap: clamp(0.75rem, 2vw, 1.5rem);
	height: var(--sw-mag-hdr-h);
	padding-inline: clamp(1rem, 4vw, 2rem);
	width: 100%;
	max-width: min(1360px, 100%);
	margin-inline: auto;
	box-sizing: border-box;
	position: relative;
	background: transparent;
	border: none;
}

/* ── لوگو ── */
.sw-mag-hdr__logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	flex-shrink: 0;
}

/* دسکتاپ: لوگوی کامل نمایان، دایره پنهان */
.sw-mag-hdr__logo--full {
	height: 28px;
	width: auto;
	display: block;
	object-fit: contain;
}

.sw-mag-hdr__logo--circle {
	display: none;
}

/* ── ناوبری دسکتاپ ── */
.sw-mag-hdr__nav {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	gap: 0.15rem;
	flex: 1 1 auto;
	overflow: hidden;
}

.sw-mag-hdr__nav-link {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0.75rem;
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.18s, background 0.18s;
}

.sw-mag-hdr__nav-link:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
}

.sw-mag-hdr__nav-link.is-current {
	color: #fff;
	background: rgba(255, 255, 255, 0.18);
}

/* ── اکشن‌ها ── */
.sw-mag-hdr__actions {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	flex-shrink: 0;
}

/* دکمه‌های آیکن */
.sw-mag-hdr__icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.2rem;
	height: 2.2rem;
	border: none;
	background: transparent;
	color: var(--sw-muted);
	border-radius: 999px;
	cursor: pointer;
	font-family: inherit;
	transition: color 0.18s, background 0.18s;
	padding: 0;
}

.sw-mag-hdr__icon-btn:hover {
	color: var(--sw-ink);
	background: color-mix(in srgb, var(--sw-ink) 6%, transparent);
}

.sw-mag-hdr__icon-btn.is-active {
	color: var(--sw-primary);
	background: var(--sw-primary-soft);
}

/* پنل موبایل — دسکتاپ: پنهان */
.sw-mag-hdr__mobile-panel { display: none; }

/* دکمه ورود به وبسایت — outline سفید */
.sw-mag-hdr__website-btn {
	display: inline-flex;
	align-items: center;
	padding: 0.42rem 1.1rem;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	border: 1.5px solid rgba(255, 255, 255, 0.7);
	background: transparent;
	transition: background 0.18s, border-color 0.18s;
	white-space: nowrap;
}

.sw-mag-hdr__website-btn:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
}

[data-theme="light"] .sw-mag-hdr__website-btn {
	color: var(--sw-ink);
	border-color: rgba(21, 55, 90, 0.5);
}

[data-theme="light"] .sw-mag-hdr__website-btn:hover {
	background: rgba(21, 55, 90, 0.07);
	border-color: var(--sw-ink);
}

/* تم روشن — رنگ آیتم‌های منو */
[data-theme="light"] .sw-mag-hdr__nav-link {
	color: var(--sw-ink);
}

[data-theme="light"] .sw-mag-hdr__nav-link:hover {
	color: var(--sw-ink);
	background: rgba(21, 55, 90, 0.07);
}

[data-theme="light"] .sw-mag-hdr__nav-link.is-current {
	color: var(--sw-ink);
	background: rgba(21, 55, 90, 0.1);
}

/* دکمه ورود — دسکتاپ */
.sw-mag-hdr__login-btn {
	display: inline-flex;
	align-items: center;
	padding: 0.42rem 1.1rem;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	border: none;
	background: var(--sw-primary);
	transition: background 0.18s;
	white-space: nowrap;
}

.sw-mag-hdr__login-btn:hover {
	background: var(--sw-primary-dark);
}

/* ── نوار جستجو ── */
.sw-mag-hdr__search-bar {
	pointer-events: auto;
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.28s cubic-bezier(0.22, 1, 0.36, 1),
	            opacity 0.22s ease;
	opacity: 0;
	border-bottom: 1px solid transparent;
	background-color: var(--sw-header-glass-bg);
	backdrop-filter: var(--sw-header-glass-backdrop);
	-webkit-backdrop-filter: var(--sw-header-glass-backdrop);
}

.sw-mag-hdr__search-bar.is-open {
	max-height: 4rem;
	opacity: 1;
	border-bottom-color: var(--sw-header-glass-border);
}

.sw-mag-hdr__search-form {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	max-width: min(1360px, 100%);
	margin-inline: auto;
	padding: 0.6rem clamp(1rem, 4vw, 2rem);
}

.sw-mag-hdr__search-input {
	flex: 1;
	background: transparent;
	border: none;
	outline: none;
	font-family: inherit;
	font-size: 0.92rem;
	color: var(--sw-ink);
	direction: rtl;
}

.sw-mag-hdr__search-input::placeholder { color: var(--sw-muted); }

.sw-mag-hdr__search-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	color: var(--sw-muted);
	cursor: pointer;
	padding: 0.3rem;
	border-radius: var(--sw-radius-md);
	transition: color 0.18s;
}

.sw-mag-hdr__search-submit:hover { color: var(--sw-primary); }

/* ── ریسپانسیو دسکتاپ ── */
@media (min-width: 961px) {
	.sw-mag-hdr__menu-btn { display: none; }
}

/* ── موبایل: دقیقاً مثل هدر اصلی ── */
@media (max-width: 960px) {

	/* ارتفاع هدر موبایل مگ — لوگو ۲.۲۵rem + ۲×padding */
	:root {
		--sw-mag-mobile-bar-h: calc(2.25rem + 2 * clamp(0.7rem, 2.5vw, 0.9rem));
	}

	/* wrapper: شیشه‌ای، height transition */
	#sw-mag-site-header {
		padding-block: 0;
		padding-inline: 0;
		background-color: rgba(237, 245, 255, 0.75) !important;
		backdrop-filter: blur(20px) saturate(1.65);
		-webkit-backdrop-filter: blur(20px) saturate(1.65);
		height: var(--sw-mag-mobile-bar-h);
		overflow: hidden;
		transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	}

	#sw-mag-site-header.is-nav-open {
		height: 100dvh;
		pointer-events: auto;
		overflow-y: auto;
	}

	[data-theme="dark"] #sw-mag-site-header {
		background-color: rgba(9, 18, 30, 0.78) !important;
	}

	/* هدر داخلی — بک‌گراند حذف (روی wrapper است) */
	.sw-mag-hdr {
		position: relative;
		z-index: 10;
		height: 100%;
		display: flex;
		flex-direction: column;
		overflow: hidden;
		/* ریست بک‌گراند دسکتاپ */
		background-color: transparent !important;
		backdrop-filter: none !important;
		-webkit-backdrop-filter: none !important;
		border-bottom: none;
		box-shadow: none;
	}

	/* نوار موبایل — padding متقارن برای فاصله مساوی بالا/پایین */
	.sw-mag-hdr__bar {
		direction: rtl;
		display: flex;
		flex-flow: row nowrap;
		align-items: center;
		justify-content: space-between;
		gap: 0;
		width: 100%;
		max-width: 100%;
		margin-inline: 0;
		padding-inline: clamp(0.65rem, 3vw, 1rem);
		padding-block: clamp(0.7rem, 2.5vw, 0.9rem);
		box-sizing: border-box;
		border-radius: 0;
		border-bottom: none;
		background: transparent;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		flex-shrink: 0;
	}

	/* شیشه حذف روی bar — روی wrapper هست */
	.sw-mag-hdr__bar::before { display: none; }

	/* ناوبری دسکتاپ و دکمه ورود: پنهان */
	.sw-mag-hdr__nav        { display: none; }
	.sw-mag-hdr__login-btn  { display: none; }
	.sw-mag-hdr__search-toggle { display: none; }
	.sw-mag-hdr__search-bar { display: none; }

	/* لوگو موبایل — مثل هدر اصلی */
	.sw-mag-hdr__logo {
		flex: 0 0 auto;
		order: 1;
		margin-inline-start: 0.35rem;
	}

	/* دسکتاپ لوگو پنهان؛ موبایل (دایره) نمایان */
	.sw-mag-hdr__logo--full   { display: none; }
	.sw-mag-hdr__logo--circle {
		display: block;
		width: 2.25rem;
		height: 2.25rem;
		object-fit: contain;
	}

	/* تم‌تاگل: فقط وقتی منو باز است نشان داده شود */
	#sw-mag-site-header:not(.is-nav-open) .sw-theme-toggle { display: none; }
	#sw-mag-site-header.is-nav-open .sw-theme-toggle {
		display: inline-flex;
	}

	/* اکشن‌ها سمت چپ (RTL) */
	.sw-mag-hdr__actions {
		order: 2;
		margin-inline-start: auto;
		gap: 0;
	}

	/* دکمه‌های آیکن در موبایل */
	.sw-mag-hdr__icon-btn {
		width: 3rem;
		height: 3rem;
	}

	/* همبرگر — هم‌ارتفاع با لوگو برای فاصله مساوی */
	.sw-mag-hdr__menu-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 2.25rem;
		height: 2.25rem;
		padding: 0.15rem;
		overflow: hidden;
		position: relative;
		background: transparent;
		border: none;
		color: var(--sw-ink);
		cursor: pointer;
		flex-shrink: 0;
	}

	/* هر دو آیکن toggle مطلق و روی هم — اندازه مثل هدر اصلی */
	.sw-mag-toggle-open,
	.sw-mag-toggle-close {
		position: absolute;
		inset: 0;
		margin: auto;
		width: 28px;
		height: 28px;
		flex-shrink: 0;
		transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
	}

	/* حالت بسته: نقطه‌ها نمایان، ضربدر پنهان */
	.sw-mag-toggle-open  { opacity: 1; transform: rotate(0deg) scale(1); }
	.sw-mag-toggle-close { opacity: 0; transform: rotate(-90deg) scale(0.5); pointer-events: none; }

	/* حالت باز: نقطه‌ها پنهان، ضربدر نمایان */
	#sw-mag-site-header.is-nav-open .sw-mag-toggle-open {
		opacity: 0;
		transform: rotate(90deg) scale(0.5);
		pointer-events: none;
	}
	#sw-mag-site-header.is-nav-open .sw-mag-toggle-close {
		opacity: 1;
		transform: rotate(0deg) scale(1);
		pointer-events: auto;
	}

	/* پنل موبایل — در جریان flex، زیر نوار */
	.sw-mag-hdr__mobile-panel {
		display: flex;
		flex-direction: column;
		flex: 1 1 auto;
		min-height: 0;
		width: 100%;
		direction: rtl;
		padding-block-start: 1rem;
		padding-block-end: clamp(0.45rem, 3vw, 0.82rem);
		/* فاصله چپ و راست از لبه صفحه */
		padding-inline: clamp(1.25rem, 5vw, 2rem);
		opacity: 0;
		pointer-events: none;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		scrollbar-color: rgba(0,0,0,0.18) transparent;
		transition: opacity 0.3s ease 0.15s;
	}

	#sw-mag-site-header.is-nav-open .sw-mag-hdr__mobile-panel {
		opacity: 1;
		pointer-events: auto;
		max-height: calc(100dvh - var(--sw-mag-mobile-bar-h));
	}

	/* لینک‌های منوی موبایل — مثل هدر اصلی */
	.sw-mag-hdr__mobile-nav {
		display: flex;
		flex-direction: column;
		gap: 0.62rem;
		padding: 0;
		margin: 0;
	}

	.sw-mag-hdr__mobile-link {
		display: block;
		width: 100%;
		text-align: start;
		padding-block: clamp(0.55rem, 2.5vw, 0.72rem);
		padding-inline: 0;
		font-size: clamp(1.05rem, 4vw, 1.2rem);
		font-weight: 600;
		color: var(--sw-ink);
		text-decoration: none;
		transition: color 0.18s;
	}

	.sw-mag-hdr__mobile-link:hover,
	.sw-mag-hdr__mobile-link.is-current {
		color: var(--sw-primary-dark);
	}

	/* فوتر پنل: دکمه‌های ورود و دانلود */
	.sw-mag-hdr__mobile-panel .sw-mobile-panel-footer {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: clamp(0.55rem, 2vw, 0.72rem);
		padding-block: clamp(0.75rem, 3vw, 1rem);
		margin-block-start: 0.5rem;
	}
}

/* ══════════════════════════════════════════════════════════════════
   سواپ‌مگ ری‌دیزاین — v2 (شبیه نوبیتکس‌مگ)
   ══════════════════════════════════════════════════════════════════ */

/* در صفحات مگ، clearance را با ارتفاع هدر مگ هماهنگ کن */
#sw-mag-site-header ~ #main {
	--sw-fixed-header-clearance: var(--sw-mag-hdr-h);
}

/* ── تیکر اخبار ── */
.sw-mag2-ticker-bar {
	background: var(--sw-primary);
	padding-block: 0.55rem;
}

.sw-mag2-ticker-inner {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	overflow: hidden;
}

.sw-mag2-ticker-label {
	flex-shrink: 0;
	font-size: 0.75rem;
	font-weight: 700;
	color: #fff;
	background: rgba(255, 255, 255, 0.2);
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	white-space: nowrap;
}

.sw-mag2-ticker-scroll {
	flex: 1;
	overflow: hidden;
	mask-image: linear-gradient(to left, transparent 0%, #000 6%, #000 94%, transparent 100%);
	-webkit-mask-image: linear-gradient(to left, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.sw-mag2-ticker-track {
	display: flex;
	gap: 2.5rem;
	width: max-content;
	animation: sw-mag2-ticker-scroll 32s linear infinite;
}

.sw-mag2-ticker-track:hover {
	animation-play-state: paused;
}

@keyframes sw-mag2-ticker-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

.sw-mag2-ticker-item {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	font-size: 0.82rem;
	white-space: nowrap;
	transition: color 0.2s;
	flex-shrink: 0;
}

.sw-mag2-ticker-item::before {
	content: '•';
	margin-inline-end: 0.5rem;
	color: rgba(255, 255, 255, 0.5);
}

.sw-mag2-ticker-item:hover {
	color: #fff;
	text-decoration: underline;
}

.sw-mag2-ticker-all {
	flex-shrink: 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.78rem;
	white-space: nowrap;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.15rem;
	transition: color 0.2s;
}

.sw-mag2-ticker-all:hover { color: #fff; }

/* ── badge دسته‌بندی ── */
.sw-mag2-cat-badge {
	display: inline-block;
	background: var(--sw-primary);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	text-decoration: none;
	line-height: 1.4;
	white-space: nowrap;
}

.sw-mag2-cat-badge--sm {
	font-size: 0.68rem;
	padding: 0.15rem 0.48rem;
}

/* ── هیرو ── */
.sw-mag2-hero-wrap {
	padding-block: clamp(1.25rem, 2.5vw, 2rem);
}

.sw-mag2-hero {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 0.85rem;
	align-items: start;
}

/* پست اصلی هیرو — تصویر پس‌زمینه + overlay متن */
.sw-mag2-hero__main {
	display: block;
	position: relative;
	border-radius: var(--sw-radius-lg);
	overflow: hidden;
	aspect-ratio: 16 / 10;
	text-decoration: none;
	background: #0d1829;
}

.sw-mag2-hero__bg {
	position: absolute;
	inset: 0;
}

.sw-mag2-hero__bg-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.55s ease;
}

.sw-mag2-hero__main:hover .sw-mag2-hero__bg-img {
	transform: scale(1.04);
}

.sw-mag2-fallback-bg {
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 30% -10%, rgba(20, 99, 246, 0.78), transparent 55%),
		radial-gradient(circle at 90% 20%, rgba(90, 168, 255, 0.42), transparent 45%),
		#0d1829;
}

.sw-mag2-hero__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: stretch;
	padding: clamp(0.85rem, 2vw, 1.4rem);
}

/* بلاک شیشه‌ای ثابت پایین کارت اصلی */
.sw-mag2-hero__glass-info {
	background: rgba(0, 0, 0, 0.52);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-radius: var(--sw-radius-md);
	padding: clamp(0.75rem, 1.5vw, 1.1rem) clamp(0.85rem, 2vw, 1.25rem);
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.sw-mag2-hero__top-row {
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.sw-mag2-hero__title {
	font-size: clamp(1.1rem, 1.8vw + 0.4rem, 1.75rem);
	font-weight: 800;
	color: #fff;
	margin: 0;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sw-mag2-hero__excerpt {
	font-size: clamp(0.82rem, 0.5vw + 0.74rem, 0.95rem);
	color: rgba(255, 255, 255, 0.8);
	margin: 0;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sw-mag2-hero__meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.sw-mag2-hero__date {
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.75);
}

/* ── ۴ کارت فرعی هیرو ── */
.sw-mag2-hero__side {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	height: 100%;
}

.sw-mag2-side-card {
	display: grid;
	grid-template-columns: 100px 1fr;
	align-items: stretch;
	text-decoration: none;
	background: var(--sw-surface);
	border: 1px solid var(--sw-border);
	border-radius: var(--sw-radius-md);
	overflow: hidden;
	flex: 1;
	transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.sw-mag2-side-card:hover {
	border-color: var(--sw-primary);
	transform: translateX(-2px);
	box-shadow: 0 4px 18px rgba(20, 99, 246, 0.1);
}

.sw-mag2-side-card__img-wrap {
	position: relative;
	overflow: hidden;
	background: #0d1829;
}

.sw-mag2-side-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.sw-mag2-side-card:hover .sw-mag2-side-card__img {
	transform: scale(1.06);
}

.sw-mag2-side-card__img-wrap .sw-mag2-cat-badge {
	position: absolute;
	top: 0.4rem;
	right: 0.4rem;
}

.sw-mag2-side-card__body {
	padding: 0.65rem 0.85rem 0.65rem 0.5rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 0.3rem;
}

.sw-mag2-side-card__title {
	font-size: clamp(0.8rem, 0.7vw + 0.48rem, 0.92rem);
	font-weight: 700;
	color: var(--sw-ink);
	margin: 0;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s;
}

.sw-mag2-side-card:hover .sw-mag2-side-card__title {
	color: var(--sw-primary);
}

.sw-mag2-side-card__date {
	font-size: 0.74rem;
	color: var(--sw-muted);
}

/* ── تب دسته‌بندی‌ها ── */
.sw-mag2-cat-nav {
	padding-block: 0.1rem;
	margin-block-end: clamp(1.25rem, 2.5vw, 2rem);
}

.sw-mag2-cat-nav__inner {
	display: flex;
	align-items: stretch;
}

.sw-mag2-cat-tabs-scroll {
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.sw-mag2-cat-tabs-scroll::-webkit-scrollbar { display: none; }

.sw-mag2-cat-tabs {
	display: flex;
	gap: 0.2rem;
	width: max-content;
	padding-block: 0.5rem;
}

.sw-mag2-cat-tab {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 1rem;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--sw-muted);
	background: transparent;
	border: 1.5px solid transparent;
	white-space: nowrap;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
	/* button reset */
	cursor: pointer;
	font-family: inherit;
	line-height: 1.4;
}

.sw-mag2-cat-tab:hover {
	color: var(--sw-primary);
	background: var(--sw-primary-soft);
	border-color: var(--sw-primary-soft);
}

.sw-mag2-cat-tab.is-active {
	color: var(--sw-primary);
	border-color: var(--sw-primary);
	background: var(--sw-primary-soft);
}

/* ── حالت loading لیست ── */
.sw-mag2-list--loading {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.2s;
}

/* ── لایه‌بندی اصلی ── */
.sw-mag2-body {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	align-items: start;
	padding-block-end: clamp(2rem, 5vw, 4rem);
}

/* ── عنوان سکشن ── */
.sw-mag2-section-head {
	margin-block-end: 1.25rem;
}

.sw-mag2-section-title {
	font-size: clamp(1.1rem, 1.2vw + 0.6rem, 1.4rem);
	font-weight: 800;
	color: var(--sw-ink);
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.sw-mag2-section-title::before {
	content: '';
	display: inline-block;
	width: 4px;
	height: 1.15em;
	background: var(--sw-primary);
	border-radius: 2px;
	flex-shrink: 0;
}

/* ── کارت مقاله (افقی) ── */
.sw-mag2-articles-list {
	display: flex;
	flex-direction: column;
}

.sw-mag2-article-card {
	display: grid;
	grid-template-columns: 185px 1fr;
	gap: 1.1rem;
	padding-block: 1.35rem;
	border-bottom: 1px solid var(--sw-border);
}

.sw-mag2-article-card:first-child {
	padding-block-start: 0;
}

.sw-mag2-article-card__thumb {
	position: relative;
	display: block;
	border-radius: var(--sw-radius-md);
	overflow: hidden;
	aspect-ratio: 3 / 2;
	background: #0d1829;
	flex-shrink: 0;
}

.sw-mag2-article-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.sw-mag2-article-card__thumb:hover .sw-mag2-article-card__img {
	transform: scale(1.04);
}

.sw-mag2-article-card__thumb .sw-mag2-cat-badge {
	position: absolute;
	bottom: 0.45rem;
	right: 0.45rem;
}

.sw-mag2-article-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	justify-content: center;
	padding-block: 0.2rem;
}

.sw-mag2-article-card__meta {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.sw-mag2-article-card__author {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--sw-primary);
}

.sw-mag2-article-card__date {
	font-size: 0.78rem;
	color: var(--sw-muted);
}

.sw-mag2-article-card__views {
	font-size: 0.78rem;
	color: var(--sw-muted);
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
}

.sw-mag2-meta-sep {
	color: var(--sw-border);
	font-size: 0.85rem;
}

.sw-mag2-article-card__title {
	font-size: clamp(0.95rem, 0.8vw + 0.6rem, 1.1rem);
	font-weight: 700;
	color: var(--sw-ink);
	margin: 0;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sw-mag2-article-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

.sw-mag2-article-card__title a:hover { color: var(--sw-primary); }

.sw-mag2-article-card__excerpt {
	font-size: clamp(0.8rem, 0.35vw + 0.74rem, 0.9rem);
	color: var(--sw-muted);
	line-height: 1.7;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sw-mag2-more-link {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--sw-primary);
	text-decoration: none;
	transition: gap 0.2s;
	margin-block-start: 0.15rem;
	width: fit-content;
}

.sw-mag2-more-link:hover { gap: 0.45rem; }

.sw-mag2-empty {
	color: var(--sw-muted);
	font-size: 0.95rem;
	padding-block: 2rem;
}

/* ── صفحه‌بندی ── */
.sw-mag2-pagination {
	margin-block-start: 2rem;
	display: flex;
	justify-content: center;
}

.sw-mag2-pagination .page-numbers {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 0.35rem;
	flex-wrap: wrap;
	justify-content: center;
}

.sw-mag2-pagination .page-numbers li a,
.sw-mag2-pagination .page-numbers li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding-inline: 0.6rem;
	border-radius: var(--sw-radius-md);
	border: 1.5px solid var(--sw-border);
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--sw-ink);
	text-decoration: none;
	background: var(--sw-surface);
	transition: border-color 0.2s, color 0.2s, background 0.2s;
	gap: 0.2rem;
}

.sw-mag2-pagination .page-numbers li a:hover {
	border-color: var(--sw-primary);
	color: var(--sw-primary);
	background: var(--sw-primary-soft);
}

.sw-mag2-pagination .page-numbers li .current {
	background: var(--sw-primary);
	border-color: var(--sw-primary);
	color: #fff;
}

/* نقاط سه‌گانه */
.sw-mag2-pagination .page-numbers li .dots {
	border: none;
	background: none;
	box-shadow: none;
	color: var(--sw-muted);
	min-width: auto;
	padding-inline: 0.2rem;
	cursor: default;
}

/* prev / next — فقط آیکن، مربع ثابت */
.sw-mag2-pagination .page-numbers li a.prev,
.sw-mag2-pagination .page-numbers li a.next {
	padding-inline: 0;
	min-width: 2.25rem;
	width: 2.25rem;
}

.sw-pag-flip {
	transform: rotate(180deg);
	display: inline-block;
}

/* ── سایدبار ── */
.sw-mag2-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	position: sticky;
	top: 88px;
}

.sw-mag2-widget {
	background: var(--sw-surface);
	border: 1px solid var(--sw-border);
	border-radius: var(--sw-radius-lg);
	overflow: hidden;
}

.sw-mag2-widget__title {
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--sw-ink);
	margin: 0;
	padding: 0.85rem 1rem;
	border-bottom: 1px solid var(--sw-border);
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.sw-mag2-widget__title::before {
	content: '';
	display: inline-block;
	width: 3px;
	height: 1em;
	background: var(--sw-primary);
	border-radius: 2px;
}

/* دسته‌بندی‌ها در سایدبار */
.sw-mag2-widget-cats {
	list-style: none;
	padding: 0.35rem 0;
	margin: 0;
}

.sw-mag2-widget-cats li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.6rem 1rem;
	text-decoration: none;
	color: var(--sw-ink);
	font-size: 0.875rem;
	transition: background 0.15s, color 0.15s;
}

.sw-mag2-widget-cats li a:hover {
	background: var(--sw-primary-soft);
	color: var(--sw-primary);
}

.sw-mag2-widget-cats__count {
	font-size: 0.72rem;
	color: var(--sw-muted);
	background: rgba(100, 116, 139, 0.1);
	border-radius: 999px;
	padding: 0.1rem 0.5rem;
	min-width: 1.6rem;
	text-align: center;
}

/* کارت تلگرام */
.sw-mag2-widget--tg {
	background: linear-gradient(135deg, #1463f6 0%, #0d52d4 100%);
	border-color: transparent;
}

.sw-mag2-tg-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.65rem;
	padding: 1.35rem 1rem;
}

.sw-mag2-tg-icon {
	opacity: 0.9;
	filter: brightness(0) invert(1);
}

.sw-mag2-tg-text {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.sw-mag2-tg-text strong {
	font-size: 0.9rem;
	font-weight: 700;
	color: #fff;
}

.sw-mag2-tg-text span {
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.5;
}

.sw-mag2-tg-btn {
	display: inline-block;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	padding: 0.5rem 1.35rem;
	border-radius: 999px;
	text-decoration: none;
	border: 1.5px solid rgba(255, 255, 255, 0.3);
	transition: background 0.2s, border-color 0.2s;
}

.sw-mag2-tg-btn:hover {
	background: rgba(255, 255, 255, 0.25);
	border-color: rgba(255, 255, 255, 0.55);
}

/* شبکه‌های اجتماعی */
.sw-mag2-social {
	display: flex;
	flex-direction: column;
}

.sw-mag2-social__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.7rem 1rem;
	text-decoration: none;
	color: var(--sw-ink);
	font-size: 0.875rem;
	font-weight: 500;
	transition: background 0.15s, color 0.15s;
	border-top: 1px solid var(--sw-border);
}

.sw-mag2-social__item:first-child { border-top: none; }

.sw-mag2-social__item:hover { background: var(--sw-primary-soft); }
.sw-mag2-social__item--tg:hover,
.sw-mag2-social__item--tw:hover,
.sw-mag2-social__item--ig:hover,
.sw-mag2-social__item--li:hover  { color: var(--sw-primary); }

/* ── دارک‌مود ── */
[data-theme="dark"] .sw-mag2-side-card      { background: var(--sw-surface); }
[data-theme="dark"] .sw-mag2-widget         { background: var(--sw-surface); }
[data-theme="dark"] .sw-mag2-article-card   { border-bottom-color: var(--sw-border); }

/* ── ریسپانسیو ── */
@media (max-width: 1100px) {
	.sw-mag2-hero   { grid-template-columns: 1fr 290px; }
	.sw-mag2-body   { grid-template-columns: 1fr 265px; }
}

@media (max-width: 860px) {
	.sw-mag2-hero {
		grid-template-columns: 1fr;
	}

	.sw-mag2-hero__side {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.sw-mag2-side-card {
		flex: 0 0 calc(50% - 0.325rem);
	}

	.sw-mag2-body {
		grid-template-columns: 1fr;
	}

	.sw-mag2-sidebar {
		position: static;
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
		gap: 1rem;
	}
}

@media (max-width: 600px) {
	/* ── موبایل: کارت اصلی هیرو — عکس بالا، متن پایین ── */
	.sw-mag2-hero__main {
		aspect-ratio: auto;
		display: flex;
		flex-direction: column;
		background: var(--sw-surface);
		border: 1px solid var(--sw-border);
	}

	.sw-mag2-hero__bg {
		position: relative;
		inset: auto;
		width: 100%;
		aspect-ratio: 16 / 9;
		overflow: hidden;
		flex-shrink: 0;
	}

	.sw-mag2-hero__overlay {
		position: relative;
		inset: auto;
		padding: 0;
	}

	.sw-mag2-hero__glass-info {
		background: var(--sw-surface);
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		border-radius: 0 0 var(--sw-radius-lg) var(--sw-radius-lg);
		padding: 0.85rem 1rem 1rem;
	}

	.sw-mag2-hero__title {
		color: var(--sw-ink);
		font-size: 1.05rem;
		-webkit-line-clamp: 3;
	}

	.sw-mag2-hero__date {
		color: var(--sw-muted);
	}

	.sw-mag2-article-card {
		grid-template-columns: 115px 1fr;
		gap: 0.75rem;
		padding-block: 1rem;
	}

	.sw-mag2-article-card__excerpt { display: none; }

	.sw-mag2-hero__side {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.55rem;
	}

	.sw-mag2-side-card {
		flex: 0 0 calc(50% - 0.275rem);
		grid-template-columns: 1fr;
		grid-template-rows: 100px 1fr;
		min-height: unset;
	}

	.sw-mag2-side-card__img-wrap {
		width: 100%;
		height: 100px;
	}

	.sw-mag2-side-card__body {
		padding: 0.55rem 0.65rem;
	}

	.sw-mag2-side-card__title {
		font-size: 0.8rem;
		-webkit-line-clamp: 3;
	}

	.sw-mag2-side-card__img-wrap .sw-mag2-cat-badge {
		top: 0.35rem;
		right: 0.35rem;
	}

	.sw-mag2-ticker-all { display: none; }

	.sw-mag2-sidebar {
		grid-template-columns: 1fr;
	}
}
        