/* =========================================================
   Profile Hover Card — Glassmorphism Redesign
   ========================================================= */

@keyframes pbg_hcard_glow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.pbg-hcard {
	position: absolute;
	z-index: 9999;
	width: 340px;
	max-width: calc(100vw - 20px);
	background: rgba(18, 20, 29, 0.72) !important;
	backdrop-filter: blur(24px) saturate(180%);
	-webkit-backdrop-filter: blur(24px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 20px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	pointer-events: none;
	overflow: hidden;
}

.pbg-hcard.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

/* Стрелочка карточки */
.pbg-hcard__arrow {
	position: absolute;
	top: -6px;
	width: 12px;
	height: 12px;
	margin-left: -6px;
	background: rgba(18, 20, 29, 0.85);
	backdrop-filter: blur(12px);
	border-left: 1px solid rgba(255, 255, 255, 0.1);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	transform: rotate(45deg);
	z-index: 2;
}

.pbg-hcard--above .pbg-hcard__arrow {
	top: auto;
	bottom: -6px;
	border-left: none;
	border-top: none;
	border-right: 1px solid rgba(255, 255, 255, 0.1);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(18, 20, 29, 0.85);
}

.pbg-hcard__body {
	position: relative;
	z-index: 1;
}

.pbg-hcard__inner {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
}

/* =========================================================
   Премиум карточка — Зеленый Неоновый Glassmorphic
   ========================================================= */

/* Зеленый блюр и неоновая обводка внешнего контейнера */
.pbg-hcard--premium {
	border-color: rgba(79, 234, 159, 0.4) !important;
	background: rgba(12, 25, 18, 0.75) !important;
	box-shadow: 
		0 20px 50px rgba(0, 0, 0, 0.6), 
		0 0 35px rgba(79, 234, 159, 0.25), 
		inset 0 0 15px rgba(79, 234, 159, 0.15) !important;
}

/* Стрелочка с зеленым подтоном */
.pbg-hcard--premium .pbg-hcard__arrow {
	background: rgba(14, 28, 20, 0.9) !important;
	border-color: rgba(79, 234, 159, 0.4) !important;
}

.pbg-hcard--premium.pbg-hcard--above .pbg-hcard__arrow {
	background: rgba(14, 28, 20, 0.9) !important;
	border-color: rgba(79, 234, 159, 0.4) !important;
}

/* Внутренний градиент и зеленый фон блоков */
.pbg-hcard__inner--premium {
	background: linear-gradient(180deg, rgba(79, 234, 159, 0.14) 0%, rgba(12, 25, 18, 0.4) 60%, rgba(0, 0, 0, 0) 100%) !important;
	box-shadow: inset 0 0 0 1px rgba(79, 234, 159, 0.3) !important;
}

/* Статистика с салатовым фоном и подсвеченными цифрами */
.pbg-hcard__inner--premium .pbg-hcard__stats {
	border-top-color: rgba(79, 234, 159, 0.2) !important;
	border-bottom-color: rgba(79, 234, 159, 0.2) !important;
	background: rgba(79, 234, 159, 0.06) !important;
}

.pbg-hcard__inner--premium .pbg-hcard__stat {
	border-right-color: rgba(79, 234, 159, 0.15) !important;
}

.pbg-hcard__inner--premium .pbg-hcard__stat-num {
	color: #4fea9f !important;
	text-shadow: 0 0 10px rgba(79, 234, 159, 0.5) !important;
}

/* Аватарка с яркой зеленой рамкой */
.pbg-hcard__inner--premium .pbg-hcard__avatar img {
	border-radius: 50%;
	box-shadow: 0 0 0 3px #4fea9f, 0 0 20px rgba(79, 234, 159, 0.5) !important;
}

/* Обложка с зеленым переходом в карточку */
.pbg-hcard__inner--premium .pbg-hcard__cover:after {
	background: linear-gradient(180deg, rgba(18, 20, 29, 0) 20%, rgba(12, 25, 18, 0.85) 100%) !important;
}

/* Статус с салатовым фоном */
.pbg-hcard__inner--premium .pbg-hcard__status {
	border-left-color: #4fea9f !important;
	background: rgba(79, 234, 159, 0.09) !important;
	color: #e8e8ef !important;
}

/* Кнопки в премиум карточке */
.pbg-hcard__inner--premium .pbg-hcard__btn--accent {
	background: linear-gradient(135deg, #4fea9f, #22b877) !important;
	color: #08150f !important;
	box-shadow: 0 4px 18px rgba(79, 234, 159, 0.4) !important;
}

.pbg-hcard__inner--premium .pbg-hcard__btn--accent:hover {
	background: linear-gradient(135deg, #63f0ac, #22b877) !important;
	box-shadow: 0 6px 24px rgba(79, 234, 159, 0.6) !important;
}

.pbg-hcard__inner--premium .pbg-hcard__btn--soft {
	background: rgba(79, 234, 159, 0.12) !important;
	border: 1px solid rgba(79, 234, 159, 0.25) !important;
	color: #4fea9f !important;
}

.pbg-hcard__inner--premium .pbg-hcard__btn--soft:hover {
	background: rgba(79, 234, 159, 0.22) !important;
	color: #ffffff !important;
}

/* Обложка шапки */
.pbg-hcard__cover {
	position: relative;
	height: 88px;
	overflow: hidden;
	background: linear-gradient(135deg, rgba(79, 234, 159, 0.25), rgba(34, 184, 119, 0.12));
}

.pbg-hcard__cover .mst-adm-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	object-fit: cover;
}

.pbg-hcard__cover .mst-adm-bg-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.2);
}

