/**
 * Header profile dropdown — FSE + JoinEnel public routes.
 */

.eh-profile-menu-shell {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	flex-shrink: 0;
}

.eh-profile-menu {
	position: relative;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.eh-profile-menu__summary {
	list-style: none;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.28rem 0.45rem 0.28rem 0.32rem;
	margin: 0;
	cursor: pointer;
	background: #fff;
	border: 1px solid var(--eh-pub-border, #e2e8e0);
	border-radius: 999px;
	box-shadow: 0 1px 2px rgba(10, 31, 30, 0.06);
	user-select: none;
}

.eh-profile-menu__summary::-webkit-details-marker {
	display: none;
}

.eh-profile-menu__summary::marker {
	display: none;
}

.eh-profile-menu__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 50%;
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1;
	color: #fff;
	background: linear-gradient(135deg, #4f7df5 0%, #6b3ad6 55%, #4a1d8c 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.eh-profile-menu__avatar--icon {
	color: #fff;
}

.eh-profile-menu__avatar--icon svg {
	display: block;
}

.eh-profile-menu__chevron {
	display: inline-block;
	width: 0.45rem;
	height: 0.45rem;
	margin-right: 0.15rem;
	border-right: 2px solid #94a3b8;
	border-bottom: 2px solid #94a3b8;
	transform: rotate(45deg) translateY(-1px);
	transition: transform 0.15s ease;
}

.eh-profile-menu[open] .eh-profile-menu__chevron {
	transform: rotate(225deg) translateY(2px);
}

.eh-profile-menu__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 0.45rem);
	min-width: 13.5rem;
	padding: 0.65rem 0;
	background: #fff;
	border: 1px solid var(--eh-pub-border, #e2e8e0);
	border-radius: 0.75rem;
	box-shadow: 0 0.75rem 2rem rgba(10, 31, 30, 0.12);
	z-index: 50;
}

.eh-profile-menu__meta {
	padding: 0.15rem 0.85rem 0.55rem;
	border-bottom: 1px solid var(--eh-pub-border, #e2e8e0);
	margin-bottom: 0.35rem;
}

.eh-profile-menu__name {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 700;
	color: #0a1f1e;
}

.eh-profile-menu__email {
	margin: 0.2rem 0 0;
	font-size: 0.75rem;
	color: #5c6b69;
	word-break: break-word;
}

.eh-profile-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.eh-profile-menu__list li {
	margin: 0;
}

.eh-profile-menu__link {
	display: block;
	padding: 0.45rem 0.85rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #0a1f1e;
	text-decoration: none;
}

.eh-profile-menu__link:hover {
	background: rgba(94, 197, 197, 0.12);
	color: #0e6b5c;
}

.eh-profile-menu__link--danger {
	color: #7f1d1d;
}

.eh-profile-menu__link--danger:hover {
	color: #991b1b;
	background: rgba(254, 202, 202, 0.35);
}
