/**
 * MuVictus — UI global: focus, navbar (idioma + user panel), utilidades.
 */

/* Sin recuadro blanco al hacer clic (mantener accesibilidad mínima solo con :focus-visible en teclado) */
a,
button,
input,
select,
textarea,
img,
.buttonDrop,
.panel-active,
.langBlock-active,
.ranking-btn,
.top-button,
.muvictus-class-filter-button,
.muvictus-equip-slot {
	-webkit-tap-highlight-color: transparent;
}

a:focus,
a:active,
button:focus,
button:active,
img:focus,
img:active,
.buttonDrop:focus,
.buttonDrop:active,
.panel-active:focus,
.panel-active:active,
.langBlock-active:focus,
.langBlock-active:active,
.ranking-btn:focus,
.ranking-btn:active,
.top-button:focus,
.top-button:active,
.bright:focus,
.bright:active {
	outline: none !important;
	box-shadow: none !important;
}

.logo a,
.logo img,
.muvictus-logo-wrap a,
.muvictus-logo-wrap img {
	outline: none !important;
	border: none !important;
	box-shadow: none !important;
}

a:focus-visible,
button:focus-visible,
.muvictus-class-filter-button:focus-visible {
	outline: 2px solid rgba(0, 255, 228, 0.45) !important;
	outline-offset: 2px;
}

/* —— Selector de idioma —— */
.langBlock {
	position: relative;
	z-index: 120;
}

.langBlock-active {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 118px;
	height: 52px;
	padding: 0 28px 0 12px;
	border-radius: 10px;
	border: 1px solid rgba(0, 255, 228, 0.22);
	background: linear-gradient(180deg, rgba(4, 28, 48, 0.95) 0%, rgba(2, 18, 32, 0.98) 100%);
	color: #00ffe4;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.langBlock-active:hover,
.langBlock-active.active {
	background: linear-gradient(180deg, rgba(8, 42, 68, 0.98) 0%, rgba(4, 24, 42, 1) 100%);
	border-color: rgba(0, 255, 228, 0.45);
}

.langBlock-active::before {
	right: 12px;
	top: 50%;
	margin-top: -3px;
	border-top-color: #00ffe4;
}

.langBlock-active .lang-icon {
	flex-shrink: 0;
	width: 20px;
	height: 14px;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.langBlock-select {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 220px;
	padding: 8px;
	border-radius: 12px;
	border: 1px solid rgba(0, 255, 228, 0.2);
	background: linear-gradient(165deg, rgba(6, 22, 38, 0.98) 0%, rgba(2, 12, 24, 0.99) 100%);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 180, 255, 0.08);
}

.langBlock-select ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.langBlock-select ul li a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	color: #e8f4ff;
	font-size: 13px;
	font-weight: 500;
	transition: background 0.15s ease, color 0.15s ease;
}

.langBlock-select ul li a:hover {
	background: rgba(0, 255, 228, 0.1);
	color: #00ffe4;
}

.langBlock-select ul li a .lang-icon {
	width: 20px;
	height: 14px;
	margin-right: 0;
}

/* —— User panel —— */
.lkBlock.panel {
	position: relative;
	z-index: 120;
	margin-left: 12px;
}

.lkBlock .panel-active {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	height: 52px;
	margin-top: 0;
	padding: 0 28px 0 12px;
	border-radius: 10px;
	border: 1px solid rgba(0, 255, 228, 0.22);
	background: linear-gradient(180deg, rgba(4, 28, 48, 0.95) 0%, rgba(2, 18, 32, 0.98) 100%);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	transition: border-color 0.2s ease, background 0.2s ease;
	box-sizing: border-box;
}

.lkBlock .panel-active:hover,
.lkBlock .panel-active.active {
	background: linear-gradient(180deg, rgba(8, 42, 68, 0.98) 0%, rgba(4, 24, 42, 1) 100%);
	border-color: rgba(0, 255, 228, 0.45);
}

.lkBlock .panel-active::before {
	right: 12px;
	top: 50%;
	margin-top: -3px;
	border-top-color: #00ffe4;
}

.lkBlock .panel-active img,
.muvictus-user-panel__avatar {
	width: 34px;
	height: 34px;
	margin: 0;
	border-radius: 8px;
	border: 1px solid rgba(0, 255, 228, 0.35);
	object-fit: cover;
	box-shadow: 0 0 12px rgba(0, 200, 255, 0.15);
	flex-shrink: 0;
}

.lkBlock .panel-dropdown {
	right: 0;
	left: auto;
	min-width: 280px;
	padding: 20px 18px 16px;
	border-radius: 12px;
	border: 1px solid rgba(0, 255, 228, 0.2);
	background: linear-gradient(165deg, rgba(6, 22, 38, 0.98) 0%, rgba(2, 12, 24, 0.99) 100%);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 180, 255, 0.08);
}

