/* Account menu — logged-in header (profile + course overview). */

header.header-nav.menu_style_home_six,
header.header-nav.menu_style_home_six > .container,
header.header-nav.menu_style_home_six > .container > nav {
	overflow: visible;
}

.lms-account {
	--lms-navy: #2D368F;
	--lms-ink: #0f172a;
	--lms-muted: #64748b;
	--lms-line: #e2e8f0;
	position: relative;
	flex: none;
	font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
	z-index: 40;
}

.lms-account__trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 240px;
	min-height: 40px;
	padding: 4px 10px 4px 4px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	color: var(--lms-ink);
	font-family: inherit;
	cursor: pointer;
}

.lms-account__trigger:hover,
.lms-account.is-open .lms-account__trigger,
.lms-account:focus-within .lms-account__trigger {
	background: #f1f2fa;
	border-color: var(--lms-line);
}

.lms-account__trigger:focus {
	outline: none;
}

.lms-account__trigger:focus-visible {
	outline: 2px solid var(--lms-navy);
	outline-offset: 2px;
}

.lms-account__avatar {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--lms-navy);
	color: #fff;
	overflow: hidden;
	flex: none;
}

.lms-account__avatar--lg {
	width: 40px;
	height: 40px;
	font-size: 16px;
}

.lms-account__avatar img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
	background: #fff;
}

.lms-account__initials {
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.lms-account__avatar--lg .lms-account__initials {
	font-size: 15px;
}

.lms-account__name {
	min-width: 0;
	max-width: 140px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
}

.lms-account__trigger > i {
	color: #94a3b8;
	font-size: 16px;
	transition: transform 0.15s ease;
}

.lms-account.is-open .lms-account__trigger > i,
.lms-account:hover .lms-account__trigger > i,
.lms-account:focus-within .lms-account__trigger > i {
	transform: rotate(180deg);
}

.lms-account:hover::after,
.lms-account:focus-within::after,
.lms-account.is-open::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 12px;
}

.lms-account__panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	left: auto;
	width: 260px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--lms-line);
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
	z-index: 10050;
	text-align: left;
}

.lms-account:hover .lms-account__panel,
.lms-account:focus-within .lms-account__panel,
.lms-account.is-open .lms-account__panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.lms-account__identity {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 8px 10px;
	margin: 0 0 4px;
	border-radius: 8px;
	text-decoration: none !important;
	color: var(--lms-ink);
}

.lms-account__identity:hover,
.lms-account__identity:focus {
	background: #f8f9fd;
}

.lms-account__identity-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 2px;
}

.lms-account__identity-name {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lms-account__identity-link {
	font-size: 12px;
	font-weight: 600;
	color: var(--lms-navy);
}

.lms-account__list {
	list-style: none;
	margin: 0;
	padding: 4px 0;
	border-top: 1px solid var(--lms-line);
}

.lms-account__list li {
	margin: 0;
	padding: 0;
	float: none;
	border: 0;
}

.lms-account__list a,
.lms-account__logout {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 9px 10px;
	border-radius: 8px;
	color: var(--lms-ink) !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none !important;
	float: none !important;
}

.lms-account__list a i,
.lms-account__logout i {
	width: 18px;
	font-size: 16px;
	color: #64748b;
	text-align: center;
}

.lms-account__list a:hover,
.lms-account__list a:focus,
.lms-account__logout:hover,
.lms-account__logout:focus {
	background: #eef0fb;
	color: var(--lms-navy) !important;
}

.lms-account__list a:hover i,
.lms-account__list a:focus i,
.lms-account__logout:hover i,
.lms-account__logout:focus i {
	color: var(--lms-navy);
}

.lms-account__logout {
	margin-top: 4px;
	border-top: 1px solid var(--lms-line);
	border-radius: 0 0 8px 8px;
	color: #b42318 !important;
}

.lms-account__logout i {
	color: #b42318;
}

.lms-account__logout:hover,
.lms-account__logout:focus {
	background: #fef2f2;
	color: #b42318 !important;
}

.lms-account__logout:hover i,
.lms-account__logout:focus i {
	color: #b42318;
}

@media only screen and (max-width: 991.98px) {
	.lms-account {
		display: none;
	}
}
