.pbg-hcard {
	position: absolute;
	z-index: 9999;
	width: 340px;
	max-width: calc(100vw - 20px);
	background: linear-gradient(1deg, #25252e 30%, #292932 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
	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: #25252e;
	border-left: 1px solid rgba(255, 255, 255, 0.08);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	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.08);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: #292932;
}

.pbg-hcard--premium {
	border-color: rgba(240, 180, 41, 0.45);
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55), 0 0 26px rgba(240, 180, 41, 0.16);
}

.pbg-hcard--premium .pbg-hcard__arrow {
	background: #2a2519;
	border-color: rgba(240, 180, 41, 0.45);
}

.pbg-hcard--premium.pbg-hcard--above .pbg-hcard__arrow {
	background: #2e2820;
	border-color: rgba(240, 180, 41, 0.45);
}

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

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

.pbg-hcard__inner--premium {
	background:
		linear-gradient(180deg, rgba(240, 180, 41, 0.10) 0%, rgba(240, 180, 41, 0) 42%),
		linear-gradient(1deg, #2a2519 30%, #2e2820 100%);
	box-shadow: inset 0 0 0 1px rgba(240, 180, 41, 0.45);
}

.pbg-hcard__inner--premium .pbg-hcard__stats {
	border-top-color: rgba(240, 180, 41, 0.22);
	border-bottom-color: rgba(240, 180, 41, 0.22);
	background: rgba(240, 180, 41, 0.05);
}

.pbg-hcard__inner--premium .pbg-hcard__stat {
	border-right-color: rgba(240, 180, 41, 0.14);
}

.pbg-hcard__inner--premium .pbg-hcard__stat-num {
	color: #f6d68a;
}

.pbg-hcard__inner--premium .pbg-hcard__avatar {
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.55), 0 4px 14px rgba(240, 180, 41, 0.25);
}

.pbg-hcard__inner--premium .pbg-hcard__cover:after {
	background: linear-gradient(180deg, rgba(46, 40, 32, 0) 30%, #2e2820 100%);
}

.pbg-hcard__inner--premium .pbg-hcard__status {
	border-left-color: #f0b429;
	background: rgba(240, 180, 41, 0.07);
}

.pbg-hcard__inner--premium .pbg-hcard__btn--accent {
	background: linear-gradient(135deg, #f0b429, #e0932a);
	color: #4a2f00;
}

.pbg-hcard__inner--premium .pbg-hcard__btn--accent:hover {
	background: linear-gradient(135deg, #ffc94a, #f0b429);
	color: #4a2f00;
}

.pbg-hcard__inner--premium .pbg-hcard__btn--soft {
	background: rgba(240, 180, 41, 0.12);
	color: #f6d68a;
}

.pbg-hcard__inner--premium .pbg-hcard__btn--soft:hover {
	background: rgba(240, 180, 41, 0.2);
	color: #ffd97a;
}

.pbg-hcard__cover {
	position: relative;
	height: 84px;
	overflow: hidden;
	background: linear-gradient(135deg, rgba(79, 234, 159, 0.30), rgba(34, 184, 119, 0.18));
}

.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.25);
}

.pbg-hcard__cover:after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(180deg, rgba(37, 37, 46, 0) 30%, #25252e 100%);
}

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

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

.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;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pbg-hcard__login:hover {
	text-decoration: underline;
}

.pbg-hcard__flag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 16px;
	flex: 0 0 auto;
	border-radius: 3px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
	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;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.pbg-hcard__tag--premium {
	background: linear-gradient(135deg, #f0b429, #e0932a);
	color: #4a2f00;
	text-shadow: none;
}

.pbg-hcard__status {
	margin-top: 10px;
	padding: 8px 11px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
	border-left: 2px solid #4fea9f;
	color: rgba(255, 255, 255, 0.72);
	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: rgba(255, 255, 255, 0.5);
	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 0 3px rgba(79, 234, 159, 0.18);
	vertical-align: middle;
}

.pbg-hcard__offline {
	color: rgba(255, 255, 255, 0.5);
}

.pbg-hcard__stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(0, 0, 0, 0.14);
}

.pbg-hcard__stat {
	padding: 11px 4px;
	text-align: center;
	border-right: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.pbg-hcard__stat-label {
	display: block;
	margin-top: 2px;
	font-size: 10.5px;
	color: rgba(255, 255, 255, 0.42);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.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: 36px;
	border-radius: 10px;
	font-size: 12.5px;
	font-weight: 800;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

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

.pbg-hcard__btn--accent {
	background: linear-gradient(135deg, #4fea9f, #22b877);
	color: #0c1f16;
}

.pbg-hcard__btn--accent:hover {
	background: linear-gradient(135deg, #63f0ab, #2acb84);
	color: #0c1f16;
	text-decoration: none;
}

.pbg-hcard__btn--soft {
	background: rgba(255, 255, 255, 0.07);
	color: rgba(255, 255, 255, 0.75);
}

.pbg-hcard__btn--soft:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	text-decoration: none;
}

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

	.pbg-hcard__stat-label {
		font-size: 9.5px;
	}
}
