/* Lounge navigation V2 — compact top-right switcher shared by every surface. */
.lounge-switcher {
  position: fixed;
  z-index: 96;
  top: calc(12px + env(safe-area-inset-top));
  left: calc(50% + min(50vw, 215px) - 56px);
  width: 44px;
  height: 44px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.lounge-switcher__trigger {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 15px;
  color: rgba(255,255,255,.84);
  background: rgba(10,14,35,.72);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 26px rgba(0,0,0,.22);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.lounge-switcher__trigger svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lounge-switcher__trigger:active { transform: scale(.96); }
.lounge-switcher__trigger:focus-visible { outline: 2px solid rgba(122,60,255,.88); outline-offset: 3px; }
.lounge-switcher.is-open .lounge-switcher__trigger {
  border-color: rgba(136,101,255,.5);
  color: #fff;
  background: linear-gradient(135deg, rgba(122,60,255,.94), rgba(47,125,255,.94));
  box-shadow: 0 0 24px rgba(122,60,255,.28), inset 0 1px 0 rgba(255,255,255,.18);
}

.lounge-switcher__panel {
  position: absolute;
  top: 52px;
  right: 0;
  width: min(238px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  color: rgba(255,255,255,.94);
  background:
    radial-gradient(90% 80% at 100% 0, rgba(122,60,255,.14), transparent 62%),
    linear-gradient(145deg, rgba(10,14,35,.96), rgba(5,6,20,.97));
  -webkit-backdrop-filter: blur(26px) saturate(145%);
  backdrop-filter: blur(26px) saturate(145%);
  box-shadow: 0 22px 56px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.06);
  transform-origin: top right;
  animation: lounge-switcher-in .18s ease-out both;
}
.lounge-switcher__panel[hidden] { display: none; }
.lounge-switcher__head {
  min-height: 38px;
  padding: 2px 5px 9px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.lounge-switcher__head span { display: grid; gap: 2px; }
.lounge-switcher__head small { color: rgba(255,255,255,.42); font-size: 9px; font-weight: 650; letter-spacing: .14em; }
.lounge-switcher__head strong { font-size: 14px; font-weight: 720; letter-spacing: -.02em; }
.lounge-switcher__head > i { width: 7px; height: 7px; margin-bottom: 6px; border-radius: 50%; background: #69f4c2; box-shadow: 0 0 10px rgba(105,244,194,.44); }

.lounge-switcher__routes { padding: 7px 0 5px; display: grid; gap: 3px; }
.lounge-switcher__route,
.lounge-switcher__language {
  width: 100%;
  min-height: 48px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: rgba(255,255,255,.7);
  background: transparent;
  text-align: left;
}
.lounge-switcher__route:active,
.lounge-switcher__language:active { transform: scale(.985); }
.lounge-switcher__route:focus-visible,
.lounge-switcher__language:focus-visible { outline: 2px solid rgba(122,60,255,.7); outline-offset: 1px; }
.lounge-switcher__icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
}
.lounge-switcher__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.lounge-switcher__copy { min-width: 0; display: grid; gap: 2px; }
.lounge-switcher__copy b { overflow: hidden; color: rgba(255,255,255,.9); font-size: 12.5px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.lounge-switcher__copy small { overflow: hidden; color: rgba(255,255,255,.42); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.lounge-switcher__route > i {
  width: 6px;
  height: 6px;
  margin-left: auto;
  flex: 0 0 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
}
.lounge-switcher[data-current="home"] [data-lounge-route="home"],
.lounge-switcher[data-current="growth"] [data-lounge-route="growth"],
.lounge-switcher[data-current="backend"] [data-lounge-route="backend"] {
  border-color: rgba(128,106,255,.28);
  color: #fff;
  background: linear-gradient(135deg, rgba(122,60,255,.3), rgba(47,125,255,.2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
}
.lounge-switcher[data-current="home"] [data-lounge-route="home"] .lounge-switcher__icon,
.lounge-switcher[data-current="growth"] [data-lounge-route="growth"] .lounge-switcher__icon,
.lounge-switcher[data-current="backend"] [data-lounge-route="backend"] .lounge-switcher__icon {
  border-color: rgba(151,128,255,.42);
  color: #fff;
  background: rgba(122,60,255,.16);
}
.lounge-switcher[data-current="home"] [data-lounge-route="home"] > i,
.lounge-switcher[data-current="growth"] [data-lounge-route="growth"] > i,
.lounge-switcher[data-current="backend"] [data-lounge-route="backend"] > i { background: #69f4c2; box-shadow: 0 0 9px rgba(105,244,194,.44); }

.lounge-switcher__language {
  min-height: 46px;
  margin-top: 3px;
  border-color: rgba(255,255,255,.08);
  color: rgba(255,255,255,.66);
  background: rgba(255,255,255,.025);
}
.lounge-switcher__language .lounge-switcher__icon { width: 28px; height: 28px; flex-basis: 28px; border-radius: 9px; }
.lounge-switcher__language em {
  min-width: 34px;
  min-height: 24px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(122,60,255,.26);
  border-radius: 999px;
  color: #fff;
  background: rgba(122,60,255,.14);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.phone.is-growth-planet-view .lounge-switcher__trigger { background: rgba(5,9,22,.82); border-color: rgba(122,60,255,.22); }
.phone.is-growth-planet-view .gp-identity-entry { right: 42px !important; }
.phone.is-subpage-view .lounge-switcher__trigger { background: rgba(10,14,35,.94); }
.phone.is-agent-chat-view .lounge-switcher { display: none; }

.lounge-switcher__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@keyframes lounge-switcher-in {
  from { opacity: 0; transform: translateY(-5px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .lounge-switcher__trigger,
  .lounge-switcher__panel { transition: none; animation: none; }
}