.pbg-hcard__cover:after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(180deg, rgba(18, 20, 29, 0) 20%, rgba(18, 20, 29, 0.8) 100%);
}

.pbg-hcard__top {
	position: relative;
	padding: 0 18px 14px;
	margin-top: -36px;
}

.pbg-hcard__avatar {
	display: inline-block;
	position: relative;
	z-index: 2;
	line-height: 0;
	text-decoration: none;
}

.pbg-hcard__avatar img {
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12), 0 6px 16px rgba(0, 0, 0, 0.5);
}

.pbg-hcard__ident {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	min-width: 0;
}

.pbg-hcard__login {
	font-size: 17px;
	font-weight: 800;
	color: #ffffff;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: color 0.18s ease;
}

.pbg-hcard__login:hover {
	color: #4fea9f;
	text-decoration: none;
}

.pbg-hcard__flag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 16px;
	flex: 0 0 auto;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
	background: rgba(255, 255, 255, 0.06);
}

.pbg-hcard__flag img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pbg-hcard__badges {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex: 0 0 auto;
}

.pbg-hcard__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.pbg-hcard__tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: #aeb6d2;
}

.pbg-hcard__tag--premium {
	background: linear-gradient(135deg, #4fea9f, #22b877);
	color: #08150f;
	border: none;
	box-shadow: 0 0 10px rgba(79, 234, 159, 0.35);
}

/* Статус пользователя */
.pbg-hcard__status {
	margin-top: 10px;
	padding: 8px 12px;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.25);
	border-left: 2px solid #4fea9f;
	color: #d6d8e6;
	font-size: 12.5px;
	line-height: 1.45;
	word-break: break-word;
}

.pbg-hcard__meta {
	margin-top: 12px;
	display: grid;
	gap: 6px;
}

.pbg-hcard__meta-row {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #aeb6d2;
	font-size: 12.5px;
}

.pbg-hcard__meta-row i {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.35);
	flex: 0 0 auto;
}

/* Индикатор статуса сети */
.pbg-hcard__online {
	color: #4fea9f;
	font-weight: 700;
}

.pbg-hcard__online:before {
	content: '';
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 6px;
	border-radius: 50%;
	background: #4fea9f;
	box-shadow: 0 0 8px rgba(79, 234, 159, 0.8);
	vertical-align: middle;
}

.pbg-hcard__offline {
	color: #707893;
}

/* Сетка статистики */
.pbg-hcard__stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(0, 0, 0, 0.2);
}

.pbg-hcard__stat {
	padding: 10px 2px !important;
	text-align: center;
	border-right: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-width: 0;
}

.pbg-hcard__stat:last-child {
	border-right: none;
}

.pbg-hcard__stat-num {
	display: block;
	font-size: 15px;
	font-weight: 800;
	color: #ffffff !important;
	line-height: 1.2;
}

.pbg-hcard__stat-label {
	display: block;
	margin-top: 3px;
	font-size: 9.5px !important;
	font-weight: 700 !important;
	color: rgba(255, 255, 255, 0.7) !important;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
}

.pbg-hcard__inner--premium .pbg-hcard__stat-label {
	color: rgba(79, 234, 159, 0.85) !important;
	text-shadow: 0 0 8px rgba(79, 234, 159, 0.3);
}

