/* LEVELHUB HEADER V1.1
   CSS disimpan di plugin, bukan Custom CSS Elementor. */

.lhh-header,
.lhh-header *,
.lhh-header *::before,
.lhh-header *::after {
	box-sizing: border-box;
}

.lhh-header {
	--lhh-white: #ffffff;
	--lhh-ink: #07101f;
	--lhh-night: #050b16;
	--lhh-night-2: #0b172b;
	--lhh-violet: #987aff;
	--lhh-blue: #3185ff;
	--lhh-orange: #ff8a4c;
	--lhh-muted: #aebbd2;

	position: sticky;
	top: 0;
	z-index: 9999;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	color: var(--lhh-white);
	background:
		radial-gradient(circle at 82% -80%, rgba(152, 122, 255, .26), transparent 40%),
		linear-gradient(90deg, rgba(5, 11, 22, .98), rgba(11, 23, 43, .98));
	border-bottom: 1px solid rgba(218, 227, 255, .14);
	box-shadow: 0 12px 34px rgba(0, 0, 0, .2);
	font-family: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.admin-bar .lhh-header {
	top: 32px;
}

.lhh-header a {
	color: inherit;
	text-decoration: none;
}

.lhh-header ul,
.lhh-header li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lhh-top-line {
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: linear-gradient(90deg, var(--lhh-violet), var(--lhh-blue), var(--lhh-orange));
	box-shadow: 0 0 16px rgba(152, 122, 255, .48);
}

.lhh-container {
	display: grid;
	grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
	width: min(1240px, calc(100% - 36px));
	min-height: 76px;
	margin-inline: auto;
}

.lhh-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: #ffffff;
}

.lhh-logo img {
	display: block;
	width: 42px;
	height: 42px;
	object-fit: contain;
	filter: drop-shadow(0 0 11px rgba(152, 122, 255, .34));
}

.lhh-logo-text {
	color: #ffffff;
	font-size: 18px;
	font-weight: 500;
	letter-spacing: -.035em;
	line-height: 1;
}

.lhh-logo-text strong {
	font-weight: 700;
}

.lhh-desktop-nav {
	min-width: 0;
}

.lhh-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	width: auto;
}

.lhh-menu > li {
	position: relative;
	display: flex;
	align-items: center;
}

.lhh-menu > li > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 43px;
	padding: 0 11px;
	color: #dce5f7;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	transition: color .2s ease, background .2s ease, transform .2s ease;
}

.lhh-menu > li > a:hover,
.lhh-menu > li.current-menu-item > a,
.lhh-menu > li.current-menu-ancestor > a,
.lhh-menu > li.is-open > a {
	color: #ffffff;
	background: rgba(152, 122, 255, .14);
}

.lhh-submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 34px;
	margin-left: -7px;
	padding: 0;
	color: #aebbd2;
	background: transparent;
	border: 0;
	border-radius: 0;
	cursor: pointer;
}

.lhh-submenu-toggle::before {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform .2s ease;
}

.lhh-menu > li.is-open > .lhh-submenu-toggle::before {
	transform: translateY(2px) rotate(225deg);
}

.lhh-menu .sub-menu {
	position: absolute;
	z-index: 50;
	top: calc(100% + 9px);
	left: 0;
	display: none;
	min-width: 235px;
	padding: 9px;
	background: #0a1629;
	border: 1px solid rgba(186, 169, 255, .34);
	box-shadow: 0 24px 54px rgba(0, 0, 0, .4);
}

.lhh-menu > li.is-open > .sub-menu {
	display: grid;
	gap: 4px;
}

.lhh-menu .sub-menu a {
	display: block;
	padding: 11px 12px;
	color: #dce5f7;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.45;
}

.lhh-menu .sub-menu a:hover {
	color: #ffffff;
	background: rgba(49, 133, 255, .14);
}

.lhh-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.lhh-cart-button,
.lhh-player-button,
.lhh-login-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	border: 1px solid rgba(218, 227, 255, .21);
	clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
	transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.lhh-cart-button {
	gap: 8px;
	padding: 0 11px;
	color: #ffffff;
	background: rgba(255, 255, 255, .055);
}

.lhh-cart-button:hover {
	color: #ffffff;
	background: rgba(152, 122, 255, .16);
	border-color: var(--lhh-violet);
	transform: translateY(-2px);
}

.lhh-cart-button svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.lhh-cart-text {
	font-size: 11px;
	font-weight: 700;
}

.lhh-cart-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	color: var(--lhh-ink);
	background: var(--lhh-orange);
	border: 2px solid var(--lhh-ink);
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
}

.lhh-player-button {
	flex-direction: column;
	align-items: flex-start;
	min-width: 112px;
	padding: 6px 13px;
	color: #ffffff;
	background: linear-gradient(135deg, rgba(135, 104, 255, .29), rgba(40, 127, 247, .17));
	border-color: rgba(166, 141, 255, .46);
}

.lhh-player-button:hover {
	color: #ffffff;
	border-color: #b8a8ff;
	transform: translateY(-2px);
	box-shadow: 0 13px 28px rgba(58, 80, 180, .23);
}

