/* Выпадающее меню профиля (XenForo / DarkMoney) */
.profile-menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
	display: none;
	pointer-events: none;
}
.profile-menu-overlay.is-active {
	display: block;
	pointer-events: auto;
}
.p-navgroup-link.js-open-profile {
	position: relative;
	z-index: 10002;
	pointer-events: auto;
}
.profile-menu-overlay.is-active .profile-menu {
	opacity: 1;
	transform: translateY(0);
}
.profile-menu {
	--pm-bg: #bdbdbd;
	--pm-border: #8c8c8c;
	--pm-text: #141414;
	--pm-avatar-bg: #a370a1;
	--pm-avatar-fg: #333333;
	--pm-hover: rgba(0, 0, 0, 0.07);
	--pm-width: 520px;

	position: absolute;
	top: 0;
	left: 0;
	width: var(--pm-width);
	min-width: 520px;
	max-width: 520px;
	box-sizing: border-box;
	background: var(--pm-bg);
	border: 1px solid var(--pm-border);
	border-radius: 3px;
	box-shadow: none;
	font-family: "Segoe UI", "Helvetica Neue", Helvetica, Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", sans-serif;
	color: var(--pm-text);
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 0.18s ease, transform 0.18s ease;
	z-index: 10001;
	margin-top: 6px;
}
.profile-menu-header {
	display: flex;
	align-items: flex-start;
	padding: 14px 14px 12px;
	gap: 12px;
}
.profile-menu-avatar {
	flex-shrink: 0;
}
.profile-menu-avatar-box {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 4px;
	background: var(--pm-avatar-bg);
	color: var(--pm-avatar-fg);
	box-sizing: border-box;
}
.profile-menu-avatar-letter {
	font-size: 28px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
}
.profile-menu-info {
	flex: 1;
	min-width: 0;
}
.profile-menu-username {
	font-weight: 600;
	color: var(--pm-text);
	font-size: 15px;
	line-height: 1.25;
	margin-bottom: 8px;
	word-break: break-word;
}
.profile-menu-stats {
	margin: 0;
	padding: 0;
}
.profile-menu-stat dt,
.profile-menu-stat dd {
	margin: 0;
	padding: 0;
}
.profile-menu-stat {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	margin: 0;
	padding: 2px 0;
	font-size: 13px;
	line-height: 1.35;
	color: var(--pm-text);
}
.profile-menu-stat-label,
.profile-menu-stat-value {
	margin: 0;
	font-weight: 400;
}
.profile-menu-stat-label {
	flex-shrink: 0;
}
.profile-menu-stat-value {
	text-align: right;
	font-variant-numeric: tabular-nums;
	min-width: 1.5em;
}
.profile-menu-divider {
	height: 0;
	border: 0;
	border-top: 1px solid var(--pm-border);
	margin: 0;
	padding: 0;
	background: transparent;
}
.profile-menu-body {
	padding: 4px 0 2px;
}
.profile-menu-block--grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	align-items: start;
}
.profile-menu-col {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.profile-menu-item {
	display: block;
	padding: 9px 14px;
	color: var(--pm-text);
	text-decoration: none;
	font-size: 14px;
	line-height: 1.35;
	transition: background-color 0.12s ease;
	border: none;
	background: transparent;
	width: 100%;
	text-align: left;
	box-sizing: border-box;
	white-space: nowrap;
}
.profile-menu-item:hover {
	background-color: var(--pm-hover);
	text-decoration: none;
	color: var(--pm-text);
}
.profile-menu-item:focus {
	outline: none;
}
.profile-menu-item:focus-visible {
	background-color: var(--pm-hover);
	box-shadow: inset 0 0 0 2px rgba(20, 20, 20, 0.25);
}
.profile-menu-footer {
	padding: 2px 0 6px;
}
.profile-menu-footer .profile-menu-item {
	padding-top: 10px;
	padding-bottom: 10px;
}
.profile-menu-item--logout {
	font-weight: 500;
}
.profile-menu-overlay.is-active::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: transparent;
}
