/*
	Плашка баланса ANEW в шапке.
	Очки живут на игровом сервере (aes_stats.bonus_count), значение
	подтягивается запросом к ajax/anew_balance.php уже после загрузки страницы.
*/

.anew-chip {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 6px 14px 6px 7px;
	border-radius: 999px;
	background: rgba(79, 234, 159, 0.08);
	border: 1px solid rgba(79, 234, 159, 0.22);
	text-decoration: none;
	transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
	white-space: nowrap;
}

.anew-chip:hover {
	background: rgba(79, 234, 159, 0.14);
	border-color: rgba(79, 234, 159, 0.4);
	transform: translateY(-1px);
	text-decoration: none;
}

.anew-chip__icon {
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: #0f1a14;
	background: linear-gradient(135deg, #5dba8d 0%, #4fea9f 100%);
	box-shadow: 0 4px 12px rgba(79, 234, 159, 0.28);
}

.anew-chip__body {
	display: flex;
	align-items: baseline;
	gap: 5px;
	line-height: 1;
}

.anew-chip__value {
	font-size: 15px;
	font-weight: 700;
	color: #eafff4;
}

.anew-chip__label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.6px;
	color: #4fea9f;
}

/* пока значение не пришло — не мозолим глаза */
.anew-chip--loading .anew-chip__value {
	opacity: 0.45;
}

/* игрок не найден на сервере: подсказываем, что нужен SteamID в профиле */
.anew-chip--unlinked {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.12);
}

.anew-chip--unlinked .anew-chip__icon {
	background: linear-gradient(135deg, #5c6470 0%, #7d8794 100%);
	box-shadow: none;
}

.anew-chip--unlinked .anew-chip__label {
	color: #9aa4b2;
}

@media (max-width: 1200px) {
	.anew-chip { padding: 5px 11px 5px 6px; gap: 7px; }
	.anew-chip__icon { width: 26px; height: 26px; flex-basis: 26px; font-size: 14px; }
	.anew-chip__value { font-size: 14px; }
}


/* ---------- пункт в шапке ----------
   свой класс вместо pbtop-icon-li: у темы есть правило, которое любой span
   внутри li.pbtop-icon-li > a превращает в маленький бейдж уведомлений */

.pbtop-extra {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0 5px;
	padding: 0;
}

.pbtop-extra .anew-chip__body,
.pbtop-extra .anew-chip__value,
.pbtop-extra .anew-chip__label {
	position: static;
	min-width: 0;
	height: auto;
	top: auto;
	right: auto;
	border-radius: 0;
	background: none;
	padding: 0;
}
