.site-profile-menu {
	--site-profile-highlight-duration: 160ms;
	--site-profile-cyan: #41cfff;
	--site-profile-content-right: 10px;
	--site-profile-muted: #aeb8cf;
	position: relative;
	isolation: isolate;
	width: 248px;
	min-width: 248px;
	flex: 0 0 248px;
}

.site-profile-menu__trigger {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 0 0 0 16px;
	border: 0;
	border-radius: 0;
	appearance: none;
	color: #edf1ff;
	background: transparent;
	box-shadow: inset 0 0 0 1px transparent;
	font: inherit;
	cursor: pointer;
	transition:
		box-shadow var(--site-profile-highlight-duration) ease;
}

.site-profile-menu__trigger::before {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: block;
	box-shadow: inset 0 0 0 1px transparent;
	content: "";
	pointer-events: none;
	transition: box-shadow var(--site-profile-highlight-duration) ease;
}

.site-profile-menu::after {
	position: absolute;
	right: 0;
	bottom: calc((var(--site-header-bar-height, 72px) - 48px) / -2);
	left: 0;
	z-index: 0;
	height: 2px;
	background: #8c6cff;
	box-shadow: 0 0 12px rgba(140, 108, 255, .62);
	content: "";
	transform: scaleX(0);
	transform-origin: center;
	pointer-events: none;
	transition: transform 220ms cubic-bezier(.22, 1, .36, 1), box-shadow 180ms ease;
}

.site-profile-menu.is-active::after {
	transform: scaleX(1);
}

.site-profile-menu__copy {
	display: grid;
	flex: 1 1 auto;
	gap: 1px;
	min-width: 0;
	text-align: right;
}

.site-profile-menu__copy small {
	color: rgba(174, 184, 207, .66);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: .1em;
	line-height: 1.15;
	text-transform: uppercase;
}

.site-profile-menu__username {
	display: block;
	max-width: 170px;
	overflow: hidden;
	color: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	text-overflow: ellipsis;
	transition: color var(--site-profile-highlight-duration) ease;
	white-space: nowrap;
}

.site-profile-menu__avatar {
	display: grid;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	margin: 0;
	border: 1px solid rgba(65, 207, 255, .2);
	border-radius: 0;
	place-items: center;
	overflow: hidden;
	color: var(--site-profile-cyan);
	background: rgba(16, 21, 36, .42);
	font-size: 13px;
	transition:
		border-color var(--site-profile-highlight-duration) ease,
		filter var(--site-profile-highlight-duration) ease;
}

.site-profile-menu__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.site-profile-menu__trigger:hover,
.site-profile-menu__trigger:focus-visible,
.site-profile-menu.is-open .site-profile-menu__trigger {
	box-shadow: inset 0 0 0 1px transparent;
}

.site-profile-menu__trigger:hover::before,
.site-profile-menu__trigger:focus-visible::before,
.site-profile-menu.is-open .site-profile-menu__trigger::before {
	box-shadow: inset 0 0 0 1px rgba(65, 207, 255, .88);
}

.site-profile-menu__trigger:hover .site-profile-menu__username,
.site-profile-menu__trigger:focus-visible .site-profile-menu__username,
.site-profile-menu.is-open .site-profile-menu__username {
	color: var(--site-profile-cyan);
}

.site-profile-menu__dropdown {
	position: absolute;
	top: calc(100% - 1px);
	right: 0;
	left: 0;
	z-index: 1;
	display: grid;
	grid-template-rows: 0fr;
	min-width: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		grid-template-rows var(--site-profile-highlight-duration) cubic-bezier(.22, 1, .36, 1),
		visibility 0s linear var(--site-profile-highlight-duration);
}

.site-profile-menu.is-open .site-profile-menu__dropdown {
	grid-template-rows: 1fr;
	visibility: visible;
	pointer-events: auto;
	transition:
		grid-template-rows var(--site-profile-highlight-duration) cubic-bezier(.22, 1, .36, 1),
		visibility 0s linear 0s;
}

.site-profile-menu__surface {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	width: 100%;
	min-height: 0;
	min-width: 0;
	gap: 0;
	padding: 0;
	border: 1px solid rgba(65, 207, 255, .22);
	border-top: 0;
	border-radius: 0;
	overflow: hidden;
	background: rgba(7, 10, 22, .43);
	box-shadow: 0 18px 42px rgba(0, 0, 0, .3), 0 0 10px rgba(65, 207, 255, .06), inset 0 1px 0 rgba(255, 255, 255, .025);
	backdrop-filter: blur(22px) saturate(150%);
	-webkit-backdrop-filter: blur(22px) saturate(150%);
}

