.sva-stats-wrapper {
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	margin: 1.5em 0;
}

.sva-stats-title {
	margin: 0 0 0.75em;
	font-size: 1.1em;
	font-weight: 700;
}

.sva-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.sva-stat-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: #f6f7f9;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 16px 10px;
	transition: transform .15s ease, box-shadow .15s ease;
	box-sizing: border-box;
	min-width: 0;
}

.sva-stat-box:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

.sva-stat-number {
	font-size: clamp(1.2rem, 2.4vw, 1.8rem);
	font-weight: 800;
	line-height: 1.2;
	color: #111827;
}

.sva-stat-label {
	margin-top: 4px;
	font-size: clamp(.75rem, 1.6vw, .9rem);
	color: #6b7280;
}

/* تبلت */
@media (max-width: 900px) {
	.sva-stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* موبایل */
@media (max-width: 480px) {
	.sva-stats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}
	.sva-stat-box {
		padding: 12px 6px;
		border-radius: 8px;
	}
}

/* ویجت «هم‌اکنون آنلاین» */
.sva-online-wrapper {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: .9rem;
	color: #166534;
}

.sva-online-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
	display: inline-block;
	animation: sva-pulse 1.6s infinite;
	flex-shrink: 0;
}

.sva-online-number {
	font-weight: 800;
}

@keyframes sva-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
	70%  { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
	100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

@media (max-width: 480px) {
	.sva-online-wrapper {
		font-size: .8rem;
		padding: 5px 10px;
	}
}

/* المان‌هایی که فقط باید در دستگاه خاصی نمایش داده شوند، با کلاس body قابل کنترل‌اند */
body.sva-device-mobile .sva-hide-on-mobile,
body.sva-device-tablet .sva-hide-on-tablet,
body.sva-device-desktop .sva-hide-on-desktop {
	display: none !important;
}

body:not(.sva-device-mobile) .sva-show-on-mobile-only,
body:not(.sva-device-tablet) .sva-show-on-tablet-only,
body:not(.sva-device-desktop) .sva-show-on-desktop-only {
	display: none !important;
}
