.sidebar[data-shared-sidebar="ready"] {
  --sidebar-accent: #c84bff;
  --sidebar-blue: #5865f2;
  --sidebar-panel: rgba(18, 18, 20, 0.92);
}

.sidebar[data-shared-sidebar="ready"] .side-card {
  display: grid !important;
  gap: 12px !important;
  width: 100% !important;
  margin-top: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.075) !important;
  border-radius: 22px !important;
  padding: 16px !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(88, 101, 242, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--sidebar-panel) !important;
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
}

.sidebar[data-shared-sidebar="ready"] .side-card-group {
  display: grid;
  gap: 9px;
}

.sidebar[data-shared-sidebar="ready"] .side-card p {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 15px !important;
  line-height: 1.15 !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
}

.sidebar[data-shared-sidebar="ready"] .side-card small {
  display: block;
  margin-top: 3px;
  color: #96909d;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 750;
}

.sidebar[data-shared-sidebar="ready"] .side-card a,
.sidebar[data-shared-sidebar="ready"] .side-card button {
  min-height: 44px !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  border-radius: 14px !important;
  padding: 0 13px !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 34px rgba(0, 0, 0, 0.18) !important;
}

.sidebar[data-shared-sidebar="ready"] .side-card a > span:not(.mini-icon),
.sidebar[data-shared-sidebar="ready"] .side-card button > span:not(.mini-icon) {
  width: auto !important;
  height: auto !important;
  display: block !important;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar[data-shared-sidebar="ready"] .side-card a.support-link,
.sidebar[data-shared-sidebar="ready"] .side-card button.support-link {
  border: 1px solid rgba(112, 121, 255, 0.62) !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.14), transparent 35%),
    linear-gradient(135deg, #37318e, #252462) !important;
}

.sidebar[data-shared-sidebar="ready"] .side-card a:not(.support-link) {
  border: 1px solid rgba(217, 79, 218, 0.62) !important;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.13), transparent 35%),
    linear-gradient(135deg, #64266e, #4a184f) !important;
}

.sidebar[data-shared-sidebar="ready"] .side-card a:hover,
.sidebar[data-shared-sidebar="ready"] .side-card button:hover {
  transform: translateY(-1px);
  filter: brightness(1.09);
}

.sidebar[data-shared-sidebar="ready"] .mini-icon,
.sidebar[data-shared-sidebar="ready"] .side-card span.mini-icon {
  width: 30px !important;
  height: 30px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 11px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  font-size: 0 !important;
}

