:root{
  --bg0:#163846;
  --bg1:#2a5666;
  --shell: rgba(255,255,255,.10);
  --shell-strong: rgba(255,255,255,.14);
  --line: rgba(255,255,255,.18);
  --text:#eaf2f6;
  --muted: rgba(234,242,246,.70);
  --accent:#92f0cf;
  --accent-2:#7bd7ff;
  --green:#4ade80;
  --shadow: 0 30px 80px rgba(6,14,20,.45);
  --shadow-soft: 0 12px 30px rgba(6,14,20,.30);
  --r-lg:26px;
  --r-md:18px;
  --r-sm:12px;
  --sideWidth: 260px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  color:var(--text);
  background:
    linear-gradient(180deg, rgba(10,20,28,.35), rgba(16,32,42,.45)),
    url("./assets/bg2.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px;
}

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800;900&family=Sora:wght@600;700;800&display=swap");

.bgScene{
  position:fixed;
  inset:0;
  background:
    radial-gradient(1200px 900px at 10% 20%, rgba(123,215,255,.18), transparent 60%),
    radial-gradient(1200px 900px at 70% 40%, rgba(146,240,207,.22), transparent 60%);
  filter: blur(2px);
  transition: opacity .2s ease;
  pointer-events:none;
}

.waveLoader{
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6,14,20,.34);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: waveLoaderOut .34s ease 1s forwards;
}
.waveRunner{
  position: relative;
  width: 146px;
  height: 146px;
  display: grid;
  place-items: center;
}
.waveRunner::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 84px;
  height: 14px;
  border-radius: 999px;
  background: rgba(6,14,20,.38);
  filter: blur(2px);
  transform: translateX(-50%);
  transform-origin: center;
  opacity: .24;
  animation: none;
}
.waveLogo{
  width: clamp(100px, 19vw, 126px);
  height: clamp(100px, 19vw, 126px);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
  opacity: .72;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(6,14,20,.42));
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  will-change: transform;
  animation: logoSpin 2.2s linear infinite;
}

