@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap");

/* SXGE — Apple Liquid Glass (iOS-style) for buttons & cards */

:root {
  --sxge-font: "Plus Jakarta Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sxge-bg-base: #0a1218;
  --sxge-accent-primary: #3be0c3;
  --sxge-accent: #3be0c3;
  --sxge-link: #16b199;
  --sxge-code-bg: rgba(101, 117, 133, 0.16);
  --sxge-code-color: #16b199;
  --sxge-base-dark: #050505;
  --vp-c-brand-1: #3be0c3;
  --vp-c-brand-2: #3be0c3;
  --vp-c-brand-3: #3be0c3;
  --vp-c-brand-soft: rgba(59, 224, 195, 0.16);
  --vp-custom-block-tip-bg: rgba(10, 44, 38, 0.55);
  --vp-custom-block-tip-border: rgba(59, 224, 195, 0.38);
  --vp-custom-block-tip-text: rgba(255, 255, 255, 0.95);
  --vp-custom-block-tip-code-bg: rgba(101, 117, 133, 0.16);
  --vp-code-bg: rgba(101, 117, 133, 0.16);
  --vp-code-color: #16b199;
  --vp-c-tip-1: #3be0c3;
  --vp-c-tip-2: #7ef0dc;
  --sxge-doc-bg-image: none;
  --lg-blur: 28px;
  --lg-saturate: 1.85;
  --lg-radius: 18px;
  --lg-radius-btn: 14px;
  --lg-fill: rgba(255, 255, 255, 0.09);
  --lg-fill-strong: rgba(255, 255, 255, 0.16);
  --lg-fill-hover: rgba(255, 255, 255, 0.2);
  --lg-tint: rgba(180, 160, 255, 0.12);
  --lg-border: rgba(255, 255, 255, 0.22);
  --lg-border-bright: rgba(255, 255, 255, 0.4);
  --lg-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.32);
  --lg-depth: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  --lg-shadow: 0 10px 40px rgba(0, 0, 0, 0.32);
  --lg-shadow-hover: 0 14px 48px rgba(0, 0, 0, 0.38);
}