.sidebar[data-shared-sidebar="ready"] .mini-icon svg,
.sidebar[data-shared-sidebar="ready"] .share-button svg,
.account-menu svg,
.account-more svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.sidebar[data-shared-sidebar="ready"] .share-button {
  min-height: 48px !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 34px minmax(0, max-content) !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  border: 1px solid rgba(234, 91, 242, 0.72) !important;
  border-radius: 999px !important;
  padding: 0 18px !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.15), transparent 35%),
    linear-gradient(135deg, #721d78, #46104d) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
  box-shadow:
    0 18px 42px rgba(123, 35, 126, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.sidebar[data-shared-sidebar="ready"] .share-button span {
  width: 34px !important;
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.sidebar[data-shared-sidebar="ready"] .share-button strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar[data-shared-sidebar="ready"] .account-chip {
  min-height: 72px !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 50px minmax(0, 1fr) 38px !important;
  align-items: center !important;
  gap: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 999px !important;
  padding: 9px 11px !important;
  background:
    radial-gradient(circle at 8% 8%, rgba(217, 86, 212, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    #121214 !important;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
}

.sidebar[data-shared-sidebar="ready"] .account-avatar {
  width: 50px !important;
  height: 50px !important;
  font-size: 18px !important;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.09),
    0 0 22px rgba(201, 75, 255, 0.28) !important;
}

.sidebar[data-shared-sidebar="ready"] .account-chip-copy {
  display: grid !important;
  gap: 4px !important;
  min-width: 0 !important;
}

.sidebar[data-shared-sidebar="ready"] .account-chip b {
  overflow: hidden !important;
  color: #ffffff !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.sidebar[data-shared-sidebar="ready"] .account-chip-copy span {
  overflow: hidden !important;
  color: #aca4b2 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  text-overflow: ellipsis !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.sidebar[data-shared-sidebar="ready"] .account-more {
  width: 38px !important;
  height: 38px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #aaa2af !important;
  cursor: pointer !important;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease !important;
}

.sidebar[data-shared-sidebar="ready"] .account-more:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.account-avatar.has-image {
  overflow: hidden;
  background: #111114;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.share-button {
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(123, 35, 126, 0.22);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.share-button::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.16), transparent 54%);
  opacity: 0;
  transform: translateX(-35%);
  transition:
    opacity 160ms ease,
    transform 260ms ease;
}

.share-button:hover {
  transform: translateY(-1px);
  border-color: rgba(238, 117, 255, 0.86);
  box-shadow: 0 20px 42px rgba(123, 35, 126, 0.34);
}

.share-button:hover::before {
  opacity: 1;
  transform: translateX(35%);
}

.side-card a,
.side-card button {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    filter 160ms ease;
}

.side-card a:hover,
.side-card button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.account-more {
  cursor: pointer;
}

.account-menu {
  position: fixed;
  z-index: 80;
  width: 220px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    #111111;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

.account-menu[hidden] {
  display: none !important;
}

.account-menu a,
.account-menu button {
  min-height: 40px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 11px;
  padding: 0 11px;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-menu a:hover,
.account-menu button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.account-menu .menu-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 12px;
}

.account-menu .menu-discord .menu-icon {
  background: #5865f2;
}

.account-menu .menu-danger {
  color: #ffc5cf;
}

.account-menu .menu-danger .menu-icon {
  background: rgba(255, 80, 104, 0.2);
  color: #ffc5cf;
}

.account-menu {
  width: 282px;
  gap: 9px;
  border-color: rgba(217, 86, 212, 0.22);
  border-radius: 20px;
  padding: 14px;
  background:
    radial-gradient(circle at 18% 0%, rgba(217, 86, 212, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    #111111;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.58),
    0 0 42px rgba(155, 66, 214, 0.16);
}

.account-menu-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 3px 4px 6px;
}

.menu-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, #8b3fd8, #4a1e55);
  color: #ffffff;
  font-size: 17px;
  font-weight: 950;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.menu-avatar.has-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.account-menu-header strong {
  display: block;
  overflow: hidden;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-header span {
  display: block;
  margin-top: 4px;
  color: #aaa1ae;
  font-size: 13px;
  font-weight: 700;
}

.account-menu .menu-language,
.account-menu .menu-row {
  min-height: 43px;
  width: 100%;
  display: grid;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
}

.account-menu .menu-language {
  grid-template-columns: 35px minmax(0, 1fr) 18px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.04);
}

.menu-language small {
  color: #aaa1ae;
  font-size: 13px;
}

.menu-flag {
  width: 28px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: linear-gradient(#b22234 0 14%, #ffffff 14% 28%, #b22234 28% 42%, #ffffff 42% 56%, #b22234 56% 70%, #ffffff 70% 84%, #b22234 84%);
  color: #ffffff;
  font-size: 9px;
  font-weight: 950;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.account-menu .menu-row {
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 10px;
  padding: 0 13px;
}

.account-menu .menu-icon {
  width: 25px;
  height: 25px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
}

.account-menu .menu-home {
  border-color: rgba(217, 86, 212, 0.42);
  background: rgba(100, 38, 110, 0.62);
}

.account-menu .menu-profile {
  border-color: rgba(0, 213, 255, 0.28);
  background: rgba(0, 95, 120, 0.26);
}

.account-menu .menu-leaderboard {
  border-color: rgba(255, 190, 64, 0.38);
  background: rgba(113, 72, 0, 0.45);
}

.account-menu .menu-discord {
  border-color: rgba(88, 101, 242, 0.55);
  background: rgba(45, 53, 144, 0.58);
}

.account-menu .menu-settings {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.account-menu .menu-danger {
  border-color: rgba(255, 80, 104, 0.62);
  background: rgba(122, 26, 32, 0.68);
  color: #ffffff;
}

.account-menu .menu-row:hover,
.account-menu .menu-language:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}
