/* ================================================================
   RelicMU - seletor de idiomas usando a rota nativa /lang/{locale}
   ================================================================ */
body.relic-theme .header__top,
body.relic-theme .header__top .container { overflow: visible !important; }

body.relic-theme .header__social { order: 1 !important; }
body.relic-theme .relic-language--header { order: 2; position: relative; z-index: 10020; }
body.relic-theme .partial-login { order: 3 !important; }

body.relic-theme .relic-language summary { list-style: none; }
body.relic-theme .relic-language summary::-webkit-details-marker { display: none; }

body.relic-theme .relic-language__button {
  height: 36px;
  min-width: 92px;
  padding: 0 10px;
  border: 1px solid rgba(214,168,78,.34);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(25,21,31,.98), rgba(7,7,10,.99));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #eee8df;
  font: 700 10px/1 Rajdhani, sans-serif;
  letter-spacing: .06em;
  cursor: pointer;
  user-select: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.018), 0 8px 20px rgba(0,0,0,.18);
}
body.relic-theme .relic-language__button img,
body.relic-theme .relic-language__option img,
body.relic-theme .relic-mobile-language__item img {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}
body.relic-theme .relic-language__button i { color: #d6a84e; font-size: 8px; transition: transform .2s ease; }
body.relic-theme .relic-language[open] .relic-language__button i { transform: rotate(180deg); }
body.relic-theme .relic-language__button:hover { border-color: rgba(240,198,109,.7); }

body.relic-theme .relic-language__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  padding: 8px;
  border: 1px solid rgba(214,168,78,.28);
  border-radius: 10px;
  background: rgba(7,7,11,.985);
  box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 28px rgba(101,48,148,.08);
  z-index: 10030;
}
body.relic-theme .relic-language__heading {
  padding: 8px 9px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d6a84e;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 4px;
  font: 700 10px/1 Rajdhani,sans-serif;
  text-transform: uppercase;
  letter-spacing: .09em;
}
body.relic-theme .relic-language__option {
  display: grid;
  grid-template-columns: 24px 1fr 14px;
  align-items: center;
  gap: 9px;
  min-height: 35px;
  padding: 0 9px;
  color: #cfc8d1 !important;
  border-radius: 6px;
  text-decoration: none !important;
  font: 600 12px/1 Rajdhani,sans-serif;
}
body.relic-theme .relic-language__option:hover { background: rgba(139,70,202,.12); color: #fff !important; }
body.relic-theme .relic-language__option.is-active {
  color: #f1c86d !important;
  background: linear-gradient(90deg, rgba(214,168,78,.10), rgba(139,70,202,.08));
}
body.relic-theme .relic-language__option > i { color: #46db87; font-size: 10px; }

body.relic-theme .relic-mobile-language {
  margin: 18px 16px 6px;
  padding-top: 15px;
  border-top: 1px solid rgba(214,168,78,.16);
}
body.relic-theme .relic-mobile-language__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #d6a84e;
  font: 700 10px/1 Rajdhani,sans-serif;
  text-transform: uppercase;
  letter-spacing: .10em;
}
body.relic-theme .relic-mobile-language__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
body.relic-theme .relic-mobile-language__item {
  min-width: 0;
  min-height: 37px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 7px;
  background: rgba(255,255,255,.018);
  color: #bbb5c0 !important;
  text-decoration: none !important;
  font: 600 11px/1 Rajdhani,sans-serif;
}
body.relic-theme .relic-mobile-language__item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.relic-theme .relic-mobile-language__item.is-active { border-color: rgba(214,168,78,.48); color: #f1c86d !important; background: rgba(214,168,78,.07); }

@media (max-width: 900px) {
  body.relic-theme .relic-language__button { min-width: 40px; width: 40px; padding: 0; }
  body.relic-theme .relic-language__button > span,
  body.relic-theme .relic-language__button > i { display: none; }
  body.relic-theme .relic-language__button img { width: 24px; height: 16px; }
  body.relic-theme .relic-language__menu { width: 205px; }
}

@media (max-width: 620px) {
  body.relic-theme .relic-language--header { display: none; }
  body.relic-theme .window .sidebar .sidebar__menu {
    max-height: calc(100dvh - 118px) !important;
    padding-bottom: 36px !important;
  }
}
