/* ── Active menu underline ── */
	#masthead .main-header-menu > .current-menu-item > a,
	#masthead .main-header-menu > .current-menu-ancestor > a {
		position: relative;
	}
	#masthead .main-header-menu > .current-menu-item > a::after,
	#masthead .main-header-menu > .current-menu-ancestor > a::after,
	#masthead .main-header-menu > .menu-item > a:hover::after,
	#masthead .main-header-menu > .menu-item:hover > a::after {
		content: '';
		position: absolute;
		bottom: -6px;   /* gap between text and underline */
		left: 0;
		right: 0;
		height: 1px;
		background: currentColor;
		border-radius: 2px;
		margin: 0 16px;
	}

	/* ── User widget list item ── */
	.lt-user-widget-item {
		display: flex !important;
		align-items: center;
		margin-left: 12px !important;
		padding: 0 !important;
		list-style: none;
	}
	.lt-user-widget {
		display: flex;
		align-items: center;
		gap: 7px;
		cursor: pointer;
		position: relative;
		user-select: none;
		padding: 4px 0;
		color: inherit;   /* inherits white (hero) or dark (solid) */
	}
	.lt-user-avatar {
		width: 32px;
		height: 32px;
		border-radius: 50%;
		object-fit: cover;
		flex-shrink: 0;
		border: 2px solid rgba(255,255,255,0.45);
	}
	.lt-user-greeting {
		font-size: 14px;
		font-weight: 400;
		color: inherit;
		white-space: nowrap;
		letter-spacing: 0.03em;
	}
	.lt-chevron {
		width: 14px;
		height: 14px;
		flex-shrink: 0;
		transition: transform 0.2s ease;
	}
	.lt-user-widget.open .lt-chevron {
		transform: rotate(180deg);
	}

	/* ── Popup ── */
	.lt-user-popup {
		position: absolute;
		top: calc(100% + 12px);
		right: 0;
		width: 224px;
		background: #EEEEEE;
		border-radius: 5px;
		box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
		z-index: 99999;
		opacity: 0;
		pointer-events: none;
		transform: translateY(-6px) scale(0.97);
		transform-origin: top right;
		transition: opacity 0.17s ease, transform 0.17s ease;
		overflow: hidden;
	}
	.lt-user-popup.open {
		opacity: 1;
		pointer-events: all;
		transform: translateY(0) scale(1);
	}

	/* Popup header row */
	.lt-popup-head {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 14px 14px 12px;
		border-bottom: 1px solid #f0f0f0;
	}
	.lt-popup-head-avatar {
		width: 44px;
		height: 44px;
		border-radius: 50%;
		object-fit: cover;
		flex-shrink: 0;
	}
	.lt-popup-head-info {
		flex: 1;
		min-width: 0;
	}
	.lt-popup-head-name {
		font-size: 14px;
		font-weight: 400;
		color: #333333;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		line-height: 1;
	}
	.lt-popup-head-role {
		font-size: 11px;
		color: #BBBBBB;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		line-height: 1;
		margin-top: 4px;
	}
	.lt-popup-close-btn {
		position: absolute;
		top: 10px;
		right: 10px;
		background: none;
		border: none;
		cursor: pointer;
		color: #333333;
		font-size: 34px;
		font-weight: 300;
		line-height: 1;
		padding: 2px 5px;
		border-radius: 4px;
		transition: color 0.12s ease;
		box-shadow: none !important;
	}
	.lt-popup-close-btn:hover {
		color: #555555;
	}

	/* Popup link rows */
	.lt-popup-links {
		padding-bottom: 12px;
		margin: 0px 16px;
		border-top: 1px solid #bbbbbb;
	}
	.lt-popup-links a {
		border-bottom: 1px solid #bbbbbb;
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		padding: 12px 16px !important;
		font-size: 14px !important;
		font-weight: 400 !important;
		letter-spacing: 0.07em;
		color: #333333 !important;
		text-decoration: none !important;
		background: transparent !important;
		transition: background 0.12s ease;
		line-height: 1;
	}
	.lt-popup-links a::after {
		display: none !important;   /* override active underline inside popup */
	}
	.lt-popup-links a:hover {
		background: #bbbbbb !important;
	}
	.lt-popup-logout-row {
		margin-top: 20px !important;
		border: none !important;
	}
	.lt-popup-logout-row .lt-logout-arrow {
		width: 14px;
		height: 14px;
		flex-shrink: 0;
	}

	/* ── Hide "Masuk" item + DAFTAR button when logged in; keep user widget visible ── */
	body.logged-in #ast-hf-menu-2 > .menu-item:not(.lt-user-widget-item) { display: none !important; }
	body.logged-in .ast-header-button-1 { display: none !important; }

	/* ── User widget color follows navbar transparent / solid state ── */
	body.home:not(.nav-solid) #masthead .lt-user-widget {
		color: #ffffff !important;
	}
	body:not(.home) #masthead .lt-user-widget,
	body.home.nav-solid #masthead .lt-user-widget {
		color: #111111 !important;
	}