/* Кнопки действий */
.pbg-hcard__actions {
	display: flex;
	gap: 8px;
	padding: 12px 16px 14px;
}

.pbg-hcard__btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 38px;
	border-radius: 12px;
	font-size: 12.5px;
	font-weight: 800;
	text-decoration: none;
	transition: all 0.2s ease;
}

.pbg-hcard__btn i {
	font-size: 15px;
}

.pbg-hcard__btn--accent {
	background: linear-gradient(135deg, #4fea9f, #22b877);
	color: #08150f;
	box-shadow: 0 4px 15px rgba(79, 234, 159, 0.3);
}

.pbg-hcard__btn--accent:hover {
	background: linear-gradient(135deg, #63f0ac, #22b877);
	color: #08150f;
	box-shadow: 0 6px 20px rgba(79, 234, 159, 0.45);
	text-decoration: none;
	transform: translateY(-1px);
}

.pbg-hcard__btn--soft {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: #aeb6d2;
}

.pbg-hcard__btn--soft:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(79, 234, 159, 0.3);
	color: #ffffff;
	text-decoration: none;
}

@media (max-width: 560px) {
	.pbg-hcard {
		width: calc(100vw - 24px);
	}

	.pbg-hcard__stat-label {
		font-size: 9px !important;
	}
}

/* =========================================================
   Гарантированный вывод подписей через CSS ::after
   ========================================================= */

/* Фиксируем сетку статистики */
.pbg-hcard__stats {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
	background: rgba(0, 0, 0, 0.25) !important;
}

/* Настройки каждой из 4 ячеек */
.pbg-hcard__stat {
	padding: 10px 2px !important;
	text-align: center !important;
	border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	align-items: center !important;
	min-width: 0 !important;
}

.pbg-hcard__stat:last-child {
	border-right: none !important;
}

/* Настройка чисел */
.pbg-hcard__stat-num {
	display: block !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	color: #ffffff !important;
	line-height: 1.2 !important;
}

/* Если класс .pbg-hcard__stat-label есть в HTML — сбрасываем его старый скрытый вид */
.pbg-hcard__stat-label {
	display: block !important;
	margin-top: 3px !important;
	font-size: 9px !important;
	font-weight: 800 !important;
	color: rgba(255, 255, 255, 0.75) !important;
	text-transform: uppercase !important;
	letter-spacing: 0.02em !important;
}

/* ГАРАНТИРОВАННЫЙ ВЫВОД ПОДПИСЕЙ (Даже если движок не вывел текст) */
.pbg-hcard__stat:nth-child(1)::after {
	content: "ТЕМЫ" !important;
	display: block !important;
	margin-top: 3px !important;
	font-size: 8.5px !important;
	font-weight: 800 !important;
	color: rgba(255, 255, 255, 0.75) !important;
	text-transform: uppercase !important;
	letter-spacing: 0.02em !important;
}

.pbg-hcard__stat:nth-child(2)::after {
	content: "ОТВЕТЫ" !important;
	display: block !important;
	margin-top: 3px !important;
	font-size: 8.5px !important;
	font-weight: 800 !important;
	color: rgba(255, 255, 255, 0.75) !important;
	text-transform: uppercase !important;
	letter-spacing: 0.02em !important;
}

.pbg-hcard__stat:nth-child(3)::after {
	content: "СПАСИБО" !important;
	display: block !important;
	margin-top: 3px !important;
	font-size: 8.5px !important;
	font-weight: 800 !important;
	color: rgba(255, 255, 255, 0.75) !important;
	text-transform: uppercase !important;
	letter-spacing: 0.02em !important;
}

.pbg-hcard__stat:nth-child(4)::after {
	content: "РЕПУТАЦИЯ" !important;
	display: block !important;
	margin-top: 3px !important;
	font-size: 8.5px !important;
	font-weight: 800 !important;
	color: rgba(255, 255, 255, 0.75) !important;
	text-transform: uppercase !important;
	letter-spacing: 0.02em !important;
}

/* Подсветка текста подписей в ПРЕМИУМ карточке */
.pbg-hcard__inner--premium .pbg-hcard__stat::after,
.pbg-hcard__inner--premium .pbg-hcard__stat-label {
	color: #4fea9f !important;
	text-shadow: 0 0 8px rgba(79, 234, 159, 0.4) !important;
}