.lkBlock .panel-dropdown_title {
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(0, 255, 228, 0.15);
	font-size: 14px;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.lkBlock .panel-dropdown_my-block {
	padding: 8px 10px;
	margin-bottom: 8px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(0, 255, 228, 0.12);
	font-size: 13px;
}

.lkBlock .panel-dropdown_my-block span:last-child {
	color: #f8c35c;
}

.lkBlock .panel-dropdown_list {
	margin: 12px 0 16px;
	padding: 0;
	list-style: none;
}

.lkBlock .panel-dropdown_list li {
	margin: 0 0 4px;
}

.lkBlock .panel-dropdown_list li a {
	display: block;
	padding: 9px 10px;
	border-radius: 8px;
	color: #dce8f5;
	font-size: 13px;
	font-weight: 500;
	transition: background 0.15s ease, color 0.15s ease;
}

.lkBlock .panel-dropdown_list li a:hover {
	background: rgba(0, 255, 228, 0.08);
	color: #00ffe4 !important;
}

.lkBlock .panel-dropdown_list li a.color-green {
	color: #b0d90e !important;
}

.lkBlock .panel-dropdown_list li a.color-green:hover {
	color: #d4ff4a !important;
}

.lkBlock .panel-dropdown_button.muvictus-user-panel__logout {
	width: 100%;
	margin-top: 4px;
	padding-top: 4px;
	text-align: center;
}

.lkBlock .panel-dropdown_button .button,
.lkBlock .panel-dropdown_button .muvictus-user-panel__logout-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	padding: 11px 20px;
	border-radius: 8px;
	border: 1px solid rgba(255, 80, 80, 0.4);
	background: linear-gradient(180deg, rgba(80, 20, 20, 0.9) 0%, rgba(40, 8, 8, 0.95) 100%);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.lkBlock .panel-dropdown_button .button:hover,
.lkBlock .panel-dropdown_button .muvictus-user-panel__logout-btn:hover {
	border-color: rgba(255, 120, 120, 0.6);
	background: linear-gradient(180deg, rgba(120, 28, 28, 0.95) 0%, rgba(60, 12, 12, 0.98) 100%);
	color: #fff;
}

.lkBlock .panel-dropdown_list li a.muvictus-user-panel__admin-link {
	color: #dce8f5;
}

.lkBlock .panel-dropdown_list li a.muvictus-user-panel__admin-link:hover {
	color: #00ffe4 !important;
}

/* Franja derecha del header: idioma + login / user panel alineados al centro (90px) */
.header .header-wrapper_right-flex {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: nowrap;
	gap: 8px;
	position: absolute;
	right: 10px;
	top: 0;
	height: 90px;
	margin: 0;
	z-index: 120;
}

.header .header-wrapper_right-flex .langBlock,
.header .header-wrapper_right-flex .lkBlock,
.header .header-wrapper_right-flex .muvictus-user-panel {
	display: flex;
	align-items: center;
	align-self: center;
	height: 52px;
	margin: 0;
	padding: 0;
}

.header .header-wrapper_right-flex .lkBlock.panel {
	margin-left: 0;
}

/* Misma caja visual: idioma + user panel */
.header .header-wrapper_right-flex .langBlock-active,
.header .header-wrapper_right-flex .muvictus-user-panel__toggle {
	box-sizing: border-box;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-start;
	gap: 8px;
	height: 52px !important;
	min-height: 52px !important;
	max-height: 52px !important;
	margin: 0 !important;
	padding: 0 28px 0 12px !important;
	border-radius: 10px;
	border: 1px solid rgba(0, 255, 228, 0.22);
	background: linear-gradient(180deg, rgba(4, 28, 48, 0.95) 0%, rgba(2, 18, 32, 0.98) 100%) !important;
	color: #fff;
	line-height: 1.2;
	vertical-align: middle;
	overflow: hidden;
}

.header .header-wrapper_right-flex .langBlock-active {
	width: auto;
	min-width: 118px;
	cursor: pointer;
}

.header .header-wrapper_right-flex .muvictus-user-panel__toggle {
	min-width: 0;
	cursor: pointer;
}

.header .header-wrapper_right-flex .langBlock-active::before,
.header .header-wrapper_right-flex .muvictus-user-panel__toggle::before {
	top: 50% !important;
	right: 12px !important;
	margin-top: -3px !important;
}

.header .header-wrapper_right-flex .muvictus-user-panel__toggle img,
.header .header-wrapper_right-flex .muvictus-user-panel__avatar {
	width: 34px !important;
	height: 34px !important;
	max-width: 34px !important;
	max-height: 34px !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 8px;
	border: 1px solid rgba(0, 255, 228, 0.35);
	object-fit: cover;
	flex-shrink: 0;
}

.header .header-wrapper_right-flex .muvictus-user-panel__avatar-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex-shrink: 0;
}

.header .header-wrapper_right-flex .langBlock-active .lang-icon {
	flex-shrink: 0;
	margin: 0;
}

.header .header-wrapper_right-flex .langBlock-active__label,
.header .header-wrapper_right-flex .muvictus-user-panel__label {
	white-space: nowrap;
	line-height: 1.2;
}

.header .header-wrapper_right-flex .lkBlock-login {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	margin: 0;
	padding: 0;
}