.site-profile-menu:not(.is-open) .site-profile-menu__surface {
	border-color: transparent;
	box-shadow: none;
}

.site-profile-menu__section {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	min-width: 0;
	gap: 0;
	padding: 0;
}

.site-profile-menu__section--profile {
	border-top: 1px solid rgba(65, 207, 255, .14);
}

.site-profile-menu__section > small {
	min-width: 0;
	padding: 10px var(--site-profile-content-right) 6px 14px;
	color: rgba(174, 184, 207, .66);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: .1em;
	line-height: 1.15;
	text-align: right;
	text-transform: uppercase;
}

.site-profile-menu__balance {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	min-width: 0;
	padding: 0 var(--site-profile-content-right) 10px 14px;
}

.site-profile-menu__balance strong {
	overflow: hidden;
	color: #ffffff;
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
	text-align: right;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-profile-menu__actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	min-width: 0;
	gap: 0;
	padding-bottom: 0;
}

.site-profile-menu__button {
	--site-profile-button-accent: var(--site-profile-cyan);
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	width: 100%;
	min-width: 0;
	min-height: 36px;
	margin: 0;
	padding: 0 var(--site-profile-content-right) 0 14px;
	border: 0;
	border-radius: 0;
	color: var(--site-profile-muted);
	background: transparent;
	box-shadow: none;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.2;
	text-align: right;
	transition:
		color var(--site-profile-highlight-duration) ease,
		background-color var(--site-profile-highlight-duration) ease,
		filter var(--site-profile-highlight-duration) ease;
}

.site-profile-menu__button svg {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: square;
	stroke-linejoin: miter;
	stroke-width: 1.6;
}

.site-profile-menu__button > span:not(.site-profile-menu__button-line) {
	min-width: 0;
	overflow: hidden;
	flex: 0 1 auto;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-profile-menu__button-line {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 5;
	width: 2px;
	margin: 0;
	background: var(--site-profile-button-accent);
	box-shadow: 0 0 6px var(--site-profile-button-accent);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--site-profile-highlight-duration) ease;
}

.site-profile-menu__button:hover,
.site-profile-menu__button:focus-visible,
.site-profile-menu__button:active {
	color: #ffffff;
	background: rgba(255, 255, 255, .035);
	filter: brightness(1.1);
}

.site-profile-menu__button:hover .site-profile-menu__button-line,
.site-profile-menu__button:focus-visible .site-profile-menu__button-line,
.site-profile-menu__button:active .site-profile-menu__button-line,
.site-profile-menu__button.is-active .site-profile-menu__button-line {
	opacity: 1;
}

.site-profile-menu__button.is-active {
	color: #ffffff;
	background: rgba(65, 207, 255, .055);
}

.site-profile-menu__button--deposit {
	--site-profile-button-accent: #38d689;
	color: #79e8b2;
	background: transparent;
}

.site-profile-menu__button--deposit:hover,
.site-profile-menu__button--deposit:focus-visible,
.site-profile-menu__button--deposit:active {
	color: #a2f3ca;
	background: rgba(56, 214, 137, .1);
}

.site-profile-menu__button--logout {
	--site-profile-button-accent: #ff4555;
	color: #ff8993;
	background: transparent;
}

.site-profile-menu__button--logout:hover,
.site-profile-menu__button--logout:focus-visible,
.site-profile-menu__button--logout:active {
	color: #ffadb4;
	background: rgba(255, 69, 85, .08);
}

@media (max-width: 680px) {
	.site-profile-menu {
		width: 210px;
		min-width: 210px;
		flex-basis: 210px;
	}

	.site-profile-menu__username {
		max-width: 132px;
	}
}

@media (max-width: 520px) {
	.site-profile-menu {
		width: 48px;
		min-width: 48px;
		flex-basis: 48px;
	}

	.site-profile-menu__trigger {
		padding-left: 0;
	}

	.site-profile-menu__copy {
		display: none;
	}

	.site-profile-menu__dropdown {
		right: 0;
		left: auto;
		width: min(248px, calc(100vw - 24px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-profile-menu,
	.site-profile-menu * {
		transition-duration: .01ms !important;
	}
}
