/*
	Горизонтальная панель меню под шапкой: категории с выпадающими списками
	и счётчик игроков справа.
*/

.pbnav {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 10px 0 0;
	padding: 8px 10px;
	border-radius: 18px;
	background: #25252e;
	border: 1px solid rgba(255, 255, 255, 0.05);
	position: relative;
	z-index: 40;
}

.pbnav__home {
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: #cfd3dc;
	background: rgba(255, 255, 255, 0.05);
	text-decoration: none;
	transition: background 0.16s ease, color 0.16s ease;
}

.pbnav__home:hover {
	background: rgba(79, 234, 159, 0.14);
	color: #4fea9f;
	text-decoration: none;
}

.pbnav__list {
	display: flex;
	align-items: center;
	gap: 2px;
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.pbnav__list::-webkit-scrollbar { display: none; }

.pbnav__item {
	position: relative;
	flex: 0 0 auto;
}

.pbnav__btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 14px;
	border: 0;
	border-radius: 12px;
	background: none;
	color: #cfd3dc;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.16s ease, color 0.16s ease;
}

.pbnav__btn i:first-child { font-size: 17px; color: #4fea9f; }

.pbnav__caret {
	font-size: 16px;
	opacity: 0.6;
	transition: transform 0.18s ease;
}

.pbnav__item:hover .pbnav__btn,
.pbnav__item.is-open .pbnav__btn {
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
}

.pbnav__item:hover .pbnav__caret,
.pbnav__item.is-open .pbnav__caret { transform: rotate(180deg); }

/* ---------- выпадающий список ---------- */

.pbnav__drop {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	min-width: 268px;
	padding: 8px;
	border-radius: 16px;
	background: #2a2a34;
	border: 1px solid rgba(255, 255, 255, 0.07);
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
	z-index: 60;
}

.pbnav__item:hover .pbnav__drop,
.pbnav__item.is-open .pbnav__drop {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.pbnav__link {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 9px 10px;
	border-radius: 11px;
	text-decoration: none;
	transition: background 0.14s ease;
}

.pbnav__link:hover {
	background: rgba(79, 234, 159, 0.1);
	text-decoration: none;
}

.pbnav__link-ico {
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: #4fea9f;
	background: rgba(79, 234, 159, 0.1);
}

.pbnav__link-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.pbnav__link-text b {
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
}

.pbnav__link-text small {
	font-size: 11px;
	color: #8b8f9c;
	line-height: 1.2;
}

/* ---------- счётчик онлайна ---------- */

.pbnav__online {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex: 0 0 auto;
	padding: 7px 14px 7px 8px;
	border-radius: 999px;
	background: rgba(79, 234, 159, 0.1);
	border: 1px solid rgba(79, 234, 159, 0.22);
	text-decoration: none;
	transition: background 0.16s ease;
}

.pbnav__online:hover { background: rgba(79, 234, 159, 0.18); text-decoration: none; }

.pbnav__online-ico {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	color: #10231a;
	background: linear-gradient(135deg, #5dba8d, #4fea9f);
}

.pbnav__online b { font-size: 14px; color: #eafff4; }

@media (max-width: 900px) {
	.pbnav { border-radius: 14px; padding: 6px 8px; }
	.pbnav__btn span { display: none; }
	.pbnav__btn { padding: 9px 10px; }
	.pbnav__drop { min-width: 230px; }
}


/* ---------- логотип-картинка вместо обрезанного SVG-текста ----------
   тема принудительно задаёт всем img высоту 15px, поэтому размеры жёстко */

.pbtop-logo-img {
	height: 54px !important;
	width: auto !important;
	max-width: 240px !important;
	object-fit: contain !important;
	display: block !important;
}

@media (max-width: 900px) {
	.pbtop-logo-img { height: 34px !important; max-width: 150px !important; }
}

/* ---------- поиск игроков и баланс в шапке ---------- */

.pbtop-search {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.07);
	color: #8b8f9c;
	font-size: 13px;
	text-decoration: none;
	transition: border-color 0.16s ease, color 0.16s ease;
	white-space: nowrap;
}

.pbtop-search:hover {
	border-color: rgba(79, 234, 159, 0.35);
	color: #cfd3dc;
	text-decoration: none;
}

.pbtop-search i { font-size: 16px; }

.pbtop-purse {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 5px 5px 5px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.07);
	white-space: nowrap;
}

.pbtop-purse__sum {
	font-size: 14px;
	font-weight: 700;
	color: #fff;
}

.pbtop-purse__btn {
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: #10231a;
	background: linear-gradient(135deg, #5dba8d, #4fea9f);
	text-decoration: none;
	transition: filter 0.16s ease;
}

.pbtop-purse__btn:hover { filter: brightness(1.08); text-decoration: none; color: #10231a; }

@media (max-width: 1100px) {
	.pbtop-search span { display: none; }
	.pbtop-search { padding: 8px 12px; }
}

/* ---------- аватары пользователей в панели ---------- */

.pbnav__faces {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 4px 6px 4px 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
}

.pbnav__face {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid #25252e;
	margin-right: -9px;
	transition: transform 0.16s ease, z-index 0s;
	position: relative;
}

.pbnav__face:hover { transform: translateY(-2px) scale(1.08); z-index: 3; }

/* тема задаёт всем img высоту 15px — здесь размер жёстко */
.pbnav__face img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
}

.pbnav__faces-more {
	width: 30px;
	height: 30px;
	margin-left: 14px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: #8b8f9c;
	background: rgba(255, 255, 255, 0.06);
	text-decoration: none;
}

.pbnav__faces-more:hover { color: #4fea9f; text-decoration: none; }

@media (max-width: 900px) {
	.pbnav__faces { display: none; }
}


/* поиск и баланс лежат в своём li (.pbtop-extra), поэтому бейдж-правила темы
   их не трогают — здесь только размеры текста */

.pbtop-extra .pbtop-search span,
.pbtop-extra .pbtop-purse span,
.pbtop-extra .pbtop-purse a {
	position: static;
	min-width: 0;
	height: auto;
	top: auto;
	right: auto;
	font-size: 13px;
}

.pbtop-extra .pbtop-purse__sum { font-size: 14px; }
.pbtop-extra .pbtop-purse__btn { font-size: 12px; }

/* панель шапки — флекс-контейнер и ужимает вложенное;
   свои элементы фиксируем, чтобы не схлопывались в иконку */

.pbtop-extra,
.pbtop-extra > * {
	flex: 0 0 auto !important;
	white-space: nowrap;
}

.pbtop-search,
.anew-chip {
	flex: 0 0 auto !important;
	width: auto !important;
	min-width: max-content !important;
}


/* тема жёстко делает все ссылки в шапке квадратами 42x42 с !important
   и высокой специфичностью — перебиваем таким же уровнем */

@media (min-width: 992px) {
	html body .wapper .header ul.user-menu > li.pbtop-extra > a.pbtop-search,
	html body .wapper .header ul.user-menu > li.pbtop-extra > a.anew-chip,
	html body .wapper .header.pbtop ul.user-menu > li.pbtop-extra > a.pbtop-search,
	html body .wapper .header.pbtop ul.user-menu > li.pbtop-extra > a.anew-chip {
		width: auto !important;
		min-width: max-content !important;
		height: auto !important;
		min-height: 0 !important;
		display: inline-flex !important;
		padding: 6px 15px 6px 7px !important;
		border-radius: 999px !important;
		line-height: normal !important;
	}

	html body .wapper .header ul.user-menu > li.pbtop-extra > a.pbtop-search {
		padding: 9px 16px !important;
	}
}


/* переключатель языка и сообщения в шапке */

.pbtop-extra--lang { align-items: center; }

.pbtop-extra--lang .launge-widget,
.pbtop-lang-wrap .launge-widget { margin: 0; }

.pbtop-msg {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: #cfd3dc;
}

.pbtop-msg:hover { color: #4fea9f; }


/* ================= порядок в шапке =================
   Кнопка «Меню» позиционирована абсолютно и накладывалась на поиск и баланс.
   Раскрывающееся меню теперь есть отдельной панелью ниже, поэтому кнопку убираем,
   а сам ряд шапки выравниваем по одной линии с равными отступами. */

html body .wapper .header.pbtop .pbg-menu-trigger-wrap { display: none !important; }

html body .wapper .header.pbtop .container.pbtop-row {
	display: flex !important;
	align-items: center !important;
	gap: 18px !important;
	flex-wrap: nowrap !important;
}

html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	flex-wrap: nowrap !important;
	margin-left: auto !important;
	padding: 0 !important;
}

/* все пункты — по центру строки, без вертикальных сдвигов темы */
html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li {
	display: flex !important;
	align-items: center !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

/* логотип не сжимаем */
html body .wapper .header.pbtop .header-logo.pbtop-logo {
	flex: 0 0 auto !important;
	display: flex !important;
	align-items: center !important;
}

/* порядок элементов шапки — как в образце: поиск, промокод, язык,
   баланс, ANEW, сообщения, уведомления, профиль */

html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.pbtop-extra--search { order: 1 !important; }
html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.pbtop-icon-li--promo { order: 2 !important; }
html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.pbtop-extra--lang   { order: 3 !important; }
html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.pbtop-extra--purse  { order: 4 !important; }
html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.pbtop-extra--anew   { order: 5 !important; }
html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.pbtop-icon-li--msg  { order: 6 !important; }
html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.pbtop-icon-li--notif { order: 7 !important; }
html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li:not([class*="pbtop-extra"]):not(.pbtop-icon-li--promo):not(.pbtop-icon-li--notif):not(.pbtop-icon-li--msg) { order: 8 !important; }

/* ================= доводка шапки =================
   логотип без подложки и крупнее, поиск — сразу рядом с ним,
   остальное прижато вправо */

html body .wapper .header.pbtop .header-logo.pbtop-logo,
html body .wapper .header.pbtop .site_logo_neo {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.pbtop-logo-img {
	height: 58px !important;
	max-width: 260px !important;
}

/* поиск примыкает к логотипу, всё остальное уходит вправо */
html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu {
	margin-left: 18px !important;
	flex: 1 1 auto !important;
}

html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.pbtop-extra--search {
	margin-right: auto !important;
}

/* язык в нижней панели, слева от аватаров */
.pbnav__lang {
	display: flex !important;
	align-items: center;
	flex: 0 0 auto;
	margin-left: auto;
	margin-right: 10px;
}

.pbnav__lang .launge-widget,
.pbnav__lang .launge-widget__current {
	height: 40px !important;
	border-radius: 50px !important;
	background: #2f2f3a !important;
	padding: 0 12px !important;
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	color: #fff !important;
}

.pbnav__lang .launge-widget__current:hover { background: #383845 !important; }

/* зелёная точка «на сайте» у аватара */
.pbnav__face { position: relative; }

.pbnav__face-dot {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #4fea9f;
	border: 2px solid #25252e;
}

/* счётчик и аватары держим справа */
.pbnav__faces { margin-left: 8px; }

/* поиск должен примыкать к логотипу, а не висеть в отрыве */
html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu {
	margin-left: 0 !important;
	padding-left: 0 !important;
}

html body .wapper .header.pbtop .container.pbtop-row { gap: 14px !important; }

html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.pbtop-extra--search {
	margin-left: 0 !important;
}

/* контейнер логотипа держал ширину от старого SVG (180px) — ужимаем по картинке */
html body .wapper .header.pbtop .header-logo.pbtop-logo,
html body .wapper .header.pbtop .site_logo_neo {
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	flex: 0 0 auto !important;
}

/* бегущая строка LIVE идёт сразу под панелью и слипалась с ней */
.pbnav { margin-bottom: 10px !important; }
.dc_tkr_wrap { margin-top: 0 !important; }


/* ================= стиль элементов шапки =================
   Параметры взяты из шапки старого сайта (SolutionPink):
   .search_user  — style_one.css:1392
   .dropdown_language .select — style_sdg.css:542
   Те же скругления 50px, высота 44-45px, серая подложка. */

html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.pbtop-extra > a.pbtop-search {
	height: 45px !important;
	padding: 0 22px 0 8px !important;
	border-radius: 50px !important;
	border: 1px solid #3e434d !important;
	background: transparent !important;
	color: #727780 !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	gap: 10px !important;
	transition: 0.2s !important;
}

html body .wapper .header.pbtop ul.user-menu.pbtop-usermenu > li.pbtop-extra > a.pbtop-search:hover {
	background: #3b3f47 !important;
	border-color: #3b3f47 !important;
	color: #fff !important;
}

.pbtop-search i {
	width: 31px;
	height: 31px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #434351;
	color: #74748c;
	font-size: 15px;
	transition: 0.2s;
}

.pbtop-search:hover i { background: #4a4a5c; color: #cfd3dc; }

/* язык — как в старой шапке: подложка, скругление, компактный текст */
.pbtop-extra--lang .launge-widget,
.pbtop-extra--lang .launge-widget__current {
	height: 44px !important;
	border-radius: 50px !important;
	background: #363942 !important;
	padding: 0 12px !important;
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	color: #fff !important;
	transition: 0.2s !important;
}

.pbtop-extra--lang .launge-widget__current:hover { background: #3b3f48 !important; }

/* баланс и ANEW — той же высоты, чтобы ряд был ровным */
.pbtop-purse { height: 44px !important; border-radius: 50px !important; }
.anew-chip   { height: 44px !important; }