.shell{
  position:relative;
  width: 100%;
  height: min(880px, 88vh);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--shell-strong), var(--shell));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display:grid;
  grid-template-columns: var(--sideWidth) 1fr;
  gap: 16px;
  padding: 16px;
  overflow:hidden;
  transition: opacity .2s ease, transform .2s ease, filter .2s ease;
}
.dashboardWrap{
  width: min(1280px, 96vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

body.locked{
  background:
    radial-gradient(130% 110% at 0% 0%, rgba(67,95,140,.30) 0%, transparent 48%),
    radial-gradient(120% 90% at 100% 100%, rgba(66,130,168,.20) 0%, transparent 56%),
    linear-gradient(180deg, rgba(10,20,28,.42), rgba(16,32,42,.56)),
    url("./assets/bg2.jpg");
  background-size: auto, auto, cover, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
}

body.locked .bgScene{
  opacity: 0;
}

body.locked .shell{
  opacity: 0;
  filter: none;
  transform: scale(0.985);
  pointer-events: none;
  user-select: none;
}

.tokenGate{
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6,14,20,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 50;
}
.tokenGate.open{ display:flex; }
body.locked .tokenGate{
  position: fixed;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(130% 110% at 0% 0%, rgba(67,95,140,.34) 0%, transparent 48%),
    radial-gradient(120% 90% at 100% 100%, rgba(66,130,168,.22) 0%, transparent 56%),
    linear-gradient(180deg, rgba(8,16,25,.56), rgba(13,25,37,.68)),
    url("./assets/bg2.jpg");
  background-size: auto, auto, cover, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.tokenCard{
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: min(430px, 94vw);
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, #121824 0%, #0d131d 58%, #0a1018 100%);
  border: 1px solid rgba(162,188,227,.24);
  box-shadow:
    0 40px 90px rgba(0,0,0,.62),
    0 0 0 1px rgba(121,161,230,.08),
    0 0 42px rgba(61,113,207,.18);
  display:flex;
  flex-direction:column;
  gap: 0;
  transform-origin: center top;
  animation: tokenCardIn .42s cubic-bezier(.2,.9,.2,1) both;
}
.tokenCard::before{
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 29px;
  border: 1px solid rgba(182,206,243,.1);
  z-index: 0;
  pointer-events: none;
}
.tokenCard::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 88% at 50% -35%, rgba(150,189,255,.2), transparent 44%);
  z-index: 0;
  pointer-events: none;
}
.tokenCard > *{
  position: relative;
  z-index: 1;
}
.tokenHead{
  position: relative;
  padding: 34px 26px 58px;
  text-align: center;
  background: linear-gradient(118deg, rgba(37,54,84,.96) 0%, rgba(25,36,58,.98) 46%, rgba(16,24,40,.99) 100%);
  border-bottom: 1px solid rgba(140,168,214,.24);
  overflow: hidden;
}
.tokenHead::before{
  content: "";
  position: absolute;
  left: -16%;
  right: -16%;
  top: -98px;
  height: 220px;
  background: radial-gradient(72% 86% at 50% 0%, rgba(129,177,255,.42), rgba(129,177,255,0) 72%);
  pointer-events: none;
}
.tokenHead::after{
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 15px;
  height: 1px;
  background: linear-gradient(90deg, rgba(145,177,232,0), rgba(145,177,232,.58), rgba(145,177,232,0));
}
.tokenHeadWave{
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(140,166,211,0), rgba(140,166,211,.76), rgba(113,213,208,.84), rgba(140,166,211,0));
  box-shadow: 0 0 24px rgba(94,166,222,.45);
}
.tokenHeadWave::before,
.tokenHeadWave::after{
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d9e8ff;
  box-shadow: 0 0 10px rgba(158,201,255,.76);
  transform: translateY(-50%);
}
.tokenHeadWave::before{
  left: 18%;
}
.tokenHeadWave::after{
  right: 18%;
}
.tokenBrand{
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 420px);
  margin: 0 auto;
  align-self: center;
  line-height: 1;
}
.tokenBrandText{
  display: inline-block;
  font-family: "Sora", "Manrope", "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: clamp(26px, 6.8vw, 40px);
  letter-spacing: .08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #f8fbff 0%, #d8e6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 24px rgba(8,18,35,.45);
}
.tokenEq{
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 28px;
  flex: 0 0 auto;
}
.tokenEqRight{
  transform: scaleX(-1);
}
.tokenEqBar{
  width: 5px;
  height: 10px;
  border-radius: 999px;
  transform-origin: center bottom;
  background: linear-gradient(180deg, rgba(238,247,255,.96), rgba(140,226,227,.92));
  box-shadow: 0 0 10px rgba(129,201,255,.44);
  animation: tokenEqBounce 1.05s ease-in-out infinite;
}
.tokenEq .tokenEqBar:nth-child(1){
  animation-delay: .02s;
}
.tokenEq .tokenEqBar:nth-child(2){
  animation-delay: .16s;
}
.tokenEq .tokenEqBar:nth-child(3){
  animation-delay: .28s;
}
.tokenEq .tokenEqBar:nth-child(4){
  animation-delay: .12s;
}
.tokenEq .tokenEqBar:nth-child(5){
  animation-delay: .24s;
}
.tokenEqRight .tokenEqBar:nth-child(1){
  animation-delay: .34s;
}
.tokenEqRight .tokenEqBar:nth-child(2){
  animation-delay: .10s;
}
.tokenEqRight .tokenEqBar:nth-child(3){
  animation-delay: .22s;
}
.tokenEqRight .tokenEqBar:nth-child(4){
  animation-delay: .04s;
}
.tokenEqRight .tokenEqBar:nth-child(5){
  animation-delay: .18s;
}
.tokenSubtitle{
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(245,250,255,.86);
  line-height: 1.1;
}
.tokenHint{
  color: rgba(211,223,244,.74);
  font-size: 12px;
}
.tokenIntro{
  text-align: center;
  margin: 0;
  letter-spacing: .02em;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(214,226,247,.78);
}
.guestLoginSection{
  display:flex;
  flex-direction:column;
  gap: 12px;
  padding: 22px 22px 10px;
}
.authModeRow{
  display:flex;
  justify-content:center;
  margin-top: 2px;
}
.authSwitchBtn{
  border: none;
  background: transparent;
  color: rgba(201,220,248,.86);
  font-family: "Sora", "Manrope", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(152,193,245,.55);
}
.authSwitchBtn:hover{
  color: rgba(229,240,255,.96);
  text-decoration-color: rgba(198,224,255,.78);
}
.tokenField{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tokenFieldLabel{
  font-family: "Sora", "Manrope", "Segoe UI", sans-serif;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(178,199,232,.82);
  text-align: center;
}
.tokenRow{
  display:flex;
  width: 100%;
}
.tokenNameRow{
  position: relative;
  align-items: stretch;
  gap: 0;
}
.tokenNameRow .guestAvatarPicker{
  position: absolute;
  top: 50%;
  right: 6px;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  z-index: 1;
  transform: translateY(-50%);
}
.tokenCard .tokenRow .input{
  flex: 1;
  height: 46px;
  border-radius: 13px;
  border: 1px solid rgba(138,163,203,.3);
  background: linear-gradient(180deg, rgba(10,16,25,.93), rgba(9,14,22,.92));
  color: #eff4ff;
  padding: 0 14px;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    inset 0 -16px 24px rgba(0,0,0,.24);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.tokenCard .tokenNameRow .input{
  padding-left: 44px;
  padding-right: 44px;
}
.tokenCard .tokenRow .input::placeholder{
  color: rgba(175,195,224,.48);
}
.tokenCard .tokenRow .input:hover{
  border-color: rgba(166,191,229,.45);
}
.tokenCard .tokenRow .input:focus{
  outline: none;
  border-color: rgba(126,173,255,.82);
  background: linear-gradient(180deg, rgba(12,19,30,.98), rgba(9,16,26,.98));
  box-shadow:
    0 0 0 3px rgba(95,137,222,.24),
    inset 0 1px 0 rgba(255,255,255,.08);
}
.guestAvatarPicker{
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  border: 1px solid rgba(138,163,203,.34);
  background: linear-gradient(180deg, rgba(19,29,45,.96), rgba(13,21,34,.95));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.guestAvatarPicker:hover{
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(27,40,60,.98), rgba(17,28,44,.96));
  border-color: rgba(176,201,236,.5);
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
}
.tokenNameRow .guestAvatarPicker:hover{
  transform: translateY(calc(-50% - 1px));
}
.guestAvatarIcon{
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(225,238,255,.92);
}
.guestAvatarIcon svg{
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.guestAvatarPreview{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.tokenActionRow{
  display:flex;
  width: 100%;
}
.guestActionRow{
  margin-top: 2px;
}
.tokenActionBtn{
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}
.tokenCard .tokenPrimaryBtn{
  height: 46px;
  border-radius: 13px;
  font-family: "Sora", "Manrope", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #8cc7ff 0%, #74a8ff 42%, #5ee0c8 100%);
  border-color: rgba(199,226,255,.62);
  color: #08162d;
  box-shadow: 0 12px 24px rgba(53,116,224,.36);
}
.tokenCard .tokenPrimaryBtn:hover{
  background: linear-gradient(135deg, #9fd3ff 0%, #85b7ff 42%, #71e9d2 100%);
  border-color: rgba(220,238,255,.82);
  box-shadow: 0 16px 28px rgba(57,122,227,.45);
}
.tokenCard .tokenSecondaryBtn{
  height: 46px;
  border-radius: 13px;
  font-family: "Sora", "Manrope", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(18,28,43,.88), rgba(13,20,32,.9));
  border: 1px solid rgba(150,178,220,.32);
  color: rgba(233,243,255,.95);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.tokenCard .tokenSecondaryBtn:hover{
  background: linear-gradient(180deg, rgba(28,41,61,.94), rgba(18,29,44,.95));
  border-color: rgba(182,210,247,.48);
}
.authSection.localAuthDisabled{
  opacity: .72;
}
.oauthSection{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 22px 20px;
}
.tokenDivider{
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(174,196,231,.66);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.tokenDivider::before,
.tokenDivider::after{
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: linear-gradient(90deg, rgba(164,191,255,.04), rgba(164,191,255,.34), rgba(164,191,255,.04));
}
.tokenCard .tokenOauthBtn{
  width: 100%;
  height: 46px;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(18,28,43,.88), rgba(13,20,32,.9));
  border: 1px solid rgba(150,178,220,.32);
  color: rgba(233,243,255,.95);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.tokenCard .tokenOauthBtn:hover{
  background: linear-gradient(180deg, rgba(28,41,61,.94), rgba(18,29,44,.95));
  border-color: rgba(182,210,247,.48);
}
.tokenOauthIcon{
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.tokenOauthIcon svg{
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.oauthHint{
  min-height: 14px;
  margin-top: 0;
}
.tokenCopyright{
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: .02em;
  color: rgba(198,216,244,.78);
}
.themeToggleRow{
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(145,172,212,.28);
  background: linear-gradient(180deg, rgba(14,22,34,.76), rgba(10,17,27,.74));
}
.themeToggleText{
  font-family: "Sora", "Manrope", "Segoe UI", sans-serif;
  font-size: 11px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: rgba(188,207,239,.8);
}
.themeToggleSwitch{
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
}
.themeToggleInput{
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.themeToggleKnob{
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(79,98,137,.54);
  border: 1px solid rgba(152,179,223,.42);
  transition: background .2s ease, border-color .2s ease;
}
.themeToggleKnob::before{
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #eef4ff;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
  transition: transform .2s ease;
}
.themeToggleInput:checked + .themeToggleKnob{
  background: linear-gradient(135deg, #8cc7ff 0%, #74a8ff 42%, #5ee0c8 100%);
  border-color: rgba(211,233,255,.56);
}
.themeToggleInput:checked + .themeToggleKnob::before{
  transform: translateX(18px);
}
.themeToggleInput:focus-visible + .themeToggleKnob{
  outline: 2px solid rgba(184,209,255,.85);
  outline-offset: 2px;
}
.tokenError{
  display:none;
  margin: 0 22px 22px;
  padding: 10px 11px;
  border-radius: 11px;
  background: rgba(255,116,116,.16);
  border: 1px solid rgba(255,136,136,.42);
  color: #ffd8d8;
  font-size: 12px;
}

@keyframes tokenCardIn{
  from{
    opacity: 0;
    transform: translateY(14px) scale(.98);
  }
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tokenEqBounce{
  0%, 100%{
    transform: scaleY(.34);
    opacity: .54;
  }
  22%{
    transform: scaleY(1);
    opacity: 1;
  }
  46%{
    transform: scaleY(.46);
    opacity: .68;
  }
  64%{
    transform: scaleY(.86);
    opacity: .96;
  }
  82%{
    transform: scaleY(.56);
    opacity: .72;
  }
}

@keyframes logoJump{
  0%, 100%{
    transform: translate3d(0, 0, 0) scale(1);
  }
  22%{
    transform: translate3d(0, 0, 0) scale(1.02, .98);
  }
  52%{
    transform: translate3d(0, -18px, 0) scale(.98, 1.02);
  }
  72%{
    transform: translate3d(0, 0, 0) scale(1);
  }
  84%{
    transform: translate3d(0, -6px, 0) scale(.995, 1.005);
  }
}

@keyframes logoSpin{
  from{
    transform: translateZ(0) rotate(0turn);
  }
  to{
    transform: translateZ(0) rotate(1turn);
  }
}

@keyframes logoShadowBounce{
  0%, 100%{
    opacity: .36;
    transform: translateX(-50%) scaleX(1);
  }
  52%{
    opacity: .14;
    transform: translateX(-50%) scaleX(.74);
  }
}

@keyframes waveLoaderOut{
  to{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce){
  .waveLoader{
    animation-duration: .01ms;
    animation-delay: 1s;
  }
  .tokenEqBar{
    animation: none !important;
    transform: scaleY(.7);
  }
  .waveLogo,
  .waveRunner::after{
    animation: none;
  }
}

body.theme-glass .tokenCard{
  width: min(398px, 92vw);
  min-height: 0;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: var(--shadow);
}
body.theme-glass .tokenHead{
  padding: 10px 18px 8px;
  background: transparent;
}
body.theme-glass .tokenHeadTop{
  display: flex;
  flex-direction: column;
  gap: 5px;
}
body.theme-glass .tokenHead::before,
body.theme-glass .tokenHead::after,
body.theme-glass .tokenHeadWave{
  display: none;
}
body.theme-glass .tokenBrand{
  width: min(100%, 360px);
  gap: 10px;
}
body.theme-glass .tokenBrandText{
  font-size: clamp(24px, 6.4vw, 34px);
  letter-spacing: .1em;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--text);
  text-shadow: 0 8px 18px rgba(6,14,20,.24);
}
body.theme-glass .tokenEq{
  height: 22px;
  gap: 3px;
}
body.theme-glass .tokenEqBar{
  width: 4px;
  background: linear-gradient(180deg, rgba(243,249,255,.98), rgba(123,215,255,.86));
  box-shadow: 0 0 9px rgba(123,215,255,.34);
}
body.theme-glass .tokenSubtitle{
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: .14em;
}
body.theme-glass .tokenSubtitle::before,
body.theme-glass .tokenSubtitle::after{
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.4), rgba(255,255,255,0));
}
body.theme-glass .tokenHeadDesc,
body.theme-glass .tokenHeadPoints{
  display: none;
}
body.theme-glass .guestLoginSection{
  gap: 16px;
  padding: 16px 20px 14px;
}
body.theme-glass .tokenField{
  gap: 9px;
}
body.theme-glass .guestLoginSection .tokenField + .tokenField{
  margin-top: 0;
}
body.theme-glass .guestActionRow{
  margin-top: 14px;
}
body.theme-glass .oauthSection{
  gap: 10px;
  padding: 8px 20px 12px;
}
body.theme-glass .tokenCard .tokenRow .input{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: var(--text);
}
body.theme-glass .tokenCard .tokenRow .input::placeholder{
  color: rgba(233,242,247,.6);
}
body.theme-glass .guestAvatarPicker{
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.11);
}
body.theme-glass .guestAvatarPicker:hover{
  background: rgba(255,255,255,.18);
}
body.theme-glass .tokenCard .tokenPrimaryBtn{
  background: linear-gradient(135deg, rgba(146,240,207,.85), rgba(123,215,255,.65));
  border-color: rgba(123,215,255,.55);
  color: #0b1c26;
}
body.theme-glass .tokenCard .tokenPrimaryBtn:hover{
  background: linear-gradient(135deg, rgba(162,247,219,.9), rgba(141,226,255,.75));
}
body.theme-glass .tokenCard .tokenOauthBtn{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
  color: var(--text);
}
body.theme-glass .tokenCard .tokenOauthBtn:hover{
  background: rgba(255,255,255,.18);
}
body.theme-glass .tokenCopyright{
  color: rgba(235,243,247,.78);
}
body.theme-glass .tokenDivider{
  color: rgba(234,242,246,.70);
}
body.theme-glass .tokenDivider::before,
body.theme-glass .tokenDivider::after{
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.4), rgba(255,255,255,0));
}
body.theme-glass .themeToggleRow{
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
}
body.theme-glass .themeToggleText{
  color: var(--muted);
}
body.theme-glass .themeToggleKnob{
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.28);
}
body.theme-glass .themeToggleInput:checked + .themeToggleKnob{
  background: linear-gradient(135deg, rgba(146,240,207,.85), rgba(123,215,255,.65));
}
body.theme-glass .dashThemeToggle{
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
}
body.theme-glass .dashThemeToggleText{
  color: var(--muted);
}

body:not(.theme-glass){
  --bg0:#08101d;
  --bg1:#0f1f34;
  --text:#edf3ff;
  --muted: rgba(210,223,245,.68);
  --accent:#9eb5ff;
  --accent-2:#7392ff;
  --shadow: 0 34px 90px rgba(2,7,13,.62);
  --shadow-soft: 0 16px 34px rgba(2,7,13,.45);
}
body:not(.theme-glass) .bgScene{
  background:
    radial-gradient(980px 740px at 8% 12%, rgba(116,154,255,.20), transparent 62%),
    radial-gradient(980px 740px at 90% 88%, rgba(84,127,226,.18), transparent 64%);
  filter: blur(3px);
}
body:not(.theme-glass) .shell{
  background: linear-gradient(180deg, rgba(7,15,28,.95), rgba(4,10,20,.95));
  border-color: rgba(124,160,232,.30);
  box-shadow: 0 38px 96px rgba(2,7,13,.64);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body:not(.theme-glass) .sidebar{
  border-right-color: rgba(114,148,217,.24);
}
body:not(.theme-glass) .brand{
  border-bottom-color: rgba(114,148,217,.24);
}
body:not(.theme-glass) .rightCol{
  border-left-color: rgba(114,148,217,.24);
}
body:not(.theme-glass) .topbar{
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(114,148,217,.2);
}
body:not(.theme-glass) .statusPill,
body:not(.theme-glass) .authUser{
  background: rgba(10,21,37,.88);
  border-color: rgba(118,154,228,.34);
}
body:not(.theme-glass) .dashThemeToggle{
  border-color: rgba(118,154,228,.34);
  background: rgba(10,21,37,.88);
}
body:not(.theme-glass) .queuePanel,
body:not(.theme-glass) .hero,
body:not(.theme-glass) .playerPanel,
body:not(.theme-glass) .commandBar,
body:not(.theme-glass) .settingsCard,
body:not(.theme-glass) .eqPanel{
  background: linear-gradient(180deg, rgba(9,19,33,.92), rgba(6,14,25,.92));
  border-color: rgba(118,154,228,.28);
  box-shadow: 0 12px 26px rgba(2,8,15,.34);
}
body:not(.theme-glass) .rightCol .commandBar,
body:not(.theme-glass) .noticePanel{
  background: transparent;
  border: none;
  box-shadow: none;
}
body:not(.theme-glass) .input,
body:not(.theme-glass) .btn,
body:not(.theme-glass) .ctl,
body:not(.theme-glass) .menuBtn,
body:not(.theme-glass) .item,
body:not(.theme-glass) .presenceItem,
body:not(.theme-glass) .badge,
body:not(.theme-glass) .idx,
body:not(.theme-glass) .infoBox,
body:not(.theme-glass) .toast{
  background: rgba(8,17,31,.86);
  border-color: rgba(118,154,228,.31);
}
body:not(.theme-glass) .input::placeholder{
  color: rgba(197,214,244,.48);
}
body:not(.theme-glass) .btn:hover,
body:not(.theme-glass) .ctl:hover,
body:not(.theme-glass) .menuBtn:hover,
body:not(.theme-glass) .queueSidebar .item:not(.menuOpen):hover{
  background: rgba(17,32,56,.95);
  border-color: rgba(150,182,247,.45);
}
body:not(.theme-glass) .btnAccent{
  background: linear-gradient(135deg, #93abff 0%, #7594ff 100%);
  border-color: rgba(200,216,255,.5);
  color: #10203c;
}
body:not(.theme-glass) .fill{
  background: linear-gradient(90deg, #99b1ff, #6f90ff);
}
body:not(.theme-glass) .bar{
  background: rgba(10,20,36,.9);
  border-color: rgba(118,154,228,.34);
}
body:not(.theme-glass) .presenceItem.hasActivity{
  border-color: rgba(125,211,252,.62);
  background: rgba(18,40,74,.78);
}
body:not(.theme-glass) .presenceItem.isGuest{
  border-color: rgba(128,190,255,.5);
  background: rgba(18,40,66,.75);
}
body:not(.theme-glass) .presenceContextMenu{
  border-color: rgba(118,154,228,.4);
  background: rgba(8,16,29,.96);
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
body:not(.theme-glass) .list::-webkit-scrollbar-thumb{
  background: rgba(150,183,248,.56);
}
body:not(.theme-glass) .toastIcon{
  background: rgba(18,35,58,.95);
}
body:not(.theme-glass):not(.locked) .tokenGate{
  background: rgba(4,10,18,.66);
}

/* Immersive start screen redesign (modern theme) */
body.locked:not(.theme-glass){
  background:
    radial-gradient(1200px 640px at -12% -10%, rgba(101,160,255,.42), transparent 60%),
    radial-gradient(860px 540px at 110% 8%, rgba(255,116,198,.24), transparent 62%),
    radial-gradient(980px 520px at 102% 112%, rgba(80,242,218,.22), transparent 66%),
    linear-gradient(145deg, #171822 0%, #10151d 46%, #0b0f15 100%);
}
body.locked:not(.theme-glass) .tokenGate{
  position: fixed;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
  padding: clamp(18px, 4vw, 34px);
}
body.locked:not(.theme-glass) .tokenGate::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1100px, 120vw);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  background:
    conic-gradient(from 0deg at 50% 50%, rgba(109,161,255,0) 0deg, rgba(109,161,255,.35) 55deg, rgba(255,120,196,.30) 120deg, rgba(90,244,219,.26) 180deg, rgba(255,184,107,.24) 255deg, rgba(109,161,255,.30) 320deg, rgba(109,161,255,0) 360deg);
  filter: blur(70px) saturate(1.15);
  opacity: .72;
  animation: gateAuraSpin 13s linear infinite, gateAuraPulse 4.8s ease-in-out infinite alternate;
  pointer-events: none;
}
body.locked:not(.theme-glass) .tokenGate::after{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(175,201,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(175,201,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,.48), transparent 72%);
  opacity: .3;
  pointer-events: none;
}
body.locked:not(.theme-glass) .tokenCard{
  width: min(980px, 95vw);
  height: min(620px, 92vh);
  max-height: 92vh;
  min-height: min(620px, 92vh);
  border-radius: 34px;
  background: linear-gradient(160deg, rgba(23,29,48,.985) 0%, rgba(14,20,34,.98) 52%, rgba(10,14,24,.98) 100%);
  border: 1px solid rgba(150,188,248,.36);
  box-shadow:
    0 44px 90px rgba(0,0,0,.64),
    0 0 0 1px rgba(186,211,250,.14),
    0 0 60px rgba(84,146,255,.2),
    0 0 42px rgba(255,120,196,.12);
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(360px, 1fr);
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "head form"
    "head oauth"
    "head error";
  transform-origin: center;
  animation: gateCardIn .72s cubic-bezier(.2,.9,.2,1) both;
}
body.locked:not(.theme-glass) .tokenCard::before{
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(210,226,253,.14);
  background:
    radial-gradient(92% 68% at 12% -10%, rgba(125,182,255,.28), transparent 52%),
    radial-gradient(84% 56% at 88% 0%, rgba(255,128,201,.18), transparent 56%),
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 24%);
}
body.locked:not(.theme-glass) .tokenCard::after{
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(125,177,255,.2), rgba(125,177,255,0) 24%),
    linear-gradient(120deg, rgba(255,121,199,.15), rgba(255,121,199,0) 48%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0) 38%);
}
body.locked:not(.theme-glass) .tokenHead{
  grid-area: head;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 34px 30px 30px;
  border-right: 1px solid rgba(150,188,248,.26);
  border-bottom: none;
  background: linear-gradient(178deg, rgba(41,63,101,.92) 0%, rgba(44,41,90,.94) 54%, rgba(22,31,56,.96) 100%);
  animation: gateHeadIn .78s cubic-bezier(.2,.9,.2,1) .08s both;
}
body.locked:not(.theme-glass) .tokenHead::before{
  left: -20%;
  right: -20%;
  top: -90px;
  height: 240px;
  background: radial-gradient(78% 90% at 50% 4%, rgba(170,206,255,.52), rgba(170,206,255,0) 74%);
}
body.locked:not(.theme-glass) .tokenHead::after{
  left: 30px;
  right: 30px;
  bottom: 16px;
  background: linear-gradient(90deg, rgba(145,177,232,0), rgba(145,177,232,.64), rgba(255,141,205,.64), rgba(112,223,219,.72), rgba(145,177,232,0));
}
body.locked:not(.theme-glass) .tokenHeadTop{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body.locked:not(.theme-glass) .tokenBrand{
  width: min(100%, 520px);
  gap: 14px;
}
body.locked:not(.theme-glass) .tokenBrandText{
  font-size: clamp(36px, 5.3vw, 60px);
  letter-spacing: .1em;
  background: linear-gradient(96deg, #ffffff 0%, #dbe6ff 34%, #d5f4ff 62%, #f1d9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 26px rgba(18,32,62,.45);
}
body.locked:not(.theme-glass) .tokenEq{
  height: 36px;
}
body.locked:not(.theme-glass) .tokenEqBar{
  background: linear-gradient(180deg, #ffffff 0%, #d7e5ff 46%, #9ee6f5 100%);
  box-shadow: 0 0 14px rgba(129,177,255,.52);
}
body.locked:not(.theme-glass) .tokenSubtitle{
  margin-top: 0;
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(187,214,255,.5);
  background: linear-gradient(135deg, rgba(16,27,45,.46), rgba(34,30,67,.42));
  color: rgba(225,238,255,.9);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}
body.locked:not(.theme-glass) .tokenHeadDesc{
  margin: 0;
  color: rgba(214,228,248,.8);
  font-size: 13px;
  line-height: 1.55;
  max-width: 28ch;
}
body.locked:not(.theme-glass) .tokenHeadPoints{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  width: 100%;
}
body.locked:not(.theme-glass) .tokenHeadPoints li{
  position: relative;
  padding-left: 20px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(213,229,252,.86);
}
body.locked:not(.theme-glass) .tokenHeadPoints li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #95d3ff, #ff9edd, #74efda);
  box-shadow: 0 0 14px rgba(140,210,245,.72);
  transform: translateY(-50%);
}
body.locked:not(.theme-glass) .tokenHeadWave{
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, rgba(140,166,211,0), rgba(158,190,246,.6), rgba(255,141,205,.62), rgba(113,229,220,.72), rgba(140,166,211,0));
  box-shadow: 0 0 24px rgba(115,187,242,.38);
}
body.locked:not(.theme-glass) .tokenHeadWave::before,
body.locked:not(.theme-glass) .tokenHeadWave::after{
  display: none;
}
body.locked:not(.theme-glass) .guestLoginSection{
  grid-area: form;
  padding: 34px 34px 16px;
  gap: 14px;
  align-self: start;
  animation: gatePanelIn .58s cubic-bezier(.2,.9,.2,1) .18s both;
}
body.locked:not(.theme-glass) .tokenIntro{
  text-align: left;
  font-size: 13px;
  letter-spacing: .01em;
  color: rgba(211,224,248,.84);
}
body.locked:not(.theme-glass) .tokenFieldLabel{
  text-align: left;
  font-size: 10px;
  letter-spacing: .15em;
  color: rgba(193,215,247,.9);
}
body.locked:not(.theme-glass) .tokenCard .tokenRow .input{
  text-align: left;
  padding: 0 14px;
  border-color: rgba(151,183,235,.46);
  background: linear-gradient(180deg, rgba(13,19,31,.95), rgba(10,15,25,.95));
}
body.locked:not(.theme-glass) .tokenCard .tokenRow .input:hover{
  border-color: rgba(183,214,255,.58);
}
body.locked:not(.theme-glass) .tokenCard .tokenRow .input:focus{
  border-color: rgba(133,193,255,.95);
  box-shadow:
    0 0 0 3px rgba(104,167,255,.26),
    0 0 20px rgba(128,207,255,.24),
    inset 0 1px 0 rgba(255,255,255,.08);
}
body.locked:not(.theme-glass) .tokenCard .tokenNameRow .input{
  padding-left: 14px;
  padding-right: 44px;
}
body.locked:not(.theme-glass) .tokenNameRow .guestAvatarPicker{
  right: 7px;
  border-color: rgba(155,186,237,.44);
  background: linear-gradient(180deg, rgba(28,35,58,.96), rgba(16,22,38,.95));
}
body.locked:not(.theme-glass) .tokenNameRow .guestAvatarPicker:hover{
  border-color: rgba(201,225,255,.62);
  background: linear-gradient(180deg, rgba(40,50,78,.98), rgba(22,32,54,.96));
  box-shadow: 0 9px 18px rgba(72,124,220,.24);
}
body.locked:not(.theme-glass) .tokenCard .tokenPrimaryBtn{
  height: 48px;
  letter-spacing: .12em;
  background: linear-gradient(135deg, #88f4ff 0%, #7eb7ff 42%, #b78eff 100%);
  border-color: rgba(228,240,255,.74);
  color: #071525;
  box-shadow:
    0 14px 26px rgba(74,137,255,.4),
    0 0 0 1px rgba(233,244,255,.22);
  animation: gateCtaGlow 4.2s ease-in-out infinite;
}
body.locked:not(.theme-glass) .tokenCard .tokenPrimaryBtn:hover{
  background: linear-gradient(135deg, #9cfcff 0%, #90c6ff 42%, #c5a3ff 100%);
  border-color: rgba(239,247,255,.88);
}
body.locked:not(.theme-glass) .oauthSection{
  grid-area: oauth;
  padding: 8px 34px 24px;
  gap: 12px;
  animation: gatePanelIn .56s cubic-bezier(.2,.9,.2,1) .34s both;
}
body.locked:not(.theme-glass) .tokenDivider{
  margin-top: 2px;
  color: rgba(190,213,247,.8);
}
body.locked:not(.theme-glass) .tokenDivider::before,
body.locked:not(.theme-glass) .tokenDivider::after{
  background: linear-gradient(90deg, rgba(255,135,205,.06), rgba(150,193,255,.44), rgba(117,233,219,.28), rgba(255,135,205,.06));
}
body.locked:not(.theme-glass) .tokenCard .tokenOauthBtn{
  height: 48px;
  font-family: "Sora", "Manrope", "Segoe UI", sans-serif;
  font-size: 13px;
  letter-spacing: .02em;
  background: linear-gradient(180deg, rgba(27,35,59,.9), rgba(17,24,41,.93));
  border-color: rgba(164,192,240,.45);
}
body.locked:not(.theme-glass) .tokenCard .tokenOauthBtn:hover{
  background: linear-gradient(180deg, rgba(38,51,82,.94), rgba(24,34,58,.95));
  border-color: rgba(208,228,255,.66);
  box-shadow: 0 12px 24px rgba(88,120,205,.24);
}
body.locked:not(.theme-glass) .themeToggleRow{
  margin-top: 4px;
  border-color: rgba(170,196,240,.34);
  background: linear-gradient(180deg, rgba(22,31,50,.78), rgba(14,20,36,.78));
}
body.locked:not(.theme-glass) .themeToggleText{
  color: rgba(203,221,248,.9);
}
body.locked:not(.theme-glass) .themeToggleKnob{
  background: rgba(98,112,155,.62);
  border-color: rgba(176,201,245,.46);
}
body.locked:not(.theme-glass) .themeToggleInput:checked + .themeToggleKnob{
  background: linear-gradient(135deg, #88f4ff 0%, #7eb7ff 42%, #b78eff 100%);
  border-color: rgba(228,240,255,.72);
}
body.locked:not(.theme-glass) .themeToggleKnob::before{
  background: #f7fbff;
}
body.locked:not(.theme-glass) .tokenError{
  grid-area: error;
  margin: 0 34px 30px;
  background: rgba(255,110,146,.14);
  border-color: rgba(255,145,167,.46);
  color: #ffe3ea;
}
body.locked:not(.theme-glass) .tokenGate.open .tokenField{
  opacity: 0;
  transform: translateY(12px);
}
body.locked:not(.theme-glass) .tokenGate.open .tokenField:nth-of-type(1){
  animation: gateItemIn .44s ease .30s forwards;
}
body.locked:not(.theme-glass) .tokenGate.open .tokenField:nth-of-type(2){
  animation: gateItemIn .44s ease .38s forwards;
}
body.locked:not(.theme-glass) .tokenGate.open .guestActionRow{
  opacity: 0;
  transform: translateY(12px);
  animation: gateItemIn .44s ease .46s forwards;
}
body.locked:not(.theme-glass) .tokenGate.open .oauthSection > *{
  opacity: 0;
  transform: translateY(10px);
}
body.locked:not(.theme-glass) .tokenGate.open .oauthSection > *:nth-child(1){
  animation: gateItemIn .42s ease .52s forwards;
}
body.locked:not(.theme-glass) .tokenGate.open .oauthSection > *:nth-child(2){
  animation: gateItemIn .42s ease .60s forwards;
}
body.locked:not(.theme-glass) .tokenGate.open .oauthSection > *:nth-child(3){
  animation: gateItemIn .42s ease .68s forwards;
}
body.locked:not(.theme-glass) .tokenGate.open .oauthSection > *:nth-child(4){
  animation: gateItemIn .42s ease .76s forwards;
}

@keyframes gateAuraSpin{
  from{ transform: translate(-50%, -50%) rotate(0deg); }
  to{ transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes gateAuraPulse{
  0%, 100%{
    opacity: .62;
    filter: blur(64px) saturate(1.06);
  }
  50%{
    opacity: .82;
    filter: blur(74px) saturate(1.28);
  }
}
@keyframes gateCardIn{
  from{
    opacity: 0;
    transform: translateY(24px) scale(.972);
  }
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes gateHeadIn{
  from{
    opacity: 0;
    transform: translateX(-16px);
  }
  to{
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes gatePanelIn{
  from{
    opacity: 0;
    transform: translateY(12px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes gateItemIn{
  from{
    opacity: 0;
    transform: translateY(12px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes gateCtaGlow{
  0%, 100%{
    box-shadow:
      0 14px 26px rgba(74,137,255,.35),
      0 0 0 1px rgba(235,245,255,.2);
  }
  50%{
    box-shadow:
      0 18px 30px rgba(86,154,255,.5),
      0 0 0 1px rgba(241,249,255,.34),
      0 0 18px rgba(255,129,202,.26),
      0 0 28px rgba(102,220,237,.34);
  }
}

@media (max-width: 980px){
  body.locked:not(.theme-glass) .tokenCard{
    width: min(520px, 95vw);
    height: auto;
    max-height: none;
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "head"
      "form"
      "oauth"
      "error";
  }
  body.locked:not(.theme-glass) .tokenHead{
    border-right: none;
    border-bottom: 1px solid rgba(150,188,248,.26);
    padding: 28px 24px 24px;
    gap: 16px;
  }
  body.locked:not(.theme-glass) .tokenHeadDesc{
    max-width: none;
  }
  body.locked:not(.theme-glass) .tokenHeadPoints{
    grid-template-columns: 1fr;
  }
  body.locked:not(.theme-glass) .guestLoginSection{
    padding: 24px 24px 12px;
  }
  body.locked:not(.theme-glass) .oauthSection{
    padding: 6px 24px 18px;
  }
  body.locked:not(.theme-glass) .tokenError{
    margin: 0 24px 24px;
  }
}

@media (max-width: 560px){
  body.locked:not(.theme-glass) .tokenGate{
    padding: 12px;
  }
  body.locked:not(.theme-glass) .tokenCard{
    border-radius: 24px;
  }
  body.locked:not(.theme-glass) .tokenHead{
    padding: 22px 18px 18px;
  }
  body.locked:not(.theme-glass) .tokenBrand{
    gap: 10px;
  }
  body.locked:not(.theme-glass) .tokenBrandText{
    font-size: clamp(30px, 10.2vw, 44px);
  }
  body.locked:not(.theme-glass) .tokenEq{
    height: 34px;
    gap: 3px;
  }
  body.locked:not(.theme-glass) .tokenEqBar{
    width: 4px;
  }
  body.locked:not(.theme-glass) .guestLoginSection{
    padding: 20px 16px 10px;
  }
  body.locked:not(.theme-glass) .oauthSection{
    padding: 6px 16px 14px;
  }
  body.locked:not(.theme-glass) .tokenError{
    margin: 0 16px 18px;
  }
  body.locked:not(.theme-glass) .tokenHeadPoints li{
    letter-spacing: .04em;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce){
  body.locked:not(.theme-glass) .tokenGate::before,
  body.locked:not(.theme-glass) .tokenCard,
  body.locked:not(.theme-glass) .tokenHead,
  body.locked:not(.theme-glass) .guestLoginSection,
  body.locked:not(.theme-glass) .oauthSection,
  body.locked:not(.theme-glass) .tokenCard .tokenPrimaryBtn{
    animation: none !important;
  }
  body.locked:not(.theme-glass) .tokenGate.open .tokenField,
  body.locked:not(.theme-glass) .tokenGate.open .guestActionRow,
  body.locked:not(.theme-glass) .tokenGate.open .oauthSection > *{
    opacity: 1 !important;
    transform: none !important;
  }
}

.isHidden{ display:none !important; }

.settingsModal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6,14,20,.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 60;
}
.settingsModal.open{
  display: flex;
}
.settingsCard{
  width: min(420px, 94vw);
  border-radius: var(--r-lg);
  padding: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: var(--shadow);
}
.settingsHead{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.settingsCloseBtn{
  width: 34px;
  min-width: 34px;
  padding: 0;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}
.profileModal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6,14,20,.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 65;
}
.profileModal.open{
  display: flex;
}
.profileModalCard{
  width: min(460px, 94vw);
  border-radius: var(--r-lg);
  padding: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.19), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profileModalHead{
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
}
.profileModalCloseBtn{
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}
.profileModalMeta{
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-md);
  background: rgba(0,0,0,.16);
  padding: 10px 12px;
}
.profileModalName{
  font-size: 15px;
  font-weight: 900;
}
.profileModalLastSeen{
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}
.profileModalStats{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profileModalStat{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-sm);
  background: rgba(0,0,0,.18);
  padding: 9px 11px;
}
.profileModalStatLabel{
  font-size: 12px;
  color: var(--muted);
}
.profileModalStatValue{
  font-size: 14px;
  font-weight: 900;
  color: #dff2ff;
}
.profileModalEmpty{
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-sm);
  background: rgba(0,0,0,.18);
  padding: 12px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* Sidebar */
.sidebar{
  padding: 10px 28px 16px 12px;
  display:flex;
  flex-direction:column;
  gap: 14px;
  border-right: 1px solid rgba(255,255,255,.10);
  min-height: 0;
}
.brand{
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  text-align: center;
}
.brandTitle{
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing:.02em;
}
.brandSub{
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* Content */
.content{
  display:flex;
  flex-direction:column;
  gap: 12px;
  height: 100%;
  min-height: 0;
}
.topbar{
  display:flex;
  gap: 8px;
  min-height: 34px;
  justify-content: flex-end;
  align-items: center;
}
.statusPill{
  position: relative;
  border-radius: 999px;
  padding: 6px 10px;
  display:flex;
  align-items:center;
  gap: 8px;
  font-weight: 800;
  font-size: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
}
.statusDot{
  width:8px; height:8px; border-radius:999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(74,222,128,.18);
}
.topbarAuth{
  display:flex;
  align-items:center;
  gap: 8px;
}
.dashThemeToggle{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid rgba(152,183,250,.32);
  background: rgba(12,22,36,.72);
  user-select: none;
  cursor: pointer;
}
.dashThemeToggleText{
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(208,224,252,.86);
}
.dashThemeToggle .themeToggleSwitch{
  width: 36px;
  height: 20px;
}
.dashThemeToggle .themeToggleKnob::before{
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
}
.dashThemeToggle .themeToggleInput:checked + .themeToggleKnob::before{
  transform: translateX(16px);
}
.authUser{
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  white-space: nowrap;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.authUser.isGuest{
  background: rgba(146,240,207,.20);
  border-color: rgba(146,240,207,.45);
}
.authUser.isGuest::before{
  content: "G";
  display: inline-flex;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  color: #0b1c26;
  background: linear-gradient(135deg, rgba(146,240,207,.95), rgba(123,215,255,.85));
}
.authBtn{
  height: 30px;
  font-size: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.settingsBtn{
  width: 30px;
  min-width: 30px;
  padding: 0;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.mainGrid{
  display:grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 14px;
  min-height:0;
  flex: 1;
}
.dashboardCopyright{
  text-align: center;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: .02em;
  color: rgba(198,216,244,.78);
}
body.locked .dashboardCopyright{
  display: none;
}
body.theme-glass .dashboardCopyright{
  color: rgba(235,243,247,.78);
}
.leftCol, .rightCol{
  display:flex;
  flex-direction:column;
  gap: 12px;
  min-height:0;
}
.leftCol{
  flex: 1;
}
.rightCol{
  justify-content:flex-start;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,.12);
}

/* Hero */
.hero{
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: 10px;
}
.heroMedia{
  position:relative;
  border-radius: var(--r-lg);
  overflow:hidden;
  aspect-ratio: 16 / 9;
  min-height: 0;
  height: auto;
  background: rgba(6,14,20,.55);
  box-shadow: var(--shadow-soft);
}
.heroVideo{
  position:absolute;
  inset: 0;
  width:100%;
  height:100%;
  --yt-cover-scale: 1.8;
  --yt-stretch-x: 1.42;
  opacity: 0;
  z-index: 1;
  transition: opacity .2s ease;
  background: #04080d;
}
.heroVideo iframe{
  position:absolute;
  left:50%;
  top:50%;
  width:100%;
  height:100%;
  min-width:100%;
  min-height:100%;
  border: 0;
  display:block;
  transform: translate(-50%, -50%)
    scaleX(calc(var(--yt-cover-scale, 1) * var(--yt-stretch-x, 1)))
    scaleY(var(--yt-cover-scale, 1));
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
}
.heroThumb{
  position:absolute;
  inset: 0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  z-index: 1;
  opacity: 1;
  transition: opacity .2s ease;
}
.heroMedia.videoActive .heroThumb{
  opacity: 0;
}
.heroMedia.videoActive .heroVideo{
  opacity: 1;
}
.heroMedia:fullscreen{
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  background: #000;
}
.heroMedia:fullscreen .heroOverlay{
  padding: 18px;
}
.heroMedia:-webkit-full-screen{
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  background: #000;
}
.heroMedia:-webkit-full-screen .heroOverlay{
  padding: 18px;
}
.heroOverlay{
  position:absolute;
  inset:auto 0 0 0;
  padding: 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
  z-index: 3;
}
.nowLabel{
  font-size: 10px;
  letter-spacing:.12em;
  text-transform: uppercase;
  color: rgba(233,242,247,.8);
}
.nowTitle{
  font-size: 22px;
  font-weight: 900;
  margin-top: 4px;
}
.nowMeta{
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

/* Right column */
.queuePanel{
  flex:0 0 auto;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-lg);
  padding: 10px;
  display:flex;
  flex-direction:column;
  height: 200px;
}
.queueSidebar{
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  width: 100%;
  align-self: stretch;
  margin-top: 8px;
  flex: 1;
  min-height: 0;
  display:flex;
  flex-direction:column;
}
.queueSidebar .list{
  max-height: none;
  flex: 1;
  overflow: hidden;
  padding-right: 0;
  padding-top: 4px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 75%, transparent 100%);
}
.profileSidebar{
  flex: 0 0 auto;
  min-height: 0;
}
.profileStats{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profileStatRow{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  background: rgba(0,0,0,.16);
}
.profileStatLabel{
  font-size: 11px;
  color: var(--muted);
}
.profileStatValue{
  font-size: 13px;
  font-weight: 900;
  color: #eaf6ff;
}
.profileMeta{
  margin-top: 4px;
  font-size: 10px;
  color: rgba(214,226,247,.68);
  text-align: right;
}
.profileEmpty{
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-sm);
  padding: 10px;
  font-size: 11px;
  color: var(--muted);
  background: rgba(0,0,0,.14);
  text-align: center;
}
.presenceItem{
  position: relative;
  height: 42px;
  padding: 0;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.16);
  margin-bottom: 8px;
  overflow: hidden;
  perspective: 900px;
  transform-style: preserve-3d;
  box-shadow: 0 2px 8px rgba(6,14,20,.14);
  transition: border-color .16s ease, background .16s ease, transform .14s ease, box-shadow .16s ease;
}
.presenceItem:hover{
  border-color: rgba(195,233,255,.54);
  background: rgba(255,255,255,.16);
  transform: translateY(-1px);
  box-shadow: none;
}
.presenceItem:focus-within{
  border-color: rgba(139,231,255,.72);
  box-shadow: 0 0 0 2px rgba(107,217,255,.2), 0 10px 22px rgba(6,14,20,.24);
}
.presenceItem.hasActivity{
  border-color: rgba(125,211,252,.62);
  background: rgba(56,189,248,.18);
  box-shadow: 0 8px 20px rgba(56,189,248,.2), inset 0 1px 0 rgba(255,255,255,.08);
}
.presenceItem.hasActivity:hover{
  border-color: rgba(125,211,252,.82);
  background: rgba(56,189,248,.24);
  box-shadow: none;
}
.presenceItem.activityClosing{
  border-color: rgba(125,211,252,.34);
  background: rgba(56,189,248,.1);
}
.presenceItem.isGuest{
  border-color: rgba(123,215,255,.42);
  background: rgba(123,215,255,.12);
}
.presenceItem.isSelf{
  cursor: context-menu;
}
.presenceItem.isSelf:hover{
  border-color: rgba(171,224,255,.7);
}
.presenceFlipCard{
  position: relative;
  width: 100%;
  height: 100%;
}
.presenceFlipInner{
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform;
  transition: transform .56s cubic-bezier(.22,.9,.25,1), filter .28s ease;
}
.presenceItem.hasActivity .presenceFlipInner{
  transform: rotateY(180deg);
}
.presenceItem.activityEntering .presenceFlipInner{
  animation: presenceFlipIn .58s cubic-bezier(.22,.9,.25,1) both;
}
.presenceItem.activityClosing .presenceFlipInner{
  animation: presenceFlipOut .54s cubic-bezier(.22,.9,.25,1) both;
}
@keyframes presenceFlipIn{
  0% { transform: rotateY(0deg) scale(1); }
  45% { transform: rotateY(116deg) scale(1.03); }
  72% { transform: rotateY(198deg) scale(1.01); }
  100% { transform: rotateY(180deg) scale(1); }
}
@keyframes presenceFlipOut{
  0% { transform: rotateY(180deg) scale(1); }
  40% { transform: rotateY(62deg) scale(1.03); }
  70% { transform: rotateY(-14deg) scale(1.01); }
  100% { transform: rotateY(0deg) scale(1); }
}
.presenceFace{
  position: absolute;
  inset: 0;
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}
.presenceFront{
  transform: rotateY(0deg) translateZ(.1px);
}
.presenceBack{
  transform: rotateY(180deg) translateZ(.1px);
  justify-content: flex-start;
  background: linear-gradient(135deg, rgba(45,110,181,.22), rgba(125,211,252,.16));
}
.presenceAvatar{
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.14);
}
.presenceAvatar.isGuest{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  color: #0b1c26;
  border-color: rgba(123,215,255,.65);
  background: linear-gradient(135deg, rgba(146,240,207,.92), rgba(123,215,255,.88));
}
.presenceBody{
  min-width: 0;
  display:flex;
  flex-direction:column;
  gap: 4px;
  flex: 1 1 auto;
}
.presenceNameRow{
  display: flex;
  align-items: center;
  gap: 8px;
}
.presenceName{
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.presenceSource{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  color: var(--text);
  flex: 0 0 auto;
}
.presenceSource svg{
  width: 11px;
  height: 11px;
  fill: currentColor;
}
.presenceSource.isDiscord{
  border-color: rgba(138,151,255,.55);
  background: rgba(88,101,242,.26);
  color: #e8ebff;
}
.presenceSource.isGuest{
  border-color: rgba(123,215,255,.62);
  background: rgba(123,215,255,.24);
  color: #d8f8ff;
}
.presenceSource.isAccount{
  border-color: rgba(146,240,207,.58);
  background: rgba(146,240,207,.2);
  color: #e9fff5;
}
.presenceActivity{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  font-size: 10px;
  font-weight: 800;
  color: #e7f6ff;
  border-radius: 999px;
  border: 1px solid rgba(125,211,252,.62);
  background: rgba(8,34,58,.52);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
  padding: 2px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.presenceActivityDot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #7dd3fc;
  box-shadow: 0 0 0 4px rgba(125,211,252,.35);
  flex: 0 0 auto;
}
.presenceActivityText{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (prefers-reduced-motion: reduce){
  .presenceFlipInner{
    transition: none !important;
    animation: none !important;
  }
}
.presenceEmpty{
  font-size: 12px;
  color: var(--muted);
  padding: 8px 2px;
}


/* Command bar */
.commandBar{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-lg);
  padding: 10px;
  display:grid;
  grid-template-columns: 1.2fr 1.2fr auto;
  gap: 12px;
}
.rightCol .commandBar{
  grid-template-columns: 1fr;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.rightCol .cmdRight{
  align-items:center;
}
.rightCol .fieldRow{
  flex-wrap: wrap;
}
.rightCol .fieldRow > .input,
.rightCol .fieldRow > .btn{
  flex: 1 1 100%;
}
.rightCol .fieldLabel{
  text-align: center;
  width: 100%;
}
.rightCol .cmdRight .btn{
  flex:1 1 auto;
}

/* Meldungen */
.noticePanel{
  flex: 0 0 auto;
  min-height: 0;
  margin-top: 8px;
  height: 200px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display:flex;
  flex-direction:column;
  gap: 8px;
  overflow: hidden;
}

.cmdRight{
  display:flex;
  gap: 8px;
  align-items:end;
}

.fieldLabel{
  font-size: 10px;
  color: var(--muted);
  letter-spacing:.12em;
  text-transform: uppercase;
  margin: 2px 0 6px;
}
.fieldRow{ display:flex; gap:10px; align-items:center; }
.fieldActions{ margin-top: 8px; }
.input{
  width:100%;
  height: 34px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: var(--text);
  padding: 0 10px;
  outline:none;
}
select.input{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 34px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23eaf2f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6%209%2012%2015%2018%209'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px 14px;
}
select.input::-ms-expand{ display:none; }
select.input option,
select.input optgroup{
  background-color: #1f3c47;
  color: var(--text);
}
.input::placeholder{ color: rgba(233,242,247,.6); }
.input:focus{
  border-color: rgba(123,215,255,.65);
  box-shadow: 0 0 0 3px rgba(123,215,255,.22);
}
.btn{
  height: 34px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.12);
  color: var(--text);
  font-weight: 800;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.18); }
.btnAccent{
  background: linear-gradient(135deg, rgba(146,240,207,.85), rgba(123,215,255,.65));
  border-color: rgba(123,215,255,.55);
  color:#0b1c26;
}

/* History */
.historyInline{
  padding: 4px 2px 0;
  display:flex;
  flex-direction:column;
  min-height: 0;
  flex: 1;
}
.historyInline .list{
  max-height: none;
  flex: 1;
  overflow: hidden;
  padding-right: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 75%, transparent 100%);
}
.panelHead{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.panelTitle{ font-weight: 900; font-size: 12px; }
.panelSub{ color: var(--muted); font-size: 11px; }

.list{
  flex:1;
  min-height:0;
  overflow:auto;
  padding-right: 6px;
}
.list::-webkit-scrollbar{ width: 10px; }
.list::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.35);
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 999px;
}
.item{
  position:relative;
  margin-bottom: 8px;
  border-radius: var(--r-md);
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.16);
  overflow:hidden;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.item.historyVoteUp{
  border-color: rgba(74,222,128,.55);
  background: rgba(74,222,128,.14);
}
.item.historyVoteDown{
  border-color: rgba(248,113,113,.55);
  background: rgba(248,113,113,.14);
}
.item.historyVoteTie{
  border-color: rgba(251,146,60,.65);
  background: rgba(251,146,60,.16);
}
.itemMain{
  display:grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  align-items:center;
  padding: 8px 10px;
}
.itemMenu{
  display:none;
  padding: 10px 12px;
  gap: 8px;
}
.item.menuOpen .itemMain{ display:none; }
.item.menuOpen .itemMenu{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
}
.menuBtn{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: var(--text);
  font-weight: 700;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 16px;
}
.menuBtn:hover{
  background: rgba(255,255,255,.16);
}
.menuBtn.up{
  border-color: rgba(74,222,128,.55);
  background: rgba(74,222,128,.25);
  color: #eafff1;
}
.menuBtn.down{
  border-color: rgba(251,191,36,.6);
  background: rgba(251,191,36,.25);
  color: #fff2c8;
}
.menuBtn.delete{
  border-color: rgba(248,113,113,.6);
  background: rgba(248,113,113,.25);
  color: #ffe1e1;
}
.presenceContextMenu{
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  min-width: 194px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(208,234,255,.34);
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.04)),
    rgba(8,20,30,.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 18px 36px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.24),
    inset 0 -1px 0 rgba(24,54,72,.45);
}
.presenceContextBtn{
  width: 100%;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(200,232,255,.24);
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  color: #f2f8fc;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .01em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 12px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
}
.presenceContextBtn + .presenceContextBtn{
  margin-top: 6px;
}
.presenceContextBtn::before{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(125,211,252,.95);
  box-shadow: 0 0 0 4px rgba(125,211,252,.18);
  flex: 0 0 auto;
}
.presenceContextBtn:hover{
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.1));
  border-color: rgba(220,242,255,.44);
}
.presenceContextBtn:focus-visible{
  outline: none;
  border-color: rgba(139,231,255,.78);
  box-shadow:
    0 0 0 2px rgba(107,217,255,.22),
    inset 0 1px 0 rgba(255,255,255,.24);
}
.presenceContextBtn.danger{
  border-color: rgba(248,113,113,.52);
  background: linear-gradient(180deg, rgba(248,113,113,.26), rgba(248,113,113,.12));
  color: #fff0f0;
}
.presenceContextBtn.danger::before{
  background: rgba(248,113,113,.95);
  box-shadow: 0 0 0 4px rgba(248,113,113,.18);
}
.presenceContextBtn.danger:hover{
  background: linear-gradient(180deg, rgba(248,113,113,.34), rgba(248,113,113,.18));
  border-color: rgba(248,113,113,.72);
}
.idx{
  width:28px;height:28px;
  border-radius: var(--r-sm);
  display:grid;
  place-items:center;
  font-weight: 900;
  color: var(--text);
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.16);
}
.title{
  font-weight: 900;
  font-size: 12px;
  line-height:1.2;
}
.sub{
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height:1.2;
}
.badge{
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  color: var(--text);
  font-size: 11px;
}
.historyVote{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.historyVote.tie .voteBtn{
  border-color: rgba(251,146,60,.62);
  background: rgba(251,146,60,.22);
  color: #fff1df;
}
.voteBtn{
  min-width: 46px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.2);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.voteIcon{
  font-size: 14px;
  line-height: 1;
}
.voteCount{
  font-size: 11px;
  font-weight: 800;
  min-width: 10px;
  text-align: right;
}
.voteBtn:hover{
  transform: translateY(-1px);
}
.voteBtn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,.35);
}
.voteBtn.up{
  border-color: rgba(74,222,128,.45);
  background: rgba(74,222,128,.16);
  color: #dcffea;
}
.voteBtn.down{
  border-color: rgba(248,113,113,.45);
  background: rgba(248,113,113,.16);
  color: #ffe6e6;
}
.voteBtn.active{
  box-shadow: 0 0 0 2px rgba(255,255,255,.14), 0 8px 20px rgba(3,10,15,.25);
}
.voteBtn.up.active{
  border-color: rgba(74,222,128,.95);
  background: rgba(74,222,128,.38);
}
.voteBtn.down.active{
  border-color: rgba(248,113,113,.95);
  background: rgba(248,113,113,.38);
}

/* queue hover highlight */
.queueSidebar .item:not(.menuOpen):hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.30);
}
.queueSidebar .item[data-mode='queue']{
  cursor: grab;
}
.queueSidebar .item[data-mode='queue']:active{
  cursor: grabbing;
}
.queueSidebar .item.dragging{
  opacity: .55;
  transform: scale(.99);
}
.queueSidebar .item.dragOverBefore{
  box-shadow: inset 0 2px 0 rgba(125, 211, 252, .95);
}
.queueSidebar .item.dragOverAfter{
  box-shadow: inset 0 -2px 0 rgba(125, 211, 252, .95);
}

/* Player */
.playerPanel{
  background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-lg);
  padding: 12px;
  margin-top: auto;
}
.controls{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  justify-content: center;
}
.ctl{
  height: 32px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.12);
  color: var(--text);
  font-weight: 800;
  padding: 0 10px;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.ctlSeek{
  min-width: 72px;
  font-size: 12px;
  letter-spacing: .01em;
}
.ctl:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.30);
  box-shadow: 0 10px 24px rgba(6,14,20,.25);
}
.ctlAccent{
  background: linear-gradient(135deg, rgba(146,240,207,.85), rgba(123,215,255,.65));
  color:#0b1c26;
}
.ctlPause{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
  color: var(--text);
}
.ctlResume{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
  color: var(--text);
}
.ctlSkip{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
  color: var(--text);
}
.progress{
  display:grid;
  grid-template-columns: 34px 1fr 34px;
  align-items:center;
  gap: 6px;
}
.time{
  width: auto;
  font-size: 11px;
  color: var(--muted);
  text-align: left;
}
.time:last-child{
  text-align: right;
}
.bar{
  --progress: 0%;
  position: relative;
  flex:1;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  overflow:hidden;
  cursor: pointer;
  touch-action: none;
}
.bar:focus-visible{
  outline: 2px solid rgba(146,240,207,.95);
  outline-offset: 2px;
}
.bar.seekDisabled{
  cursor: not-allowed;
  opacity: .65;
}
.bar::after{
  content:"";
  position:absolute;
  top: 50%;
  left: var(--progress);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #eaf2f6;
  box-shadow: 0 0 0 2px rgba(11,28,38,.45), 0 0 0 1px rgba(255,255,255,.55);
  opacity: 0;
  transition: opacity .16s ease;
  pointer-events: none;
}
.bar:hover::after,
.bar:focus-visible::after,
.bar.seeking::after{
  opacity: 1;
}
.bar.seekDisabled::after{
  opacity: 0;
}
.fill{
  width:0%;
  height:100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .18s linear;
}
.infoGrid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.infoLabel{
  font-size: 10px;
  color: var(--muted);
  letter-spacing:.12em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.infoBox{
  margin:0;
  padding: 10px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  min-height: 70px;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

/* Equalizer */
.eqPanel{
  margin-top: 8px;
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-lg);
  padding: 10px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.settingsEqPanel{
  margin-top: 0;
}
.eqRows{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.eqRow{
  display:grid;
  grid-template-columns: 58px 1fr 46px;
  align-items:center;
  gap: 8px;
}
.eqName{
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}
.eqValue{
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.eqSlider{
  width: 100%;
  accent-color: #7bd7ff;
  cursor: pointer;
}
.eqSlider:disabled{
  cursor: not-allowed;
  opacity: .6;
}
.eqPanel.disabled{
  opacity: .75;
}
.eqActions{
  display:flex;
}
.eqActions .btn{
  width: 100%;
}

.hiddenMount{ display:none; }

/* Toasts */
.toastHost{
  position: static;
  display:flex;
  flex-direction:column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding-right: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 80%, transparent 100%);
}
.toast{
  flex: 0 0 auto;
  display:grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items:center;
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-md);
  padding: 10px 12px;
  box-shadow: none;
  animation: toastIn .18s ease;
}
.toast.success{ border-color: rgba(74,222,128,.35); }
.toast.error{ border-color: rgba(239,68,68,.35); }
.toastIcon{
  width:32px; height:32px; border-radius:10px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.18);
  color: var(--text);
  font-weight: 900;
}
.toastAvatar{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.12);
}
.toastTitle{ font-weight: 900; font-size: 12px; }
.toastText{ font-size: 12px; color: var(--muted); }
.toastClose{
  border:none; background: transparent; font-size: 18px; cursor:pointer; color: var(--muted);
}
.toast.out{ animation: toastOut .16s ease forwards; }
@keyframes toastIn{
  from{ opacity:0; transform: translateY(8px); }
  to{ opacity:1; transform: translateY(0); }
}
@keyframes toastOut{
  to{ opacity:0; transform: translateY(8px); }
}

/* Responsive */
@media (max-width: 1200px){
  body{ padding: 12px; }
  .shell{
    height:auto;
    grid-template-columns: 1fr;
  }
  .sidebar{
    border-right:none;
    border-bottom: 1px solid rgba(255,255,255,.12);
    padding-bottom: 12px;
  }
  .mainGrid{
    grid-template-columns: 1fr;
  }
  .eqPanel{
    margin-top: 0;
  }
}

@media (max-width: 520px){
  .topbar{
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .topbarAuth{
    width: 100%;
    justify-content: flex-end;
  }
  .dashThemeToggleText{
    display: none;
  }
  .authUser{
    max-width: 100%;
    flex: 1 1 auto;
  }
  .settingsModal{
    padding: 12px;
  }
  .tokenRow{
    width: 100%;
  }
  .tokenActionRow{
    width: 100%;
  }
  .eqRow{
    grid-template-columns: 52px 1fr 44px;
  }
}