html.dark {
  --vp-code-bg: rgba(101, 117, 133, 0.16);
  --vp-code-color: #16b199;
  --vp-custom-block-tip-code-bg: rgba(101, 117, 133, 0.16);
  --vp-custom-block-info-code-bg: rgba(101, 117, 133, 0.16);
  font-family: var(--sxge-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.dark body,
html.dark .vp-doc,
html.dark .VPHome,
html.dark .VPNavBar,
html.dark .VPSidebar,
html.dark .VPDocAsideOutline {
  font-family: var(--sxge-font);
}

html.dark .vp-doc h1,
html.dark .VPHome .heading .name {
  font-weight: 800;
  letter-spacing: -0.035em;
}

html.dark .vp-doc h2,
html.dark .vp-doc h3 {
  font-weight: 700;
  letter-spacing: -0.025em;
}

html.dark .VPHome .tagline {
  font-weight: 500;
  letter-spacing: 0.01em;
}

html.dark .sxge-home-footer {
  position: fixed;
  left: 50%;
  bottom: 0.6rem;
  transform: translateX(-50%);
  z-index: 8;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  text-shadow: 0 1px 6px rgba(59, 224, 195, 0.14);
  pointer-events: none;
}

html.dark .VPHomeHero .tagline {
  color: rgba(255, 255, 255, 0.96) !important;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

html.dark .VPHomeHero .tagline.sxge-scrambling {
  filter: blur(0.45px);
  text-shadow:
    0 0 5px rgba(255, 255, 255, 0.14),
    0 0 12px rgba(59, 224, 195, 0.18);
}

html.dark .VPNavBarTitle .title .text,
html.dark .VPNavBarTitle .title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

html.dark .VPNavBarTitle .title .text span,
html.dark .VPHomeHero .name.clip {
  background: linear-gradient(135deg, #ffffff 0%, #eefefd 56%, #3be0c3 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 6px 20px rgba(59, 224, 195, 0.16);
}

html.dark .VPHomeHero .name.clip {
  display: inline-block;
  transform-origin: center bottom;
  will-change: transform;
}

html.dark .VPHomeHero .name.clip.sxge-intro-animate {
  animation: sxge-bounce-shake-in 780ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

html.dark .VPHomeHero .name.clip:hover {
  animation: sxge-bounce-shake-hover 1200ms ease-in-out infinite alternate;
}

@keyframes sxge-bounce-shake-in {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.9) rotate(-2.8deg);
  }
  38% {
    opacity: 1;
    transform: translateY(-8px) scale(1.06) rotate(2deg);
  }
  56% {
    transform: translateY(3px) scale(0.98) rotate(-1.4deg);
  }
  72% {
    transform: translateY(-2px) scale(1.02) rotate(0.9deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes sxge-bounce-shake-hover {
  0% {
    transform: translateY(0) rotate(-0.45deg) scale(1);
  }
  25% {
    transform: translateY(-1px) rotate(0.45deg) scale(1.006);
  }
  50% {
    transform: translateY(-1px) rotate(-0.35deg) scale(1.01);
  }
  75% {
    transform: translateY(-1px) rotate(0.4deg) scale(1.006);
  }
  100% {
    transform: translateY(0) rotate(-0.3deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.dark .VPHomeHero .name.clip,
  html.dark .VPHomeHero .name.clip:hover {
    animation: none !important;
    transform: none !important;
  }
}

html.dark .VPNavBarTitle .title .text span {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.sxge-nav-heart {
  width: 0.92em;
  height: 0.92em;
  object-fit: contain;
  flex: 0 0 auto;
  transform: translateY(0.01em);
  filter: drop-shadow(0 0 8px rgba(59, 224, 195, 0.35));
}

html.dark .vp-doc p,
html.dark .vp-doc li {
  line-height: 1.72;
  letter-spacing: 0.008em;
}

/* ── Full-page background (home only) ── */
html.dark body {
  background-color: var(--sxge-bg-base);
}

html.dark.sxge-doc-route body {
  background-color: var(--sxge-base-dark);
}

html.dark:not(.sxge-doc-route) body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: var(--sxge-bg-base);
  background-image: url(/assets/sxge-bg-refresh.svg);
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  pointer-events: none;
  transform: translateZ(0);
}

/* Remove default VitePress home hero decorative circle/blob */
html.dark:not(.sxge-doc-route) .VPHomeHero .image,
html.dark:not(.sxge-doc-route) .VPHomeHero .image-container,
html.dark:not(.sxge-doc-route) .VPHomeHero .image-bg {
  display: none !important;
}

html.dark:not(.sxge-doc-route) body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 90% 70% at 50% 40%,
      rgba(10, 18, 24, 0.1) 0%,
      rgba(10, 18, 24, 0.45) 55%,
      rgba(10, 18, 24, 0.82) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(10, 18, 24, 0.5) 0%,
      rgba(10, 18, 24, 0.12) 30%,
      rgba(10, 18, 24, 0.25) 70%,
      rgba(10, 18, 24, 0.75) 100%
    );
}

html.dark #app {
  position: relative;
  z-index: 1;
}

html.dark .Layout,
html.dark .VPContent,
html.dark .VPHome,
html.dark .VPDoc,
html.dark .VPPage {
  background: transparent !important;
}

html.dark .VPNavBar {
  background: rgba(10, 18, 24, 0.35) !important;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

html.dark .VPNavBar:not(.home) {
  background: rgba(10, 18, 24, 0.5) !important;
}

/* Fix sidebar-page navbar: title area vs search bar height/bg mismatch */
html.dark .VPNavBar .content-body {
  background: transparent !important;
}

html.dark .VPNavBar.has-sidebar .title,
html.dark .VPNavBar.has-sidebar .VPNavBarTitle {
  background: transparent !important;
  border-bottom: none !important;
}

html.dark .DocSearch-Button-Placeholder,
html.dark .DocSearch-Button-Key {
  color: rgba(255, 255, 255, 0.88) !important;
  opacity: 1 !important;
}

html.dark .VPSidebar {
  background: rgba(10, 18, 24, 0.42) !important;
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
}

html.dark .VPDoc .content-container {
  background: rgba(10, 18, 24, 0.38) !important;
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

@media (min-width: 1600px) {
  html.dark:not(.sxge-doc-route) body::before {
    background-image: url(/assets/sxge-bg-refresh.svg);
    background-size: cover;
  }
}

/* ── SXGE doc-page background (CSS layers — no JS wait) ── */
html.dark.sxge-doc-route::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-image:
    linear-gradient(145deg, #3be0c347, #0a2c2657 42%, #0c382c42),
    var(--sxge-doc-bg-image);
  background-position: 50%;
  background-size: cover;
}

html.dark.sxge-doc-route {
  --sxge-doc-bg-image: none;
}

html.dark.sxge-doc-route::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: radial-gradient(circle at 50% 46%, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.84) 72%);
}

html.dark.sxge-doc-route body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.05), transparent 44%),
    radial-gradient(circle at 78% 72%, rgba(255, 255, 255, 0.05), transparent 52%);
}

html.dark.sxge-doc-route body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: soft-light;
  background-image: url(/assets/sxge-noise.svg);
}

#sxge-particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.08;
}