.lhh-player-kicker {
	color: #b8a8ff;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: .1em;
	line-height: 1.2;
	text-transform: uppercase;
}

.lhh-player-button strong {
	display: block;
	max-width: 112px;
	overflow: hidden;
	color: #ffffff;
	font-size: 11px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lhh-login-button {
	padding: 0 17px;
	color: var(--lhh-ink);
	background: linear-gradient(90deg, #c4b6ff, #8ad2ff);
	border-color: transparent;
	font-size: 11px;
	font-weight: 700;
}

.lhh-login-button:hover {
	color: var(--lhh-ink);
	transform: translateY(-2px);
	box-shadow: 0 15px 30px rgba(49, 133, 255, .23);
}

.lhh-mobile-toggle {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 44px;
	height: 44px;
	padding: 0;
	color: #ffffff;
	background: rgba(255, 255, 255, .055);
	border: 1px solid rgba(218, 227, 255, .2);
	border-radius: 0;
	cursor: pointer;
	clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.lhh-mobile-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	transition: transform .2s ease, opacity .2s ease;
}

.lhh-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.lhh-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.lhh-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

.lhh-mobile-panel {
	width: 100%;
	background: linear-gradient(180deg, #0b172b, #06101f);
	border-top: 1px solid rgba(218, 227, 255, .12);
	box-shadow: 0 25px 50px rgba(0, 0, 0, .34);
}

.lhh-mobile-panel[hidden] {
	display: none !important;
}

.lhh-mobile-nav,
.lhh-mobile-account {
	width: min(100% - 28px, 720px);
	margin-inline: auto;
}

.lhh-mobile-nav {
	padding: 15px 0 8px;
}

.lhh-mobile-nav .lhh-menu {
	display: grid;
	gap: 5px;
	width: 100%;
}

.lhh-mobile-nav .lhh-menu > li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
}

.lhh-mobile-nav .lhh-menu > li > a {
	justify-content: flex-start;
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	background: rgba(255, 255, 255, .045);
	border: 1px solid rgba(255, 255, 255, .1);
}

.lhh-mobile-nav .lhh-submenu-toggle {
	width: 48px;
	height: 48px;
	margin: 0;
	background: rgba(152, 122, 255, .1);
	border: 1px solid rgba(255, 255, 255, .1);
}

.lhh-mobile-nav .lhh-menu .sub-menu {
	position: static;
	grid-column: 1 / -1;
	min-width: 0;
	margin: 5px 0 0;
	padding: 5px 0 5px 16px;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.lhh-mobile-account {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	padding: 8px 0 18px;
}

.lhh-mobile-account > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 55px;
	padding: 0 15px;
	color: #ffffff;
	background: rgba(152, 122, 255, .1);
	border: 1px solid rgba(186, 169, 255, .3);
	font-size: 11px;
}

.lhh-mobile-account > a strong {
	color: #ffad7e;
	font-size: 10px;
}

.lhh-mobile-account .lhh-mobile-login {
	justify-content: center;
	grid-column: 1 / -1;
	color: var(--lhh-ink);
	background: linear-gradient(90deg, #c4b6ff, #8ad2ff);
	border-color: transparent;
	font-weight: 700;
}

.lhh-header a:focus-visible,
.lhh-header button:focus-visible {
	outline: 3px solid rgba(139, 220, 255, .78);
	outline-offset: 3px;
}

@media (max-width: 1080px) {
	.lhh-container {
		grid-template-columns: minmax(150px, 1fr) auto;
		min-height: 70px;
	}

	.lhh-desktop-nav {
		display: none;
	}

	.lhh-mobile-toggle {
		display: inline-flex;
	}
}

@media (max-width: 782px) {
	body.admin-bar .lhh-header {
		top: 46px;
	}
}

@media (max-width: 680px) {
	.lhh-container {
		width: min(100% - 22px, 1240px);
		gap: 8px;
	}

	.lhh-logo img {
		width: 38px;
		height: 38px;
	}

	.lhh-logo-text {
		font-size: 16px;
	}

	.lhh-cart-button {
		position: relative;
		width: 43px;
		min-width: 43px;
		padding: 0;
	}

	.lhh-cart-text {
		display: none;
	}

	.lhh-cart-badge {
		position: absolute;
		top: -5px;
		right: -5px;
	}

	.lhh-player-button {
		min-width: 43px;
		width: 43px;
		align-items: center;
		padding: 0;
	}

	.lhh-player-kicker {
		display: none;
	}

	.lhh-player-button strong {
		max-width: 28px;
		font-size: 0;
	}

	.lhh-player-button strong::first-letter {
		font-size: 12px;
	}

	.lhh-login-button {
		min-height: 43px;
		padding: 0 12px;
		font-size: 10px;
	}

	.lhh-mobile-account {
		grid-template-columns: 1fr;
	}

	.lhh-mobile-account .lhh-mobile-login {
		grid-column: auto;
	}
}

@media (max-width: 410px) {
	.lhh-logo-text {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lhh-header *,
	.lhh-header *::before,
	.lhh-header *::after {
		transition: none !important;
	}
}