.header .header-wrapper_right-flex .lkBlock-login .button {
	box-sizing: border-box;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center;
	height: 52px !important;
	min-height: 52px !important;
	max-height: 52px !important;
	width: 133px;
	min-width: 133px;
	margin: 0 !important;
	padding: 0 12px !important;
	line-height: 1.2;
	background-position: center center;
	background-size: 100% 100%;
}

.langBlock-active__label {
	white-space: nowrap;
}

.muvictus-user-panel__avatar-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.muvictus-user-panel__label {
	white-space: nowrap;
}

.muvictus-user-panel__credits {
	display: grid;
	gap: 6px;
	margin-bottom: 12px;
}

.muvictus-user-panel__credit {
	margin-bottom: 0 !important;
}

.muvictus-user-panel__menu {
	border-top: 1px solid rgba(0, 255, 228, 0.1);
	padding-top: 8px;
}

/* Tooltip ítems: ocultar clases legacy Caribe del plugin ItemCore */
#we-prof-itemtip .caribe-wh-tip,
#we-prof-itemtip .muvictus-item-tip {
	display: contents;
}

@media (max-width: 993px) {
	.langBlock-active,
	.lkBlock .panel-active {
		margin-top: 0;
		height: 44px;
		font-size: 12px;
	}

	.langBlock-active {
		min-width: 100px;
		padding-right: 24px;
	}

	.lkBlock .panel-active span {
		display: none;
	}

	.lkBlock .panel-active {
		padding-right: 24px;
	}
}

/* Navbar — dropdown Info */
.header-menu > li.muvictus-nav-dropdown {
	position: relative;
	padding: 0 15px;
	z-index: 130;
}

.header-menu .muvictus-nav-dropdown__toggle {
	display: flex;
	align-items: center;
	position: relative;
	height: 90px;
	color: #ffffff;
	font-size: 16px;
	text-transform: uppercase;
	padding: 0 10px;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	font-family: inherit;
}

.header-menu .muvictus-nav-dropdown__toggle i.header-icon {
	margin-right: 10px;
}

.muvictus-nav-dropdown__caret {
	margin-left: 8px;
	font-size: 11px;
	opacity: 0.75;
	transition: transform 0.2s ease;
}

.muvictus-nav-dropdown.is-open .muvictus-nav-dropdown__caret,
.muvictus-nav-dropdown:hover .muvictus-nav-dropdown__caret {
	transform: rotate(180deg);
}

.header-menu .muvictus-nav-dropdown__toggle:hover,
.header-menu .muvictus-nav-dropdown.is-open .muvictus-nav-dropdown__toggle {
	color: #00ffe4;
}

.header-menu .muvictus-nav-dropdown__menu {
	display: none;
	flex-direction: column;
	align-items: stretch;
	position: absolute;
	top: 100%;
	left: 0;
	right: auto;
	transform: none;
	min-width: 210px;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: #021f38;
	border: 1px solid rgba(0, 216, 255, 0.25);
	border-radius: 0 0 6px 6px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
	z-index: 140;
}

.header-menu .muvictus-nav-dropdown:hover .muvictus-nav-dropdown__menu,
.header-menu .muvictus-nav-dropdown.is-open .muvictus-nav-dropdown__menu {
	display: block;
}

.header-menu .muvictus-nav-dropdown__menu > li {
	padding: 0;
	margin: 0;
	position: static;
}

.header-menu .muvictus-nav-dropdown__menu .muvictus-nav-dropdown__link {
	display: block;
	align-items: flex-start;
	height: auto;
	min-height: 0;
	padding: 11px 20px;
	color: #dce8f5;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
	transition: color 0.2s ease, background 0.2s ease;
}

.header-menu .muvictus-nav-dropdown__menu .muvictus-nav-dropdown__link:before {
	display: none !important;
	content: none !important;
}

.header-menu .muvictus-nav-dropdown__menu .muvictus-nav-dropdown__link i {
	display: none;
}

.header-menu .muvictus-nav-dropdown__menu .muvictus-nav-dropdown__link:hover,
.header-menu .muvictus-nav-dropdown__menu .muvictus-nav-dropdown__link.is-active {
	color: #00d8ff;
	background: rgba(0, 216, 255, 0.08);
}

@media (max-width: 993px) {
	.header-menu > li.muvictus-nav-dropdown {
		width: 100%;
		padding: 0;
	}

	.header-menu .muvictus-nav-dropdown__toggle {
		width: 100%;
		height: auto;
		min-height: 48px;
		justify-content: flex-start;
	}

	.header-menu .muvictus-nav-dropdown__menu {
		position: static;
		left: auto;
		transform: none;
		display: none;
		width: 100%;
		min-width: 0;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: rgba(0, 0, 0, 0.25);
		padding: 0 0 8px;
	}

	.header-menu .muvictus-nav-dropdown:hover .muvictus-nav-dropdown__menu {
		display: none;
	}

	.header-menu .muvictus-nav-dropdown.is-open .muvictus-nav-dropdown__menu {
		display: block;
	}
}