/* ── Links & navigation text ── */
html.dark .aside-curtain {
  display: none !important;
}

html.dark .outline-title {
  color: rgba(255, 255, 255, 0.95) !important;
}

html.dark .outline-link {
  color: rgba(255, 255, 255, 0.92) !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
  opacity: 1 !important;
  transition: color 0.2s ease !important;
}

html.dark .outline-link:hover,
html.dark .outline-link.active {
  color: var(--sxge-accent) !important;
}

html.dark .outline-marker {
  background-color: var(--sxge-accent) !important;
  opacity: 1 !important;
}

/* Heart icons replacing ⭐ in content */
.sxge-heart-icon {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.32em;
  vertical-align: -0.12em;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
}

html.dark .VPDocAsideOutline .sxge-heart-icon,
html.dark .VPLocalNavOutlineDropdown .sxge-heart-icon {
  width: 0.95em;
  height: 0.95em;
  margin-right: 0.28em;
  vertical-align: -0.1em;
}

html.dark .vp-doc h1 .sxge-heart-icon,
html.dark .vp-doc h2 .sxge-heart-icon,
html.dark .vp-doc h3 .sxge-heart-icon,
html.dark .vp-doc .table-of-contents .sxge-heart-icon {
  width: 1.15em;
  height: 1.15em;
  margin-right: 0.38em;
}

html.dark .vp-doc h1 .sxge-heart-icon {
  width: 0.88em;
  height: 0.88em;
  margin-right: 0.42em;
  vertical-align: 0.06em;
}

