/* Header account dropdown — site-wide */

.sh-account {
	position: relative;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	min-height: 44px;
	z-index: 1200;
}

.sh-account__trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	padding: 4px 10px 4px 4px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	font: 600 13px/1.2 "Open Sans", Arial, sans-serif;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sh-account__trigger:hover,
.sh-account.is-open .sh-account__trigger {
	background: rgba(255, 255, 255, 0.24);
	border-color: rgba(255, 255, 255, 0.55);
	box-shadow: 0 8px 24px rgba(7, 44, 74, 0.18);
}

.sh-account__avatar {
	position: relative;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	overflow: visible;
	background: linear-gradient(135deg, #079ddc, #056f9c);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.sh-account__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 50%;
}

.sh-account__avatar .sh-account__initials {
	border-radius: 50%;
}

.sh-account__avatar--guest {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	font-size: 15px;
}

.sh-account__initials {
	font-size: 14px;
	font-weight: 700;
	color: #fff;
}

.sh-account__badge {
	position: absolute;
	top: -4px;
	right: -4px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #ef4444;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	border: 2px solid #fff;
	box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45);
	pointer-events: none;
}

.sh-account__label {
	max-width: 92px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sh-account__caret {
	font-size: 10px;
	opacity: 0.85;
	transition: transform 0.15s ease;
}

.sh-account.is-open .sh-account__caret {
	transform: rotate(180deg);
}

.sh-account__dropdown {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: min(300px, calc(100vw - 24px));
	padding: 8px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid #e5e7eb;
	box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
	animation: shAccountIn 0.16s ease;
}

@keyframes shAccountIn {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.sh-account__dropdown-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px 12px;
	border-bottom: 1px solid #f1f5f9;
	margin-bottom: 6px;
}

.sh-account__dropdown-head--guest {
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.sh-account__dropdown-head strong {
	display: block;
	font-size: 14px;
	color: #111827;
}

.sh-account__dropdown-head span {
	display: block;
	font-size: 12px;
	color: #6b7280;
}

.sh-account__dropdown-avatar {
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	overflow: hidden;
	background: linear-gradient(135deg, #079ddc, #056f9c);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.sh-account__dropdown-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sh-account__dropdown-meta {
	min-width: 0;
}

.sh-account__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sh-account__menu li {
	margin: 0;
}

.sh-account__divider {
	height: 1px;
	margin: 6px 8px;
	background: #eef2f7;
}

.sh-account__menu-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	color: #1f2937;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.12s ease, color 0.12s ease;
}

.sh-account__menu-link i {
	width: 18px;
	text-align: center;
	color: #079ddc;
}

.sh-account__menu-link > span:not(.sh-account__menu-badge) {
	flex: 1;
	min-width: 0;
}

.sh-account__menu-link:hover {
	background: #f0f9ff;
	color: #079ddc;
	text-decoration: none;
}

.sh-account__menu-link--danger {
	color: #dc2626;
}

.sh-account__menu-link--danger i {
	color: #dc2626;
}

.sh-account__menu-link--danger:hover {
	background: #fef2f2;
	color: #b91c1c;
}

.sh-account__menu-badge {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: #ef4444;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

@media (max-width: 767px) {
	.sh-account {
		justify-content: center;
	}

	.sh-account__trigger {
		padding-right: 8px;
	}
}
