html.i18n-pending body{visibility:hidden}

.language-switcher{
  position:relative;
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  z-index:90;
}

.language-switcher__toggle{
  display:grid;
  grid-template-columns:24px minmax(0,1fr) 12px;
  align-items:center;
  column-gap:9px;
  min-width:158px;
  min-height:42px;
  padding:8px 12px;
  border:1px solid rgba(214,176,95,.30);
  border-radius:9px;
  background:rgba(6,15,25,.88);
  color:#d9e5ec;
  font:700 13px/1.1 system-ui,-apple-system,"Segoe UI",sans-serif;
  cursor:pointer;
  white-space:nowrap;
  transition:border-color .2s ease,background .2s ease,box-shadow .2s ease,transform .2s ease;
}

.language-switcher__toggle:hover,
.language-switcher.is-open .language-switcher__toggle{
  border-color:rgba(101,198,255,.58);
  background:rgba(10,27,42,.98);
  box-shadow:0 0 18px rgba(70,174,236,.10);
}

.language-switcher__flag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  min-width:24px;
  color:#efc96d;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  line-height:1;
  text-transform:uppercase;
}

.language-switcher__label{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  text-align:left;
}

.language-switcher__toggle>span:last-child{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:12px;
  font-size:10px;
  opacity:.78;
}

.language-switcher__menu{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  min-width:204px;
  padding:8px;
  border:1px solid rgba(214,176,95,.32);
  border-radius:11px;
  background:rgba(5,13,22,.985);
  box-shadow:0 20px 52px rgba(0,0,0,.48);
  opacity:0;
  visibility:hidden;
  transform:translateY(-6px);
  transition:opacity .16s ease,visibility .16s ease,transform .16s ease;
  overflow:hidden;
}

.language-switcher.is-open .language-switcher__menu{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.language-switcher__menu a{
  display:grid;
  grid-template-columns:24px minmax(0,1fr) 18px;
  align-items:center;
  column-gap:10px;
  min-height:40px;
  padding:9px 10px;
  border-radius:8px;
  color:#bdcbd5;
  text-decoration:none;
  font:700 12px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;
}

.language-switcher__menu a>span:first-child{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  color:#efc96d;
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.language-switcher__menu a>span:nth-child(2){
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.language-switcher__menu a:hover,
.language-switcher__menu a.is-active{
  background:rgba(83,183,238,.13);
  color:#f5d98d;
}

.language-switcher__menu a::after{
  content:"";
  position:static!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  width:18px!important;
  height:18px!important;
  margin:0!important;
  display:grid!important;
  place-items:center;
  justify-self:center;
  align-self:center;
  background:none!important;
  box-shadow:none!important;
  transform:none!important;
  border:0!important;
  color:transparent;
  font-size:14px;
  font-weight:900;
  line-height:1;
}

.language-switcher__menu a:hover::after{
  transform:none!important;
}

.language-switcher__menu a.is-active::after{
  content:"✓";
  color:#62c7ff;
}

.language-switcher--nav{
  margin-left:10px;
  margin-right:2px;
}

.main-nav__account-actions{
  column-gap:10px!important;
}

.language-switcher--admin{margin-right:6px}

@media(max-width:1180px){
  .language-switcher--nav{
    width:100%;
    margin:8px 0 2px;
  }
  .language-switcher--nav .language-switcher__toggle{
    width:100%;
    min-width:0;
  }
  .language-switcher--nav .language-switcher__menu{
    left:0;
    right:auto;
    min-width:100%;
  }
  .main-nav__account-actions{
    gap:7px!important;
  }
}

/* v1.3.0 • language switcher integration with the shared public header.
   This layer loads after the base styles, so it also protects older standalone
   templates that still reference an earlier main.css cache version. */
@media (min-width:1181px){
  .header-inner{width:min(1680px,calc(100% - 28px))!important;gap:14px!important}
  .main-nav{position:static!important;flex:1 1 auto!important;min-width:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;justify-content:stretch!important;gap:10px!important;transform:none!important}
  .main-nav__primary{position:static!important;top:auto!important;left:auto!important;height:auto!important;transform:none!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:nowrap!important;gap:2px!important;white-space:nowrap!important}
  .main-nav__account-actions{position:static!important;margin-left:0!important;min-width:max-content!important;display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:8px!important;white-space:nowrap!important;z-index:3!important}
  .main-nav__primary .nav-live{margin-left:4px!important;margin-right:0!important}
  .language-switcher--nav{margin:0!important}
}
@media (min-width:1181px) and (max-width:1500px){
  .header-inner{width:calc(100% - 20px)!important;gap:9px!important}
  .main-nav{gap:6px!important}
  .main-nav__primary{gap:0!important}
  .main-nav__primary>a,.main-nav__primary .nav-group__toggle{padding-left:5px!important;padding-right:5px!important;font-size:.72rem!important}
  .main-nav__primary .nav-prestige{padding-left:8px!important;padding-right:8px!important}
  .main-nav__primary .nav-live{min-width:96px!important;padding-left:9px!important;padding-right:9px!important}
  .language-switcher__toggle{min-width:132px;grid-template-columns:20px minmax(0,1fr) 10px;column-gap:6px;padding-left:9px;padding-right:9px;font-size:12px}
  .nav-auth,.main-nav__account-actions .nav-account:not(.nav-account--avatar),.main-nav__account-actions .nav-logout{padding-left:10px!important;padding-right:10px!important;font-size:.76rem!important}
}

/* Safety net for registration modals on every public route. */
.checkbox-label input[type="checkbox"],.auth-consent input[type="checkbox"],.panel-form .checkbox-label input[type="checkbox"],.panel-form .auth-consent input[type="checkbox"]{display:block!important;width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;min-height:18px!important;max-height:18px!important;padding:0!important;margin:2px 0 0!important;border:0!important;background:transparent!important;box-shadow:none!important;appearance:auto!important;-webkit-appearance:checkbox!important;accent-color:#d5ae5b;align-self:start!important}
.checkbox-label input[type="checkbox"]:focus,.auth-consent input[type="checkbox"]:focus,.panel-form .checkbox-label input[type="checkbox"]:focus,.panel-form .auth-consent input[type="checkbox"]:focus{border:0!important;background:transparent!important;box-shadow:0 0 0 2px rgba(240,210,141,.20)!important;outline:none!important}