/* Hide heading permalink hash on hover */
html.dark .vp-doc .header-anchor {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Tip / info callout boxes — teal theme */
html.dark .vp-doc .tip.custom-block,
html.dark .vp-doc .info.custom-block {
  background-color: var(--vp-custom-block-tip-bg) !important;
  border-color: var(--vp-custom-block-tip-border) !important;
  color: var(--vp-custom-block-tip-text) !important;
}

html.dark .vp-doc .tip.custom-block a,
html.dark .vp-doc .info.custom-block a {
  color: var(--sxge-link) !important;
  text-decoration-color: rgba(22, 177, 153, 0.45) !important;
}

html.dark .vp-doc .tip.custom-block a:hover,
html.dark .vp-doc .info.custom-block a:hover {
  color: var(--sxge-accent) !important;
  text-decoration-color: var(--sxge-accent) !important;
}

/* Inline code e.g. password "pocket" — neutral chip, not purple */
html.dark .vp-doc :not(pre) > code,
html.dark .vp-doc h1 > code,
html.dark .vp-doc h2 > code,
html.dark .vp-doc h3 > code,
html.dark .vp-doc h4 > code,
html.dark .vp-doc h5 > code,
html.dark .vp-doc h6 > code {
  color: var(--sxge-code-color) !important;
  background-color: var(--sxge-code-bg) !important;
}

html.dark .vp-doc .tip.custom-block code,
html.dark .vp-doc .info.custom-block code {
  color: var(--sxge-code-color) !important;
  background-color: var(--sxge-code-bg) !important;
}

/* Doc content links (not the right-side outline) */
html.dark .vp-doc a:not([href^="http"]):not([href^="mailto:"]) {
  color: var(--sxge-link) !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  text-decoration-color: rgba(22, 177, 153, 0.45) !important;
  transition: color 0.2s ease, text-decoration-color 0.2s ease !important;
}

html.dark .vp-doc a:not([href^="http"]):not([href^="mailto:"]):hover,
html.dark .vp-doc a:not([href^="http"]):not([href^="mailto:"]):focus-visible {
  color: var(--sxge-accent) !important;
  text-decoration-color: var(--sxge-accent) !important;
}

/* External/download links: teal to distinguish */
html.dark .vp-doc a[href^="http"],
html.dark .vp-doc a[href^="mailto:"] {
  color: var(--sxge-accent) !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  text-decoration-color: rgba(59, 224, 195, 0.45) !important;
  transition: color 0.2s ease, text-decoration-color 0.2s ease !important;
}

html.dark .vp-doc a[href^="http"]:hover,
html.dark .vp-doc a[href^="http"]:focus-visible,
html.dark .vp-doc a[href^="mailto:"]:hover,
html.dark .vp-doc a[href^="mailto:"]:focus-visible {
  color: #7ef0dc !important;
  text-decoration-color: #7ef0dc !important;
}

html.dark .vp-doc .table-of-contents a {
  color: var(--sxge-link) !important;
  text-decoration-color: rgba(22, 177, 153, 0.45) !important;
}

html.dark .vp-doc .table-of-contents a:hover {
  color: var(--sxge-accent) !important;
  text-decoration-color: var(--sxge-accent) !important;
}

html.dark .VPSidebarItem.is-link .link .text {
  color: rgba(255, 255, 255, 0.85) !important;
  transition: color 0.2s ease !important;
}

html.dark .VPSidebarItem.is-link > .item > .link:hover .text,
html.dark .VPSidebarItem.is-active > .item .link > .text {
  color: var(--sxge-accent) !important;
}

html.dark .VPSidebarItem.is-active > .item > .indicator {
  background-color: var(--sxge-accent) !important;
}

html.dark .VPNavBarMenuLink {
  color: rgba(255, 255, 255, 0.9) !important;
  transition: color 0.2s ease !important;
}

html.dark .VPNavBarMenuLink:hover,
html.dark .VPNavBarMenuLink.active {
  color: var(--sxge-accent) !important;
}

html.dark .pager-link .title {
  color: rgba(255, 255, 255, 0.9) !important;
  transition: color 0.2s ease !important;
}

html.dark .pager-link:hover .title {
  color: var(--sxge-accent) !important;
}

html.dark .pager-link:hover {
  border-color: var(--sxge-accent) !important;
}

/* ── Buttons ── */
html.dark .VPButton {
  position: relative;
  overflow: hidden;
  border-radius: var(--lg-radius-btn) !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
  border: 1px solid var(--lg-border) !important;
  box-shadow: var(--lg-shadow), var(--lg-highlight), var(--lg-depth);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

html.dark .VPButton::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.04) 42%,
    transparent 55%
  );
  pointer-events: none;
}

html.dark .VPButton.brand {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(210, 198, 255, 0.16) 45%,
    rgba(133, 123, 228, 0.12) 100%
  ) !important;
  color: #fff !important;
  border-color: var(--lg-border-bright) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

html.dark .VPButton.alt {
  background: var(--lg-fill) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  border-color: var(--lg-border) !important;
}

html.dark .VPButton.brand:hover {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(210, 198, 255, 0.22) 45%,
    rgba(133, 123, 228, 0.16) 100%
  ) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: var(--lg-shadow-hover), var(--lg-highlight), var(--lg-depth);
  transform: translateY(-1px);
}

html.dark .VPButton.alt:hover {
  background: var(--lg-fill-hover) !important;
  border-color: var(--lg-border-bright) !important;
  box-shadow: var(--lg-shadow-hover), var(--lg-highlight), var(--lg-depth);
  transform: translateY(-1px);
}

html.dark .VPButton:active {
  transform: translateY(0);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22), var(--lg-highlight), var(--lg-depth);
}

/* ── Feature cards ── */
html.dark a.VPFeature.link,
html.dark a.VPFeature.link:hover,
html.dark a.VPFeature.link:focus,
html.dark a.VPFeature.link:focus-visible,
html.dark .VPFeature,
html.dark .VPFeature:hover {
  display: block;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  border-radius: var(--lg-radius) !important;
  box-shadow: none !important;
  transform: none !important;
  overflow: visible;
}

html.dark .VPFeature .box {
  position: relative;
  overflow: hidden;
  border-radius: var(--lg-radius) !important;
  background: var(--lg-fill) !important;
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
  border: 1px solid var(--lg-border) !important;
  box-shadow: var(--lg-shadow), var(--lg-highlight), var(--lg-depth);
  transform: translateZ(0);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

html.dark .VPFeature .box::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--lg-radius) - 1px);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.03) 38%,
    transparent 52%
  );
  pointer-events: none;
}

html.dark .VPFeature .box::after {
  display: none !important;
}

html.dark .VPFeature.link:hover .box,
html.dark .VPFeature .box:hover {
  background: var(--lg-fill-strong) !important;
  border-color: var(--lg-border-bright) !important;
  box-shadow:
    0 14px 48px rgba(0, 0, 0, 0.34),
    var(--lg-highlight),
    var(--lg-depth) !important;
  transform: translateY(-2px) translateZ(0);
}

html.dark .VPFeature .title {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

html.dark .VPFeature .details {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.62);
}

/* ── Mobile fixes ── */
@media (max-width: 768px) {
  /* Keep background visually locked while scrolling on phones */
  html.dark:not(.sxge-doc-route) body::before {
    background-attachment: fixed !important;
    background-position: center center !important;
    transform: translateZ(0);
  }

  html.dark.sxge-doc-route::before {
    background-position: center center !important;
  }

  /* Keep Discord icon in navbar but aligned to the left side of its slot */
  html.dark .VPNavBarSocialLinks,
  html.dark .VPSocialLinks.social-links-list {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
  }

  html.dark .VPSocialLink {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
  }

  /* Remove duplicate Discord section from mobile menu/flyout */
  html.dark .VPFlyout .social-links,
  html.dark .VPFlyout .item.social-links,
  html.dark .VPNavScreen .menu .social-links,
  html.dark .VPNavScreen .menu .VPSocialLinks,
  html.dark .VPNavScreen .VPSocialLinks,
  html.dark .VPNavScreen .VPSocialLink,
  html.dark .VPNavScreen .group .item.social-links,
  html.dark .VPNavScreen .group:has(.social-links) {
    display: none !important;
  }

  /* Keep top-bar Discord control left-aligned in its slot */
  html.dark .VPNavBarSocialLinks {
    margin-left: 0;
    margin-right: 8px;
    justify-content: flex-start !important;
    text-align: left;
  }
}

.sxge-discord-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.sxge-discord-popup-show {
  opacity: 1;
  pointer-events: auto;
}

.sxge-discord-popup-hide {
  opacity: 0;
  pointer-events: none;
}

.sxge-discord-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 14, 0.72);
  backdrop-filter: blur(6px);
}

.sxge-discord-popup-card {
  position: relative;
  width: min(100%, 420px);
  padding: 28px 24px 22px;
  border-radius: var(--lg-radius);
  border: 1px solid var(--lg-border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  box-shadow: var(--lg-shadow);
  text-align: center;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s ease;
}

.sxge-discord-popup-show .sxge-discord-popup-card {
  transform: translateY(0) scale(1);
}

.sxge-discord-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.sxge-discord-popup-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.sxge-discord-popup-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: block;
}

.sxge-discord-popup-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.sxge-discord-popup-text {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  line-height: 1.5;
}

.sxge-discord-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sxge-discord-popup-join,
.sxge-discord-popup-dismiss {
  border: 0;
  border-radius: var(--lg-radius-btn);
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sxge-discord-popup-join {
  background: var(--sxge-accent-primary);
  color: #041814;
}

.sxge-discord-popup-join:hover {
  filter: brightness(1.05);
}

.sxge-discord-popup-dismiss {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

.sxge-discord-popup-dismiss:hover {
  background: rgba(255, 255, 255, 0.14);
}
