*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background: var(--vd-canvas);
}

:root {
  --vd-accent: 255, 58, 58;
  --vd-glow: 255, 30, 36;
  --vd-glow-hot: 255, 28, 36;
  --vd-beam: 255, 80, 80;
  --vd-beam-deep: 176, 24, 32;
  --vd-deep-glow: 110, 12, 18;
  --vd-mid-glow: 160, 10, 18;
  --vd-corner: 140, 16, 22;
  --vd-ink: #160306;
  --vd-canvas: #18181c;
  --vd-header: 24, 24, 28;
  --vd-menu: 32, 32, 38;
  --vd-brand: #ff2a2a;
  --vd-brand-hot: #ff3a3a;
  --vd-brand-deep: #dc1018;
  --vd-brand-glow: 255, 24, 24;
  --vd-on-brand: #fff;
  --vd-mark: 255, 20, 20;
  --vd-logo-sepia: 0;
  --vd-logo-saturate: 1;
  --vd-logo-hue: 0deg;
  --vd-logo-bright: 1;
  --vd-texture-line: 255, 255, 255;
  --vd-texture-alpha: 0.02;
  --vd-line: 255, 220, 220;
  --vd-stats-deep: var(--vd-beam-deep);
  --trade-primary-rgb: 220, 16, 24;
  --trade-deep-rgb: 48, 6, 8;
  --trade-accent-rgb: 255, 48, 48;
  --trade-primary: var(--vd-brand-deep);
  --trade-secondary: #ff2424;
  --trade-tertiary: #ff6a6a;
  --trade-accent: #ff3030;
  --trade-muted: #ff9a9a;
  --trade-soft: #ffd4d4;
  --trade-deep: #2a080a;
  --trade-text: #ffffff;
  --trade-text-muted: rgba(255, 255, 255, 0.72);
  --trade-border: rgba(255, 70, 70, 0.32);
  --trade-border-strong: rgba(255, 70, 70, 0.5);
  --trade-glass: rgba(180, 16, 24, 0.22);
  --trade-glass-hover: rgba(220, 24, 32, 0.36);
  --trade-glass-shadow: rgba(220, 16, 24, 0.18);
  --trade-inset: rgba(42, 8, 10, 0.42);
  --trade-slot-add: rgba(255, 48, 48, 0.12);
  --trade-slot-add-border: rgba(255, 48, 48, 0.32);
  --header-float: 0.7rem;
  --header-bar: 3.35rem;
  --header-h: calc(var(--header-float) + var(--header-bar) + 0.45rem);
  --shell-pad-x: clamp(1rem, 2.5vw, 2rem);
  --shell-pad-y: clamp(1rem, 2vw, 2.5rem);
  --content-max: 1240px;
  --content-max-wide: 1440px;
  --touch-target: 2.75rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

html[data-theme="black"] {
  --vd-canvas: #000000;
  --vd-header: 0, 0, 0;
  --vd-menu: 16, 16, 16;
  --vd-accent: 214, 214, 220;
  --vd-glow: 200, 200, 208;
  --vd-glow-hot: 228, 228, 234;
  --vd-beam-deep: 150, 150, 158;
  --vd-deep-glow: 90, 90, 98;
  --vd-corner: 120, 120, 128;
  --vd-brand: #d6d6dc;
  --vd-brand-hot: #ececf0;
  --vd-brand-deep: #a4a4ac;
  --vd-brand-glow: 210, 210, 216;
  --vd-mark: 220, 220, 226;
  --vd-on-brand: #111114;
  --vd-logo-sepia: 0;
  --vd-logo-saturate: 0;
  --vd-logo-hue: 0deg;
  --vd-logo-bright: 1.85;
}

html[data-theme="dark"] {
  --vd-canvas: #18181c;
  --vd-header: 24, 24, 28;
  --vd-menu: 32, 32, 38;
  --vd-accent: 255, 58, 58;
  --vd-glow: 255, 30, 36;
  --vd-glow-hot: 255, 28, 36;
  --vd-beam-deep: 176, 24, 32;
  --vd-deep-glow: 110, 12, 18;
  --vd-corner: 140, 16, 22;
  --vd-brand: #ff2a2a;
  --vd-brand-hot: #ff3a3a;
  --vd-brand-deep: #dc1018;
  --vd-brand-glow: 255, 24, 24;
  --vd-mark: 255, 20, 20;
  --vd-on-brand: #fff;
  --vd-logo-sepia: 0;
  --vd-logo-saturate: 1;
  --vd-logo-hue: 0deg;
  --vd-logo-bright: 1;
}

html[data-theme="light"] {
  --vd-canvas: #f7f6f4;
  --vd-header: 247, 246, 244;
  --vd-menu: 255, 255, 255;
  --vd-accent: 28, 28, 32;
  --vd-glow: 36, 36, 40;
  --vd-glow-hot: 48, 48, 52;
  --vd-beam-deep: 28, 28, 32;
  --vd-deep-glow: 20, 20, 24;
  --vd-corner: 24, 24, 28;
  --vd-brand: #1c1c20;
  --vd-brand-hot: #2a2a30;
  --vd-brand-deep: #101014;
  --vd-brand-glow: 40, 40, 46;
  --vd-mark: 28, 28, 32;
  --vd-on-brand: #fff;
  --vd-logo-sepia: 0;
  --vd-logo-saturate: 0;
  --vd-logo-hue: 0deg;
  --vd-logo-bright: 0.28;
}

html[data-theme="beige"] {
  --vd-canvas: #efe4d2;
  --vd-header: 239, 228, 210;
  --vd-menu: 250, 242, 230;
  --vd-accent: 62, 40, 26;
  --vd-glow: 74, 48, 30;
  --vd-glow-hot: 86, 56, 34;
  --vd-beam-deep: 54, 34, 22;
  --vd-deep-glow: 42, 26, 16;
  --vd-corner: 48, 30, 18;
  --vd-brand: #3a2618;
  --vd-brand-hot: #4a3020;
  --vd-brand-deep: #2a1a10;
  --vd-brand-glow: 70, 44, 26;
  --vd-mark: 80, 48, 28;
  --vd-on-brand: #fff;
  --vd-logo-sepia: 1;
  --vd-logo-saturate: 1.1;
  --vd-logo-hue: 18deg;
  --vd-logo-bright: 0.48;
}

html[data-theme="navy"] {
  --vd-canvas: #0c1222;
  --vd-header: 12, 18, 34;
  --vd-menu: 16, 26, 46;
  --vd-accent: 226, 182, 87;
  --vd-glow: 230, 186, 80;
  --vd-glow-hot: 240, 200, 100;
  --vd-beam-deep: 168, 124, 36;
  --vd-deep-glow: 120, 86, 20;
  --vd-corner: 150, 110, 30;
  --vd-brand: #e2b657;
  --vd-brand-hot: #f0cc78;
  --vd-brand-deep: #b8892a;
  --vd-brand-glow: 240, 196, 80;
  --vd-mark: 255, 209, 90;
  --vd-on-brand: #1a1406;
  --vd-logo-sepia: 1;
  --vd-logo-saturate: 4;
  --vd-logo-hue: 5deg;
  --vd-logo-bright: 1.15;
}

html[data-theme="maroon"] {
  --vd-canvas: #14080c;
  --vd-header: 20, 8, 12;
  --vd-menu: 34, 14, 20;
  --vd-accent: 240, 224, 204;
  --vd-glow: 228, 206, 180;
  --vd-glow-hot: 246, 232, 214;
  --vd-beam-deep: 176, 146, 114;
  --vd-deep-glow: 110, 82, 58;
  --vd-corner: 150, 116, 88;
  --vd-brand: #f0e2d0;
  --vd-brand-hot: #f7eee4;
  --vd-brand-deep: #c9b094;
  --vd-brand-glow: 240, 216, 188;
  --vd-mark: 245, 228, 208;
  --vd-on-brand: #1a100c;
  --vd-logo-sepia: 0.45;
  --vd-logo-saturate: 0.08;
  --vd-logo-hue: 5deg;
  --vd-logo-bright: 2.35;
}

/* Cyan — exact blues from ValueDex mark art (glow #2E8BFF on #0a0a0a) */
html[data-theme="cyan"] {
  --vd-canvas: #0a0a0a;
  --vd-header: 10, 10, 10;
  --vd-menu: 14, 18, 28;
  --vd-accent: 46, 139, 255;
  --vd-glow: 46, 139, 255;
  --vd-glow-hot: 90, 170, 255;
  --vd-beam: 46, 139, 255;
  --vd-beam-deep: 1, 66, 108;
  --vd-deep-glow: 5, 37, 84;
  --vd-mid-glow: 18, 27, 82;
  --vd-corner: 20, 50, 100;
  --vd-ink: #050505;
  --vd-brand: #2e8bff;
  --vd-brand-hot: #5aa8ff;
  --vd-brand-deep: #1a5fbf;
  --vd-brand-glow: 46, 139, 255;
  --vd-mark: 46, 139, 255;
  --vd-on-brand: #031018;
  /* Match other dark themes' stripe visibility */
  --vd-texture-line: 255, 255, 255;
  --vd-texture-alpha: 0.028;
  /* Red base logo → white mark with blue bloom */
  --vd-logo-sepia: 0;
  --vd-logo-saturate: 0;
  --vd-logo-hue: 0deg;
  --vd-logo-bright: 2.45;
  --vd-line: 200, 230, 255;
  --trade-primary-rgb: 30, 110, 220;
  --trade-deep-rgb: 5, 16, 28;
  --trade-accent-rgb: 46, 139, 255;
  --trade-primary: #1a5fbf;
  --trade-secondary: #2e8bff;
  --trade-tertiary: #5aa8ff;
  --trade-accent: #2e8bff;
  --trade-muted: #8ec4ff;
  --trade-soft: #d0e6ff;
  --trade-deep: #05080f;
  --trade-border: rgba(46, 139, 255, 0.32);
  --trade-border-strong: rgba(46, 139, 255, 0.5);
  --trade-glass: rgba(1, 66, 108, 0.28);
  --trade-glass-hover: rgba(46, 139, 255, 0.3);
  --trade-glass-shadow: rgba(46, 139, 255, 0.18);
  --trade-inset: rgba(5, 16, 28, 0.45);
  --trade-slot-add: rgba(46, 139, 255, 0.12);
  --trade-slot-add-border: rgba(46, 139, 255, 0.32);
}

/* Full-viewport atmosphere — avoid background-attachment:fixed (clips on the right) */
html[data-theme="cyan"],
html[data-theme="cyan"] body {
  background-color: var(--vd-canvas);
  background-image: none;
}

html[data-theme="cyan"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: -1;
  pointer-events: none;
  background-color: #0a0a0a;
  /* Same near-transparent diagonal stripes as other themes, over atmosphere */
  background-image:
    repeating-linear-gradient(
      112deg,
      transparent 0 12px,
      rgba(var(--vd-texture-line), var(--vd-texture-alpha)) 12px 13px
    ),
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(1, 66, 108, 0.85) 0%, transparent 68%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(18, 27, 82, 0.6) 0%, transparent 72%),
    radial-gradient(ellipse 45% 40% at 50% 45%, rgba(20, 50, 100, 0.2) 0%, transparent 70%);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-size: auto, 100% 100%, 100% 100%, 100% 100%;
}

html[data-theme="cyan"] .tos-background,
html[data-theme="cyan"] .credits-background {
  background:
    repeating-linear-gradient(
      112deg,
      transparent 0 12px,
      rgba(var(--vd-texture-line), var(--vd-texture-alpha)) 12px 13px
    ),
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(1, 66, 108, 0.85) 0%, transparent 68%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(18, 27, 82, 0.6) 0%, transparent 72%),
    radial-gradient(ellipse 45% 40% at 50% 45%, rgba(20, 50, 100, 0.2) 0%, transparent 70%),
    #0a0a0a;
}

html[data-theme="cyan"] .tos-overlay,
html[data-theme="cyan"] .credits-overlay {
  opacity: 1;
  mix-blend-mode: normal;
  background-image: repeating-linear-gradient(
    112deg,
    transparent 0 12px,
    rgba(var(--vd-texture-line), var(--vd-texture-alpha)) 12px 13px
  );
}

html[data-theme="cyan"] body.home-page .home-hero__photo {
  /* Atmosphere only — no mark/wordmark baked into the background */
  background:
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(1, 66, 108, 0.85) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 50% 100%, rgba(18, 27, 82, 0.7) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 50% 48%, rgba(20, 50, 100, 0.2) 0%, transparent 70%),
    #0a0a0a;
  opacity: 1;
}

html[data-theme="cyan"] body.home-page .home-hero__mist,
html[data-theme="cyan"] body.home-page .home-hero__beam,
html[data-theme="cyan"] body.home-page .home-hero__grain {
  display: block;
}

html[data-theme="cyan"] body.home-page .home-hero__mist {
  background:
    radial-gradient(ellipse 55% 45% at 88% 12%, rgba(46, 139, 255, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 50% 95%, rgba(18, 27, 82, 0.45) 0%, transparent 65%),
    linear-gradient(to bottom, rgba(10, 10, 10, 0.15) 0%, rgba(10, 10, 10, 0.55) 100%);
}

/* Diagonal stripes on home (hero photo covers body::before) */
html[data-theme="cyan"] body.home-page .home-hero__grain {
  opacity: 1;
  mix-blend-mode: normal;
  background-image: repeating-linear-gradient(
    112deg,
    transparent 0 12px,
    rgba(var(--vd-texture-line), var(--vd-texture-alpha)) 12px 13px
  );
  z-index: 1;
}

html[data-theme="cyan"] body.home-page .home-hero__mark-img {
  /* Force pure white + neon bloom to match VALUEDEX wordmark */
  filter:
    brightness(0)
    invert(1)
    drop-shadow(0 0 10px rgba(46, 139, 255, 1))
    drop-shadow(0 0 22px rgba(46, 139, 255, 0.95))
    drop-shadow(0 0 48px rgba(46, 139, 255, 0.65))
    drop-shadow(0 0 90px rgba(1, 66, 108, 0.7));
}

html[data-theme="cyan"] body.home-page .home-hero__brand {
  color: #fff;
  text-shadow:
    0 0 18px rgba(46, 139, 255, 0.95),
    0 0 40px rgba(46, 139, 255, 0.55),
    0 0 80px rgba(1, 66, 108, 0.65),
    0 10px 40px rgba(0, 0, 0, 0.55);
}

html[data-theme="light"],
html[data-theme="beige"] {
  color-scheme: light;
  --vd-texture-line: 40, 32, 24;
  --vd-texture-alpha: 0.034;
}

html[data-theme="light"] .top-line,
html[data-theme="beige"] .top-line,
html[data-theme="light"] .site-settings__menu,
html[data-theme="beige"] .site-settings__menu,
html[data-theme="light"] .site-settings__flyout,
html[data-theme="beige"] .site-settings__flyout {
  border-color: rgba(28, 25, 22, 0.12);
  box-shadow: 0 10px 28px rgba(28, 25, 22, 0.08);
}

html[data-theme="light"] .sector,
html[data-theme="beige"] .sector,
html[data-theme="light"] .nav-menu-btn,
html[data-theme="beige"] .nav-menu-btn,
html[data-theme="light"] .discord-link,
html[data-theme="beige"] .discord-link,
html[data-theme="light"] .site-settings__btn,
html[data-theme="beige"] .site-settings__btn,
html[data-theme="light"] .site-settings__item,
html[data-theme="beige"] .site-settings__item,
html[data-theme="light"] .site-settings__choice,
html[data-theme="beige"] .site-settings__choice,
html[data-theme="light"] .home-hero__brand,
html[data-theme="beige"] .home-hero__brand,
html[data-theme="light"] .home-pitch__title,
html[data-theme="beige"] .home-pitch__title,
html[data-theme="light"] .home-stats__title,
html[data-theme="beige"] .home-stats__title,
html[data-theme="light"] .trading-toolbar__title,
html[data-theme="beige"] .trading-toolbar__title,
html[data-theme="light"] .credits-title,
html[data-theme="beige"] .credits-title,
html[data-theme="light"] .tos-heading,
html[data-theme="beige"] .tos-heading,
html[data-theme="light"] .tos-panel,
html[data-theme="beige"] .tos-panel,
html[data-theme="light"] .tos-section h2,
html[data-theme="beige"] .tos-section h2 {
  color: #1c1916;
}

html[data-theme="light"] .home-hero__line,
html[data-theme="beige"] .home-hero__line,
html[data-theme="light"] .home-pitch__body,
html[data-theme="beige"] .home-pitch__body,
html[data-theme="light"] .home-stats__lede,
html[data-theme="beige"] .home-stats__lede,
html[data-theme="light"] .home-tos-link,
html[data-theme="beige"] .home-tos-link,
html[data-theme="light"] .trading-toolbar__subtitle,
html[data-theme="beige"] .trading-toolbar__subtitle,
html[data-theme="light"] .site-settings__current,
html[data-theme="beige"] .site-settings__current,
html[data-theme="light"] .tos-effective,
html[data-theme="beige"] .tos-effective,
html[data-theme="light"] .tos-intro,
html[data-theme="beige"] .tos-intro,
html[data-theme="light"] .tos-section p,
html[data-theme="beige"] .tos-section p,
html[data-theme="light"] .tos-section li,
html[data-theme="beige"] .tos-section li {
  color: rgba(var(--vd-accent), 0.72);
}

html[data-theme="light"] .home-hero__brand,
html[data-theme="beige"] .home-hero__brand {
  text-shadow: none;
}

html[data-theme="light"] .site-settings__btn,
html[data-theme="beige"] .site-settings__btn,
html[data-theme="light"] .discord-link,
html[data-theme="beige"] .discord-link,
html[data-theme="light"] .nav-menu-btn,
html[data-theme="beige"] .nav-menu-btn {
  border-color: rgba(28, 25, 22, 0.16);
  background: rgba(28, 25, 22, 0.04);
}

html[data-theme="light"] .site-settings__chevron,
html[data-theme="beige"] .site-settings__chevron {
  border-color: rgba(28, 25, 22, 0.55);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;
  z-index: 0;
  font-family: "Syne", system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    112deg,
    transparent 0 12px,
    rgba(var(--vd-texture-line), var(--vd-texture-alpha)) 12px 13px
  );
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

.top-line {
  position: fixed;
  top: calc(var(--header-float) + var(--safe-top));
  left: calc(0.85rem + var(--safe-left));
  right: calc(0.85rem + var(--safe-right));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: var(--header-bar);
  padding: 0 0.85rem 0 1.15rem;
  background: rgba(var(--vd-header), 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.top-line-nav {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-menu-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 2.45rem;
  height: 2.45rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.nav-menu-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
}

.nav-menu-btn--open {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.6);
}

.nav-menu-btn__line {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease, width 0.22s ease;
}

.nav-menu-btn--open .nav-menu-btn__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-menu-btn--open .nav-menu-btn__line:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav-menu-btn--open .nav-menu-btn__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.top-line-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
  justify-content: center;
}

.logo {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--vd-brand);
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(var(--vd-brand-glow), 0.45);
  transition: opacity 0.2s, text-shadow 0.2s;
}

.logo:hover {
  opacity: 0.85;
}

.home-legal-links {
  position: fixed;
  left: calc(0.85rem + var(--safe-left));
  bottom: calc(0.55rem + var(--safe-bottom));
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.home-tos-link {
  position: static;
  left: auto;
  bottom: auto;
  z-index: auto;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.773rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.42);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.home-tos-link:hover {
  color: rgba(255, 255, 255, 0.72);
}

.discord-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0.95;
  transition: opacity 0.2s, transform 0.2s, background 0.2s, border-color 0.2s;
}

.discord-link:hover {
  opacity: 1;
  transform: scale(1.06);
  color: #fff;
  background: #5865f2;
  border-color: #5865f2;
}

.discord-link:hover svg {
  color: #fff;
  fill: #fff;
}

.discord-link svg {
  width: 1.35rem;
  height: 1.35rem;
}

.sectors {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: min(16rem, calc(100vw - 2rem));
  padding: 0.45rem;
  background: rgba(var(--vd-menu), 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.1rem;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.sectors[hidden] {
  display: none;
}

.sector {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: var(--touch-target);
  padding: 0.65rem 1rem;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.sector::before {
  content: none;
}

.sector + .sector {
  margin-top: 0.2rem;
}

.sector:hover {
  opacity: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.sector--active {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.sector--active:hover {
  background: rgba(255, 255, 255, 0.18);
}

.login-btn {
  margin-left: auto;
  flex-shrink: 0;
  padding: 0.48rem 1.15rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--vd-brand-hot) 0%, var(--vd-brand-deep) 100%);
  color: var(--vd-on-brand);
  text-decoration: none;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, opacity 0.2s, filter 0.2s;
  white-space: nowrap;
}

.login-btn:hover {
  filter: brightness(1.08);
  color: var(--vd-on-brand);
}

.login-btn--user {
  text-transform: none;
  letter-spacing: 0;
}

.login-btn.login-btn--avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  min-width: 2.85rem;
  min-height: 2.85rem;
  padding: 0.18rem;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #000;
  overflow: hidden;
  box-shadow: none;
  font-size: 0;
  line-height: 0;
  text-indent: 0;
  white-space: nowrap;
}

.login-btn.login-btn--avatar:hover {
  background: transparent;
  opacity: 1;
  box-shadow: none;
  border-color: #000;
  filter: none;
}

.login-btn__avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  pointer-events: none;
}

.account-menu {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.account-menu .login-btn {
  margin-left: 0;
}

.admin-tools-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-tools-btn__icon {
  display: block;
  width: 1.55rem;
  height: 1.55rem;
  pointer-events: none;
  background-color: #fff;
  -webkit-mask-image: url("images/icon-admin-tools.png");
  mask-image: url("images/icon-admin-tools.png");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.admin-tools-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.18);
}

.admin-tools-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.mod-reports-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border-radius: 10px;
  background: rgba(180, 120, 20, 0.4);
  border: 1px solid rgba(255, 190, 70, 0.45);
  color: #ffe08a;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mod-reports-btn__icon {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.mod-reports-btn:hover {
  background: rgba(210, 145, 30, 0.55);
  border-color: rgba(255, 200, 90, 0.7);
  box-shadow: 0 0 14px rgba(255, 170, 40, 0.28);
}

.mod-reports-btn:focus-visible {
  outline: 2px solid rgba(255, 220, 120, 0.7);
  outline-offset: 2px;
}

.admin-moderator-section {
  margin-top: 1.35rem;
}

.admin-moderator-section__title {
  margin: 0 0 0.85rem;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

.admin-moderator-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-moderator-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1 1 18rem;
  min-width: min(100%, 16rem);
  height: 2.85rem;
  padding: 0 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.admin-moderator-search:focus-within {
  border-color: rgba(var(--vd-accent), 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.admin-moderator-search__icon {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
  color: rgba(255, 220, 220, 0.8);
  flex-shrink: 0;
}

.admin-moderator-search__icon svg {
  width: 100%;
  height: 100%;
}

.admin-moderator-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
}

.admin-moderator-search__input::placeholder {
  color: rgba(255, 220, 220, 0.55);
}

.admin-moderator-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.admin-moderator-form__submit {
  height: 2.85rem;
  padding: 0 1.2rem;
  border: none;
  border-radius: 12px;
  background: rgba(var(--vd-beam-deep), 0.55);
  border: 1px solid rgba(140, 190, 255, 0.45);
  color: #fff;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.admin-moderator-form__submit:hover {
  background: rgba(255, 50, 50, 0.7);
  border-color: rgba(160, 205, 255, 0.65);
}

.admin-moderator-form__submit--unban {
  background: rgba(40, 140, 90, 0.5);
  border-color: rgba(120, 220, 160, 0.5);
}

.admin-moderator-form__submit--unban:hover {
  background: rgba(50, 165, 105, 0.65);
  border-color: rgba(140, 235, 180, 0.7);
}

.admin-moderator-form__submit--ban {
  background: rgba(170, 45, 45, 0.5);
  border-color: rgba(255, 120, 120, 0.5);
}

.admin-moderator-form__submit--ban:hover {
  background: rgba(190, 55, 55, 0.65);
  border-color: rgba(255, 140, 140, 0.7);
}

.admin-moderator-status {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: rgba(170, 230, 190, 0.95);
}

.admin-moderator-status--error {
  color: rgba(255, 150, 150, 0.95);
}

.admin-moderator-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.admin-moderator-list__empty,
.admin-moderator-list__item {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-moderator-list__empty {
  color: rgba(255, 220, 220, 0.65);
  font-size: 0.92rem;
}

.admin-moderator-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-moderator-list__id {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  color: #fff;
}

.admin-moderator-list__remove {
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 120, 120, 0.45);
  background: rgba(170, 45, 45, 0.4);
  color: #fff;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-moderator-list__remove:hover {
  background: rgba(190, 55, 55, 0.58);
}

.profile-card__user-actions {
  position: absolute;
  top: calc(0.7rem - 5rem);
  right: 0.7rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100% - 1.4rem);
}

.profile-user-btn {
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  color: #fff;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-user-btn--report {
  border: 1px solid rgba(255, 190, 70, 0.55);
  background: rgba(180, 120, 20, 0.45);
}

.profile-user-btn--report:hover {
  background: rgba(210, 145, 30, 0.62);
  border-color: rgba(255, 200, 90, 0.75);
  box-shadow: 0 0 16px rgba(255, 170, 40, 0.35);
}

.profile-user-btn--block {
  border: 1px solid rgba(255, 120, 120, 0.55);
  background: rgba(140, 40, 40, 0.5);
}

.profile-user-btn--block:hover {
  background: rgba(170, 50, 50, 0.68);
  border-color: rgba(255, 140, 140, 0.75);
  box-shadow: 0 0 16px rgba(255, 70, 70, 0.35);
}

.profile-user-btn--block.profile-user-btn--unblock {
  border: 1px solid rgba(120, 220, 160, 0.55);
  background: rgba(40, 140, 90, 0.5);
}

.profile-user-btn--block.profile-user-btn--unblock:hover {
  background: rgba(50, 165, 105, 0.68);
  border-color: rgba(140, 235, 180, 0.75);
  box-shadow: 0 0 16px rgba(80, 220, 130, 0.35);
}

.profile-user-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.profile-ban-btn {
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 120, 120, 0.55);
  background: rgba(170, 45, 45, 0.5);
  color: #fff;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-ban-btn:hover {
  background: rgba(190, 55, 55, 0.68);
  border-color: rgba(255, 140, 140, 0.75);
  box-shadow: 0 0 16px rgba(255, 70, 70, 0.35);
}

.profile-ban-btn--unban {
  background: rgba(40, 140, 90, 0.5);
  border-color: rgba(120, 220, 160, 0.55);
}

.profile-ban-btn--unban:hover {
  background: rgba(50, 165, 105, 0.68);
  border-color: rgba(140, 235, 180, 0.75);
  box-shadow: 0 0 16px rgba(80, 220, 130, 0.35);
}

.profile-ban-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

body.report-modal-open {
  overflow: hidden;
}

.report-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.report-modal[hidden] {
  display: none;
}

.report-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 18, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.report-glass-bar {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  padding: 1.5rem 1.55rem 1.35rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.report-glass-bar__title {
  margin: 0 0 1rem;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

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

.report-glass-bar__input {
  display: block;
  width: 100%;
  min-height: 7.5rem;
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
  resize: vertical;
  outline: none;
}

.report-glass-bar__input::placeholder {
  color: rgba(255, 220, 220, 0.55);
}

.report-glass-bar__input:focus {
  border-color: rgba(255, 190, 70, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.report-glass-bar__status {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  color: rgba(170, 230, 190, 0.95);
}

.report-glass-bar__status--error {
  color: rgba(255, 150, 150, 0.95);
}

.report-glass-bar__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1rem;
}

.report-glass-bar__btn {
  min-height: 2.55rem;
  padding: 0 1.1rem;
  border-radius: 10px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.report-glass-bar__btn--cancel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.report-glass-bar__btn--cancel:hover {
  background: rgba(255, 255, 255, 0.14);
}

.report-glass-bar__btn--submit {
  border: 1px solid rgba(255, 190, 70, 0.55);
  background: rgba(180, 120, 20, 0.5);
  color: #fff;
}

.report-glass-bar__btn--submit:hover {
  background: rgba(210, 145, 30, 0.65);
  border-color: rgba(255, 200, 90, 0.75);
}

.report-glass-bar__btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.report-glass-bar__thanks[hidden],
.report-glass-bar__form[hidden] {
  display: none;
}

.report-modal--thanks .report-glass-bar {
  width: min(100%, 28rem);
  text-align: center;
}

.report-modal--thanks .report-glass-bar__title {
  margin-bottom: 1.15rem;
  line-height: 1.35;
}

.report-glass-bar__actions--thanks {
  justify-content: center;
  margin-top: 0;
}

.reports-list {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.reports-empty {
  margin: 1rem 0 0;
  color: rgba(255, 220, 220, 0.7);
}

.reports-list__item {
  margin: 0;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.reports-list__meta {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.7rem;
}

.reports-list__reported,
.reports-list__reporter {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.95rem;
  color: rgba(var(--vd-accent), 0.92);
}

.reports-list__reported a,
.reports-list__reporter a {
  color: var(--vd-brand);
  text-decoration: none;
}

.reports-list__reported a:hover,
.reports-list__reporter a:hover {
  text-decoration: underline;
}

.reports-list__time {
  font-size: 0.82rem;
  color: rgba(var(--vd-accent), 0.65);
}

.reports-list__reason {
  margin: 0;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #fff;
  white-space: pre-wrap;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  min-width: 13.5rem;
  padding: 0.45rem;
  border-radius: 12px;
  background: rgba(18, 22, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50;
}

.account-dropdown__identity {
  padding: 0.65rem 0.75rem 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.35rem;
  pointer-events: none;
  user-select: text;
}

.account-dropdown__name {
  margin: 0;
  color: #fff;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
}

.account-dropdown__id {
  margin: 0.28rem 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
}

.account-dropdown__item {
  display: block;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.account-dropdown__item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.account-dropdown__item--danger {
  color: #ff5c5c;
  font-weight: 700;
}

.account-dropdown__item--danger:hover {
  background: rgba(255, 92, 92, 0.12);
  color: #ff7575;
}

.profile-panel {
  width: min(100%, 82rem);
}

.profile-card {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  grid-template-areas:
    "avatar meta . stats"
    "button . . stats";
  align-items: start;
  column-gap: 0;
  row-gap: 0.7rem;
  margin-top: 1.25rem;
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-card__avatar {
  grid-area: avatar;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  object-fit: cover;
  background: transparent;
  border: 2px solid #000;
  padding: 0.15rem;
  box-sizing: border-box;
  flex-shrink: 0;
}

.profile-card__meta {
  grid-area: meta;
  min-width: 0;
  max-width: 18rem;
  align-self: start;
  justify-self: start;
  margin: 1.55rem 0 0 -4rem;
  padding: 0;
}

.profile-card__stats {
  grid-area: stats;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  min-width: 19rem;
  margin-left: 1rem;
  padding: 1.35rem 1.5rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
  align-self: center;
}

.profile-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.35rem;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

.profile-stat__label {
  white-space: nowrap;
}

.profile-stat__value {
  font-variant-numeric: tabular-nums;
  font-size: 1.55rem;
  font-weight: 800;
}

.profile-stat--posted {
  color: #4ea1ff;
}

.profile-stat--completed {
  color: #3ddc84;
}

.profile-stat--failed {
  color: #ff5c5c;
}

.profile-card__username {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}

.profile-card__id {
  margin: 0.28rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  line-height: 1.2;
}

.profile-card__roblox {
  grid-area: button;
  justify-self: center;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.62rem 1rem 0.62rem 1.05rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, #2f333a 0%, #1b1e24 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 8px 18px rgba(0, 0, 0, 0.28);
  color: #fff;
  text-decoration: none;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.profile-card__roblox:hover {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, #3a3f48 0%, #22262d 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 10px 22px rgba(0, 0, 0, 0.34);
  color: #fff;
}

.profile-card__roblox:active {
  transform: translateY(0);
}

.profile-card__roblox-label {
  white-space: nowrap;
}

.profile-card__roblox-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  opacity: 0.95;
}

.profile-trades {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-trades__heading {
  margin: 0 0 0.95rem;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.profile-trades__empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.92rem;
}

.profile-trades__feed {
  display: grid;
  gap: 0.85rem;
}

.profile-page .posted-trades-feed .posted-trade__bar {
  background: rgba(var(--vd-header), 0.72);
}

.credits-page,
.tos-page {
  background: transparent;
  min-height: 100vh;
}

.tos-background,
.credits-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: transparent;
  z-index: 0;
}

.tos-background::before,
.tos-background::after,
.credits-background::before,
.credits-background::after {
  content: none;
  position: absolute;
  width: 42vw;
  max-width: 34rem;
  height: 140%;
  top: -20%;
  background: linear-gradient(
    180deg,
    rgba(var(--vd-beam), 0.16) 0%,
    rgba(var(--vd-beam-deep), 0.05) 42%,
    transparent 78%
  );
  filter: blur(28px);
  transform-origin: top center;
  opacity: 0.85;
  animation: home-beam-sway 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.tos-background::before,
.credits-background::before {
  left: 8%;
  transform: rotate(14deg);
}

.tos-background::after,
.credits-background::after {
  right: 4%;
  width: 28vw;
  animation-delay: -4s;
  animation-duration: 16s;
  transform: rotate(-10deg);
  opacity: 0.55;
}

.tos-overlay,
.credits-overlay {
  position: fixed;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.03) 0,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 1;
  pointer-events: none;
}

.tos-content {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: var(--shell-pad-y) var(--shell-pad-x) calc(2rem + var(--safe-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(160, 180, 200, 0.7) rgba(10, 20, 35, 0.55);
}

.tos-content::-webkit-scrollbar {
  width: 10px;
}

.tos-content::-webkit-scrollbar-track {
  background: rgba(10, 20, 35, 0.55);
  border-radius: 999px;
}

.tos-content::-webkit-scrollbar-thumb {
  background: rgba(140, 165, 190, 0.75);
  border-radius: 999px;
  border: 2px solid rgba(10, 20, 35, 0.55);
}

.tos-content::-webkit-scrollbar-thumb:hover {
  background: rgba(170, 195, 220, 0.9);
}

.tos-panel {
  width: min(100%, 82rem);
  padding: 1.75rem 2.5rem 2rem;
  background: rgba(var(--vd-menu), 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.92);
  font-family: "Outfit", system-ui, sans-serif;
}

.tos-heading {
  margin: 0 0 0.45rem;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.tos-effective {
  margin: 0 0 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--vd-brand);
}

.tos-intro {
  margin: 0 0 1.35rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.tos-section {
  margin: 0 0 1.25rem;
}

.tos-section:last-child {
  margin-bottom: 0;
}

.tos-section h2 {
  margin: 0 0 0.45rem;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

.tos-section p,
.tos-section li {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(235, 245, 255, 0.9);
}

.tos-section p + p {
  margin-top: 0.65rem;
}

.tos-section ul {
  margin: 0.55rem 0 0;
  padding-left: 1.2rem;
}

.tos-section li {
  margin-bottom: 0.35rem;
}

.tos-section a {
  color: var(--vd-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.tos-section a:hover {
  color: var(--vd-brand-hot);
}

@keyframes credits-bg-drift {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1%, 1%, 0); }
}

.info-content {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--shell-pad-y) var(--shell-pad-x);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.trading-content {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: var(--shell-pad-y) var(--shell-pad-x);
  box-sizing: border-box;
  overflow: hidden;
}

.trading-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1240px;
  min-height: 0;
  flex: 1;
}

.trading-glass-bar {
  width: 100%;
  flex: 1;
  min-height: clamp(20rem, 58vh, 40rem);
  margin-top: 2.25rem;
  padding: 0.75rem;
  background: rgba(var(--vd-menu), 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  box-sizing: border-box;
  --trading-feed-inline: 0;
  --trading-card-border: 1px;
}

.trading-feed-scroll {
  height: 100%;
  min-height: inherit;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  box-sizing: border-box;
  scrollbar-gutter: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(160, 180, 200, 0.7) rgba(10, 20, 35, 0.55);
}

.trading-feed-scroll::-webkit-scrollbar {
  width: 10px;
}

.trading-feed-scroll::-webkit-scrollbar-track {
  background: rgba(10, 20, 35, 0.55);
  border-radius: 999px;
}

.trading-feed-scroll::-webkit-scrollbar-thumb {
  background: rgba(140, 165, 190, 0.75);
  border-radius: 999px;
  border: 2px solid rgba(10, 20, 35, 0.55);
}

.trading-feed-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(170, 195, 220, 0.9);
}

.trading-feed-scroll::-webkit-scrollbar-button {
  background-color: rgba(10, 20, 35, 0.55);
  height: 12px;
}

.trading-feed-headbar,
.posted-trade__bar {
  display: grid;
  grid-template-columns: minmax(9.5rem, 11.5rem) minmax(0, 1fr) minmax(0, 1fr) minmax(7.5rem, 9rem);
  gap: 0;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
}

.trading-feed-headbar {
  position: sticky;
  top: 0;
  z-index: 2;
  width: 100%;
  margin: 0;
  align-items: stretch;
  /* Horizontal padding must stay 0 so column tracks match trade cards */
  padding: 0;
  background: rgba(var(--vd-header), 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.trading-feed-headbar > * {
  display: flex;
  align-items: center;
  padding: 0.9rem 0.55rem;
  box-sizing: border-box;
}

.trading-feed-headbar > *:first-child {
  justify-content: center;
  padding-left: 0.55rem;
  padding-right: 0.85rem;
  text-align: center;
}

.trading-feed-headbar > *:nth-child(2),
.trading-feed-headbar > *:nth-child(3) {
  justify-content: center;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.trading-feed-headbar__label:nth-child(2),
.trading-feed-headbar__label:nth-child(3) {
  text-align: center;
}

.trading-feed-headbar > *:last-child {
  padding-right: 0.55rem;
}

.trading-feed-headbar > * + * {
  border-left: none;
  position: relative;
}

.trading-feed-headbar > * + *::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 1.4rem;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.trading-feed-headbar__label {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vd-brand);
  text-align: center;
}

.trading-feed-headbar__label--with-btn {
  gap: 0.45rem;
}

.trading-side-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(230, 238, 248, 0.95);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  pointer-events: auto;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.trading-side-filter-btn svg {
  width: 0.95rem;
  height: 0.95rem;
}

.trading-side-filter-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.trading-side-filter-btn:active {
  transform: scale(0.96);
}

.trading-side-filter-btn.is-active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.trade-picker__clear-filter {
  flex-shrink: 0;
  height: 2.35rem;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(230, 238, 248, 0.95);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.trade-picker__clear-filter:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.trading-feed-headbar__label:first-child {
  text-align: center;
}

.trading-feed-headbar__spacer {
  display: block;
}

.posted-trades-feed {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem 0.85rem;
}

body.trading-page .posted-trades-feed {
  padding: 0.65rem 0 0;
}

.posted-trades-empty {
  display: grid;
  place-items: center;
  min-height: min(22rem, 52vh);
  margin: 0;
  padding: 2rem 1.25rem;
  text-align: center;
}

.posted-trades-empty[hidden] {
  display: none !important;
}

.posted-trades-empty__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: min(100%, 22rem);
  padding: 1.5rem 1.35rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.posted-trades-empty__title {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.posted-trades-empty__text {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(var(--vd-accent), 0.72);
}

.posted-trades-empty__cta {
  margin-top: 0.45rem;
  min-height: 2.85rem;
  font-size: 0.88rem;
}

.posted-trade__side-usd {
  margin: 0 0 0.4rem;
  text-align: center;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(0.78rem, 1.6vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  flex-shrink: 0;
  width: 100%;
}

.posted-trade__side-usd--higher {
  color: #fff;
}

.posted-trade__side-usd--lower {
  color: #fff;
}

.posted-trade__value-delta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.45rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.posted-trade__value-delta--win {
  background: rgba(40, 140, 90, 0.35);
  border: 1px solid rgba(120, 220, 160, 0.45);
  color: #9dffc4;
}

.posted-trade__value-delta--lose {
  background: rgba(160, 50, 55, 0.35);
  border: 1px solid rgba(255, 130, 130, 0.4);
  color: #ffb0b0;
}

.posted-trade__value-delta--fair {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(230, 238, 248, 0.88);
}

.posted-trade__bar {
  padding: 0.75rem 0.95rem;
  background: rgba(var(--vd-header), 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.posted-trades-feed .posted-trade__bar {
  gap: 0;
  align-items: stretch;
  padding: 0;
  overflow: visible;
  border-width: var(--trading-card-border, 1px);
}

.posted-trades-feed .posted-trade__bar > * {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  padding: 0.5rem 0.55rem;
  min-height: calc(
    var(--posted-trade-max-rows, 1) * var(--posted-trade-slot-size, 4.5rem)
    + (var(--posted-trade-max-rows, 1) - 1) * var(--posted-trade-gap, 4px)
    + 1rem
  );
}

.posted-trades-feed .posted-trade__offerer,
.posted-trades-feed .posted-trade__meta {
  justify-content: center;
}

.posted-trades-feed .posted-trade__side {
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
  overflow: visible;
}

.posted-trades-feed .posted-trade__offerer {
  padding-right: 0.85rem;
}

.posted-trades-feed .posted-trade__side:first-of-type,
.posted-trades-feed .posted-trade__side:last-of-type {
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.posted-trades-feed .posted-trade__bar > * + * {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.posted-trade__offerer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 0;
  min-height: 100%;
  text-align: center;
}

.posted-trade__offerer-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  text-align: center;
}

.posted-trade__offerer-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  min-width: 0;
  max-width: 100%;
}

.posted-trade__roblox-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  max-width: 100%;
  padding: 0.22rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.posted-trade__roblox-add:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.posted-trade__roblox-add-icon {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.posted-trade__offerer-avatar {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: transparent;
  border: 2px solid #000;
  padding: 0.1rem;
  box-sizing: border-box;
}

.posted-trade__offerer-label,
.posted-trade-modal__offerer-label {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vd-brand);
}

.posted-trade__offerer-name,
.posted-trade-modal__offerer-name {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  word-break: break-word;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
}

a.posted-trade__offerer-name:hover,
a.posted-trade-modal__offerer-name:hover {
  text-decoration: underline;
  color: var(--vd-brand-hot);
}

.posted-trade__side {
  min-width: 0;
}

.posted-trade__side-label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
}

.posted-trade__panel {
  padding: 4px;
}

.posted-trade__grid-scroll {
  aspect-ratio: auto;
  max-height: 6.75rem;
  overflow-y: auto;
}

.posted-trade__grid {
  gap: 3px;
}

.posted-trades-feed .posted-trade__grid-scroll {
  --posted-trade-slot-size: 4.5rem;
  --posted-trade-gap: 4px;
  aspect-ratio: auto;
  width: max-content;
  max-width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.posted-trades-feed .posted-trade__grid-scroll--scrollable {
  overflow-x: hidden;
  overflow-y: auto;
  max-height: calc(
    3 * var(--posted-trade-slot-size)
    + 2 * var(--posted-trade-gap)
  );
}

.posted-trades-feed .posted-trade__panel {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  overflow: visible;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.posted-trades-feed .posted-trade__grid {
  width: max-content;
  max-width: none;
  grid-template-columns: repeat(var(--posted-trade-cols, 3), var(--posted-trade-slot-size));
  grid-auto-rows: var(--posted-trade-slot-size);
  gap: var(--posted-trade-gap);
}

.posted-trades-feed .posted-trade__grid .trade-slot {
  width: var(--posted-trade-slot-size);
  height: var(--posted-trade-slot-size);
  min-width: var(--posted-trade-slot-size);
  min-height: var(--posted-trade-slot-size);
  aspect-ratio: 1;
  flex-shrink: 0;
}

.posted-trades-feed .trade-slot.trade-slot--filled {
  position: relative;
  display: block;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
}

.posted-trades-feed .trade-slot__card {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.posted-trades-feed .trade-slot__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
}

.posted-trades-feed .posted-trade__empty-side {
  width: var(--posted-trade-slot-size);
  height: var(--posted-trade-slot-size);
  min-height: 0;
  font-size: 1rem;
}

.posted-trades-feed .trade-slot__badge {
  width: 1.027rem;
  height: 1.027rem;
  font-size: 0.626rem;
}

.posted-trades-feed .trade-slot__badge--mega {
  width: 1.079rem;
  height: 1.079rem;
  font-size: 0.652rem;
}

.posted-trades-feed .trade-slot__badges {
  gap: 0.117rem;
  right: 2px;
  bottom: 2px;
}

.posted-trade__empty-side {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trade-center--posted-compact {
  width: 2.75rem;
  flex-shrink: 0;
  margin-bottom: 0;
  align-self: center;
}

.trade-center__icon--posted-compact {
  width: 2.75rem;
  transform: translateY(0);
}

.posted-trade__meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  min-width: 0;
}

.posted-trade__timer,
.posted-trade-modal__timer {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 220, 220, 0.88);
  text-align: center;
  white-space: nowrap;
}

.posted-trade__actions,
.posted-trade-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.posted-trade__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.posted-trade__btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.posted-trade__btn--accept,
.posted-trade__btn--mark-completed {
  background: rgba(40, 140, 90, 0.45);
  border-color: rgba(120, 220, 160, 0.5);
}

.posted-trade__btn--accept:hover,
.posted-trade__btn--mark-completed:hover {
  background: rgba(50, 165, 105, 0.62);
  border-color: rgba(140, 235, 180, 0.72);
  box-shadow: none;
}

.posted-trade__btn--delete,
.posted-trade__btn--mark-failed {
  background: rgba(170, 45, 45, 0.45);
  border-color: rgba(255, 120, 120, 0.5);
}

.posted-trade__btn--delete:hover,
.posted-trade__btn--mark-failed:hover {
  background: rgba(190, 55, 55, 0.62);
  border-color: rgba(255, 140, 140, 0.72);
  box-shadow: none;
}

.posted-trade__btn--mark-completed {
  position: relative;
  overflow: hidden;
}

.posted-trade__btn--mark-completed::before,
.posted-trade__btn--mark-failed::before {
  content: none;
}

.posted-trade__btn--mark-failed {
  position: relative;
  overflow: hidden;
}

body.trade-confirm-open {
  overflow: hidden;
}

.trade-confirm {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.trade-confirm[hidden] {
  display: none !important;
}

.trade-confirm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 18, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.trade-confirm__bar {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: 16px;
  background: rgba(var(--vd-menu), 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.trade-confirm__bar--black {
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.trade-confirm__message {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  text-align: center;
}

.trade-confirm__actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.trade-confirm__btn {
  min-width: 5.5rem;
  min-height: 2.55rem;
  padding: 0 1.15rem;
  border-radius: 10px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.trade-confirm__btn--yes {
  border: 1px solid rgba(120, 220, 160, 0.55);
  background: rgba(40, 140, 90, 0.5);
  color: #fff;
}

.trade-confirm__btn--yes:hover {
  background: rgba(50, 165, 105, 0.68);
  border-color: rgba(140, 235, 180, 0.8);
}

.trade-confirm__btn--no {
  border: 1px solid rgba(255, 120, 120, 0.55);
  background: rgba(170, 45, 45, 0.5);
  color: #fff;
}

.trade-confirm__btn--no:hover {
  background: rgba(190, 55, 55, 0.68);
  border-color: rgba(255, 140, 140, 0.8);
}

.trade-confirm__btn:active {
  transform: scale(0.97);
}

.posted-trade-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.posted-trade-modal[hidden] {
  display: none;
}

.posted-trade-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.posted-trade-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  max-height: min(92vh, 760px);
  overflow-y: auto;
  padding: 1.35rem 1.5rem 1.5rem;
  background: rgba(var(--vd-stats-deep), 0.42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(var(--vd-accent), 0.5);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.38);
}

.posted-trade-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.posted-trade-modal__offerer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trade-board--posted-detail {
  width: 100%;
  align-items: flex-end;
}

.trade-board--posted-detail .posted-trade__grid-scroll {
  max-height: 14rem;
}

.trade-center--posted-detail {
  width: clamp(3.5rem, 8vw, 5rem);
  margin-bottom: 0;
}

.trade-center__icon--posted-detail {
  width: 100%;
  transform: translateY(-0.5rem);
}

.posted-trade-modal__actions {
  flex-direction: row;
  justify-content: flex-end;
  margin-top: 1.15rem;
}

.posted-trade-modal__actions .posted-trade__btn {
  min-width: 7.5rem;
  min-height: 2.5rem;
  font-size: 0.8rem;
}

.trading-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
  width: min(100%, 1240px);
  flex-shrink: 0;
  margin-bottom: 0.15rem;
}

.trading-toolbar__intro {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.trading-toolbar__title {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
}

.trading-toolbar__subtitle {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(var(--vd-accent), 0.72);
}

.trading-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

body.trading-page .trading-glass-bar {
  margin-top: 1.15rem;
}

body.trading-page .posted-trades-feed .posted-trade {
  animation: posted-trade-rise 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.trading-page .posted-trades-feed .posted-trade:nth-child(1) { animation-delay: 0.02s; }
body.trading-page .posted-trades-feed .posted-trade:nth-child(2) { animation-delay: 0.05s; }
body.trading-page .posted-trades-feed .posted-trade:nth-child(3) { animation-delay: 0.08s; }
body.trading-page .posted-trades-feed .posted-trade:nth-child(4) { animation-delay: 0.11s; }
body.trading-page .posted-trades-feed .posted-trade:nth-child(5) { animation-delay: 0.14s; }
body.trading-page .posted-trades-feed .posted-trade:nth-child(6) { animation-delay: 0.17s; }

@keyframes posted-trade-rise {
  from {
    opacity: 0;
    transform: translateY(0.55rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.trading-page .posted-trades-feed .posted-trade__bar {
  background: rgba(var(--vd-header), 0.72);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

body.trading-page .posted-trades-feed .posted-trade:hover .posted-trade__bar {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  background: rgba(10, 22, 38, 0.82);
}

body.trading-page .posted-trades-feed .posted-trade--completed .posted-trade__bar {
  background: rgba(25, 90, 55, 0.48);
  border-color: rgba(100, 220, 150, 0.58);
  box-shadow: 0 4px 18px rgba(25, 90, 55, 0.28);
}

body.trading-page .posted-trades-feed .posted-trade--completed:hover .posted-trade__bar {
  background: rgba(30, 110, 68, 0.58);
  border-color: rgba(120, 235, 170, 0.72);
  box-shadow: 0 10px 28px rgba(25, 90, 55, 0.38);
}

body.trading-page .posted-trades-feed .posted-trade--failed .posted-trade__bar {
  background: rgba(120, 30, 30, 0.48);
  border-color: rgba(255, 100, 100, 0.58);
  box-shadow: 0 4px 18px rgba(120, 30, 30, 0.28);
}

body.trading-page .posted-trades-feed .posted-trade--failed:hover .posted-trade__bar {
  background: rgba(145, 40, 40, 0.58);
  border-color: rgba(255, 130, 130, 0.72);
  box-shadow: 0 10px 28px rgba(120, 30, 30, 0.38);
}

body.trading-page .posted-trades-feed .posted-trade--completed .posted-trade__offerer-name,
body.trading-page .posted-trades-feed .posted-trade--completed .posted-trade__timer {
  color: rgba(220, 255, 235, 0.95);
}

body.trading-page .posted-trades-feed .posted-trade--failed .posted-trade__offerer-name,
body.trading-page .posted-trades-feed .posted-trade--failed .posted-trade__timer {
  color: rgba(255, 220, 220, 0.95);
}

body.trading-page .posted-trade__btn--accept {
  font-weight: 800;
  letter-spacing: 0.05em;
}

body.trading-page .posted-trade__offerer-avatar {
  width: 2.45rem;
  height: 2.45rem;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
}

body.trading-page .trading-feed-headbar {
  background: rgba(var(--vd-header), 0.96);
  border-color: rgba(255, 255, 255, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  body.trading-page .posted-trades-feed .posted-trade {
    animation: none !important;
  }

  body.trading-page .posted-trades-feed .posted-trade:hover .posted-trade__bar {
    transform: none;
  }
}

.demand-check-content {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: var(--shell-pad-y) var(--shell-pad-x);
  overflow: hidden;
  box-sizing: border-box;
}

.demand-check-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 1240px;
  min-height: 0;
}

.demand-check-toolbar {
  --demand-check-toolbar-h: 3.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  flex-shrink: 0;
  flex-wrap: nowrap;
  position: relative;
  z-index: 5;
  overflow: visible;
}

.demand-check-items-wrap {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.demand-check-items-wrap .demand-check-other-btn {
  width: var(--demand-check-toolbar-h);
  height: var(--demand-check-toolbar-h);
}

.demand-check-category-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 11.5rem;
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.demand-check-category-menu[hidden] {
  display: none;
}

.demand-check-category {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.demand-check-category__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.9);
}

.demand-check-category__icon svg {
  width: 100%;
  height: 100%;
}

.demand-check-category__label {
  line-height: 1.1;
}

.demand-check-category:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.demand-check-category--active,
.demand-check-category--active:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.demand-check-category--active .demand-check-category__icon {
  color: #fff;
}

.demand-check-other-btn,
.demand-check-calc-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--demand-check-toolbar-h);
  height: var(--demand-check-toolbar-h);
  min-width: var(--demand-check-toolbar-h);
  min-height: var(--demand-check-toolbar-h);
  padding: 0;
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body.trade-calculator-page .trade-action-btn--post {
  display: none;
}

body.trade-calculator-page .trade-center__icon {
  transform: translateY(-4.45rem);
}

body.view-trade-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body.view-trade-page .post-trade-content {
  overflow: hidden;
  align-items: center;
  padding-top: 0.35rem;
  padding-bottom: 0.5rem;
}

body.view-trade-page .trade-glass-bar {
  max-height: 100%;
  width: min(100%, 1120px);
  padding: clamp(0.75rem, 1.5vh, 1.2rem) clamp(1rem, 2vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.45rem, 1vh, 0.75rem);
  box-sizing: border-box;
  overflow: hidden;
}

body.view-trade-page .view-trade-meta {
  flex: 0 0 auto;
  margin-bottom: 0;
  padding-bottom: clamp(0.45rem, 1vh, 0.75rem);
  padding-left: 3.7rem;
}

body.view-trade-page .trade-value-compare {
  flex: 0 0 auto;
  width: 100%;
  margin: 0 auto clamp(0.15rem, 0.8vh, 0.45rem);
  padding: 0 0.35rem;
}

body.view-trade-page .trade-board {
  flex: 0 0 auto;
  width: min(100%, 1000px);
  margin-inline: auto;
  align-items: flex-end;
}

body.view-trade-page .trade-center {
  align-self: stretch;
  position: relative;
  justify-content: flex-end;
}

body.view-trade-page .trade-center__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

body.view-trade-page .trade-side {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.view-trade-page .trade-side__label {
  margin-bottom: clamp(0.3rem, 0.8vh, 0.55rem);
}

body.view-trade-page .trade-center__actions {
  position: relative;
  z-index: 1;
  margin-top: 0;
  flex-direction: column;
}

body.view-trade-page .trade-center__actions:not(:has(button:not([hidden]))) {
  display: none;
}

body.view-trade-page .trade-grid-scroll {
  overflow-x: hidden;
  overflow-y: auto;
}

body.post-trade-page,
body.trade-calculator-page,
body.view-trade-page {
  --trade-primary-rgb: 255, 255, 255;
  --trade-deep-rgb: 0, 0, 0;
  --trade-accent-rgb: 230, 238, 248;
  --trade-primary: #d8e0e8;
  --trade-secondary: #e6eef8;
  --trade-tertiary: #f0f4f8;
  --trade-accent: #e6eef8;
  --trade-muted: rgba(220, 230, 240, 0.72);
  --trade-soft: rgba(230, 238, 248, 0.9);
  --trade-deep: #081220;
  --trade-border: rgba(255, 255, 255, 0.14);
  --trade-border-strong: rgba(255, 255, 255, 0.22);
  --trade-glass: rgba(var(--vd-menu), 0.72);
  --trade-glass-hover: rgba(255, 255, 255, 0.12);
  --trade-glass-shadow: rgba(0, 0, 0, 0.35);
  --trade-inset: rgba(var(--vd-header), 0.55);
  --trade-slot-add: rgba(255, 255, 255, 0.06);
  --trade-slot-add-border: rgba(255, 255, 255, 0.16);
}

body.post-trade-page .trade-return-btn,
body.trade-calculator-page .trade-return-btn,
body.view-trade-page .trade-return-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

body.post-trade-page .trade-return-btn::before,
body.trade-calculator-page .trade-return-btn::before,
body.view-trade-page .trade-return-btn::before {
  background: none;
}

body.post-trade-page .trade-return-btn .trade-action-btn__icon,
body.trade-calculator-page .trade-return-btn .trade-action-btn__icon,
body.view-trade-page .trade-return-btn .trade-action-btn__icon {
  color: #fff;
  filter: none;
}

body.post-trade-page .trade-return-btn:hover,
body.trade-calculator-page .trade-return-btn:hover,
body.view-trade-page .trade-return-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

body.post-trade-page .trade-return-btn:hover .trade-action-btn__icon,
body.trade-calculator-page .trade-return-btn:hover .trade-action-btn__icon,
body.view-trade-page .trade-return-btn:hover .trade-action-btn__icon {
  filter: none;
}

body.post-trade-page .trade-glass-bar,
body.trade-calculator-page .trade-glass-bar,
body.view-trade-page .trade-glass-bar {
  background: rgba(var(--vd-menu), 0.72);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

body.post-trade-page .trade-picker__backdrop,
body.trade-calculator-page .trade-picker__backdrop,
body.view-trade-page .trade-picker__backdrop {
  background: rgba(6, 12, 22, 0.55);
}

body.post-trade-page .trade-action-btn:hover,
body.trade-calculator-page .trade-action-btn:hover,
body.view-trade-page .trade-action-btn:hover {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
}

body.post-trade-page .trade-slot--add:hover,
body.trade-calculator-page .trade-slot--add:hover,
body.view-trade-page .trade-slot--add:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

body.post-trade-page .trade-slot,
body.trade-calculator-page .trade-slot,
body.view-trade-page .trade-slot,
body.post-trade-page .trade-slot__card,
body.trade-calculator-page .trade-slot__card,
body.view-trade-page .trade-slot__card {
  border-radius: 18px;
}

body.post-trade-page .trade-picker__pet-popout-card,
body.trade-calculator-page .trade-picker__pet-popout-card {
  background: rgba(118, 110, 114, 0.46);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

body.post-trade-page .trade-picker__quantity-btn,
body.trade-calculator-page .trade-picker__quantity-btn,
body.post-trade-page .trade-picker__pet-confirm,
body.trade-calculator-page .trade-picker__pet-confirm,
body.post-trade-page .trade-picker__pet-cancel,
body.trade-calculator-page .trade-picker__pet-cancel {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.post-trade-page .trade-picker__quantity-btn:hover:not(:disabled),
body.trade-calculator-page .trade-picker__quantity-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

body.post-trade-page .trade-picker__quantity-btn:hover:not(:disabled) svg,
body.trade-calculator-page .trade-picker__quantity-btn:hover:not(:disabled) svg {
  filter: none;
}

body.post-trade-page .trade-slot__card,
body.trade-calculator-page .trade-slot__card,
body.view-trade-page .trade-slot__card {
  background: rgba(150, 142, 146, 0.34);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow:
    0 0 8px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body.post-trade-page .trade-slot__qty,
body.trade-calculator-page .trade-slot__qty,
body.view-trade-page .trade-slot__qty {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

body.post-trade-page .trade-board .trade-slot__badges,
body.trade-calculator-page .trade-board .trade-slot__badges,
body.view-trade-page .trade-board .trade-slot__badges {
  right: 5px;
}

body.post-trade-page .trade-value-compare__fill--yours,
body.trade-calculator-page .trade-value-compare__fill--yours,
body.view-trade-page .trade-value-compare__fill--yours {
  background: rgba(255, 255, 255, 0.85);
}

body.post-trade-page .trade-value-compare--win .trade-value-compare__fill--yours,
body.trade-calculator-page .trade-value-compare--win .trade-value-compare__fill--yours,
body.view-trade-page .trade-value-compare--win .trade-value-compare__fill--yours {
  background: rgba(50, 185, 110, 0.95);
}

body.post-trade-page .trade-value-compare--lose .trade-value-compare__fill--yours,
body.trade-calculator-page .trade-value-compare--lose .trade-value-compare__fill--yours,
body.view-trade-page .trade-value-compare--lose .trade-value-compare__fill--yours {
  background: rgba(230, 75, 75, 0.95);
}

body.post-trade-page .trade-value-compare--fair .trade-value-compare__fill--yours,
body.trade-calculator-page .trade-value-compare--fair .trade-value-compare__fill--yours,
body.view-trade-page .trade-value-compare--fair .trade-value-compare__fill--yours {
  background: rgba(255, 255, 255, 0.9);
}

.view-trade-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.view-trade-offerer {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.view-trade-offerer__person {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.view-trade-offerer__avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: transparent;
  border: 2px solid #000;
  padding: 0.1rem;
  box-sizing: border-box;
}

.view-trade-offerer__label {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vd-brand);
}

.view-trade-offerer__name {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

a.view-trade-offerer__name:hover {
  text-decoration: underline;
  color: var(--vd-brand-hot);
}

.view-trade-timer {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 220, 220, 0.88);
  white-space: nowrap;
}

.trade-action-btn--accept,
.trade-action-btn--delete {
  position: relative;
  overflow: hidden;
}

.trade-action-btn--accept {
  background: rgba(40, 140, 90, 0.45);
  border-color: rgba(120, 220, 160, 0.5);
}

.trade-action-btn--delete {
  background: rgba(170, 45, 45, 0.45);
  border-color: rgba(255, 120, 120, 0.5);
}

.trade-action-btn--accept::before,
.trade-action-btn--delete::before,
.trade-action-btn--return::before {
  content: none;
}

.trade-action-btn--return {
  position: relative;
  overflow: hidden;
}

.trade-action-btn--accept:hover {
  background: rgba(50, 165, 105, 0.62);
  border-color: rgba(140, 235, 180, 0.72);
  box-shadow: 0 6px 22px rgba(40, 140, 90, 0.28);
}

.trade-action-btn--delete:hover {
  background: rgba(190, 55, 55, 0.62);
  border-color: rgba(255, 140, 140, 0.72);
  box-shadow: 0 6px 22px rgba(170, 45, 45, 0.28);
}

.trade-action-btn--return:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
}

.trade-action-btn--accept .trade-action-btn__label,
.trade-action-btn--delete .trade-action-btn__label,
.trade-action-btn--return .trade-action-btn__label {
  position: relative;
  z-index: 1;
}

body.view-trade-page .trade-slot--add {
  display: none;
}

.demand-check-other-btn:hover,
.demand-check-calc-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.demand-check-other-btn svg,
.demand-check-calc-btn svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

.demand-check-search {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: none;
  margin-inline: 0;
}

.demand-check-hint {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.demand-check-grid-scroll {
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.35rem;
  scrollbar-width: auto;
  scrollbar-color: rgba(255, 255, 255, 0.4) rgba(255, 255, 255, 0.08);
}

.demand-check-grid-scroll::-webkit-scrollbar {
  width: 14px;
}

.demand-check-grid-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.demand-check-grid-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  border: 3px solid transparent;
  background-clip: padding-box;
}

.demand-check-grid-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
  background-clip: padding-box;
}

.demand-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 0.5rem;
  contain: content;
}

.demand-check-pet-card.trade-picker__pet-popout-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  width: 100%;
  padding: 1rem 1.15rem;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  content-visibility: auto;
  contain-intrinsic-size: auto 140px;
}

.demand-check-pet-card__edit {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.demand-check-pet-card__edit:hover {
  background: rgba(var(--vd-stats-deep), 0.75);
  border-color: rgba(255, 255, 255, 0.7);
}

.demand-check-pet-card__edit svg {
  width: 1.05rem;
  height: 1.05rem;
}

.value-edit-modal[hidden] {
  display: none !important;
}

.value-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.value-edit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 20, 0.72);
  backdrop-filter: blur(8px);
}

.value-edit-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  max-height: min(92vh, 42rem);
  overflow: auto;
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(var(--vd-accent), 0.28);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(var(--vd-glow), 0.16), transparent 55%),
    radial-gradient(100% 70% at 100% 0%, rgba(120, 8, 12, 0.18), transparent 50%),
    linear-gradient(165deg, rgba(var(--vd-menu), 0.98) 0%, rgba(6, 2, 2, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 60px rgba(0, 0, 0, 0.55);
}

.value-edit-modal__title {
  margin: 0;
  font-family: "Syne", "Outfit", system-ui, sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.value-edit-modal__name {
  margin: 0.3rem 0 1.15rem;
  color: rgba(170, 210, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 500;
}

.value-edit-modal__fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.value-edit-modal__fields--variants {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.value-edit-modal__category {
  position: relative;
  padding: 0.85rem 0.9rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.value-edit-modal__category::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 14px 0 0 14px;
}

.value-edit-modal__category--regular {
  border-color: rgba(255, 48, 48, 0.32);
  background:
    linear-gradient(135deg, rgba(var(--vd-glow), 0.12), transparent 42%),
    rgba(0, 0, 0, 0.28);
}

.value-edit-modal__category--regular::before {
  background: linear-gradient(180deg, #ff5a5a, #dc1018);
  box-shadow: 0 0 12px rgba(var(--vd-glow), 0.55);
}

.value-edit-modal__category--neon {
  border-color: rgba(140, 255, 0, 0.28);
  background:
    linear-gradient(135deg, rgba(140, 255, 0, 0.1), transparent 42%),
    rgba(0, 0, 0, 0.28);
}

.value-edit-modal__category--neon::before {
  background: linear-gradient(180deg, #b8ff4a, #8cff00);
  box-shadow: 0 0 12px rgba(140, 255, 0, 0.5);
}

.value-edit-modal__category--mega {
  border-color: rgba(180, 74, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(180, 74, 255, 0.14), transparent 42%),
    rgba(0, 0, 0, 0.28);
}

.value-edit-modal__category--mega::before {
  background: linear-gradient(180deg, #c87aff, #7a1fd4);
  box-shadow: 0 0 12px rgba(166, 0, 255, 0.5);
}

.value-edit-modal__category-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.value-edit-modal__category-mark {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex: 0 0 auto;
}

.value-edit-modal__category--regular .value-edit-modal__category-mark {
  background: #ff3030;
  box-shadow: 0 0 10px rgba(var(--vd-glow), 0.85);
}

.value-edit-modal__category--neon .value-edit-modal__category-mark {
  background: #8cff00;
  box-shadow: 0 0 10px rgba(140, 255, 0, 0.85);
}

.value-edit-modal__category--mega .value-edit-modal__category-mark {
  background: #b44aff;
  box-shadow: 0 0 10px rgba(180, 74, 255, 0.85);
}

.value-edit-modal__category-title {
  margin: 0;
  font-family: "Syne", "Outfit", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(235, 245, 255, 0.92);
}

.value-edit-modal__category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.value-edit-modal__field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
}

.value-edit-modal__field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vd-brand);
}

.value-edit-modal__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.value-edit-modal__currency {
  position: absolute;
  left: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(160, 200, 255, 0.55);
  pointer-events: none;
}

.value-edit-modal__field input {
  width: 100%;
  min-width: 0;
  padding: 0.55rem 0.55rem 0.55rem 1.25rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(4, 10, 22, 0.72);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.value-edit-modal__field input:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.value-edit-modal__field input:focus {
  outline: none;
  border-color: rgba(var(--vd-accent), 0.8);
  box-shadow: 0 0 0 3px rgba(var(--vd-stats-deep), 0.28);
  background: rgba(12, 4, 4, 0.92);
}

.value-edit-modal__category--neon .value-edit-modal__field input:focus {
  border-color: rgba(140, 255, 0, 0.7);
  box-shadow: 0 0 0 3px rgba(140, 255, 0, 0.18);
}

.value-edit-modal__category--mega .value-edit-modal__field input:focus {
  border-color: rgba(180, 74, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(180, 74, 255, 0.2);
}

.value-edit-modal__status {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 220, 220, 0.9);
}

.value-edit-modal__status--error {
  color: #ff8f8f;
}

.value-edit-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.value-edit-modal__btn {
  min-height: 2.45rem;
  padding: 0.45rem 1.05rem;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.value-edit-modal__btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.value-edit-modal__btn:active {
  transform: translateY(1px);
}

.value-edit-modal__btn--save {
  background: linear-gradient(180deg, var(--vd-brand-hot), var(--vd-brand-deep));
  border-color: rgba(var(--vd-accent), 0.7);
  color: var(--vd-on-brand);
  box-shadow: 0 8px 20px rgba(var(--vd-stats-deep), 0.35);
}

.value-edit-modal__btn--save:hover {
  background: linear-gradient(180deg, var(--vd-brand), var(--vd-brand-deep));
}

@media (max-width: 420px) {
  .value-edit-modal__category-grid {
    grid-template-columns: 1fr;
  }

  .value-edit-modal__panel {
    width: min(100%, 22rem);
  }
}

.demand-check-pet-card__media {
  flex: 0 0 38%;
  width: auto;
  min-width: 0;
  max-width: 7.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.demand-check-pet-card .trade-picker__pet-bar-preview {
  width: 100%;
  max-width: 6.25rem;
  aspect-ratio: 1;
  height: auto;
}

.demand-check-pet-card .trade-picker__pet-bar-badges {
  right: 0;
  bottom: 0;
  gap: 0.14rem;
}

.demand-check-pet-card .trade-picker__pet-bar-badges .trade-slot__badge {
  width: 1.15rem;
  height: 1.15rem;
  font-size: 0.64rem;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.demand-check-pet-card .trade-picker__pet-bar-badges .trade-slot__badge--mega {
  width: 1.2rem;
  height: 1.2rem;
  font-size: 0.66rem;
}

.demand-check-pet-card .trade-picker__pet-bar-info {
  flex: 1;
  min-width: 0;
  gap: 0.65rem;
  padding-top: 0.15rem;
  justify-content: center;
}

.demand-check-pet-card .trade-picker__pet-bar-name {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  letter-spacing: 0.01em;
  text-transform: none;
  text-shadow: none;
  line-height: 1.15;
}

.demand-check-pet-card .trade-picker__potions,
.demand-check-pet-card__potions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  gap: 0.35rem;
  width: 100%;
}

.demand-check-pet-card .trade-picker__potion {
  width: 2.15rem;
  height: 2.15rem;
  min-width: 2.15rem;
  font-size: 0.88rem;
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: none;
  background: rgba(62, 62, 66, 0.95);
}

.demand-check-pet-card .trade-picker__potion--fly.trade-picker__potion--active {
  background: #00aeef;
  box-shadow: 0 0 8px rgba(0, 174, 239, 0.4);
}

.demand-check-pet-card .trade-picker__potion--ride.trade-picker__potion--active {
  background: #ff007f;
  box-shadow: 0 0 8px rgba(255, 0, 127, 0.4);
}

.demand-check-pet-card .trade-picker__potion--neon.trade-picker__potion--active {
  background: #8cff00;
  box-shadow: 0 0 8px rgba(140, 255, 0, 0.4);
}

.demand-check-pet-card .trade-picker__potion--mega.trade-picker__potion--active {
  background: linear-gradient(180deg, #b44aff 0%, #7a1fd4 100%);
  box-shadow: 0 0 8px rgba(166, 0, 255, 0.4);
}

.demand-check-pet-card__stats {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin-top: 0;
}

.demand-check-value {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-height: 1.85rem;
  padding: 0.4rem 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.demand-check-value__label {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1;
  flex-shrink: 0;
}

.demand-check-value__amount {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1;
  text-align: right;
}

.trading-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.trading-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32);
}

.trading-btn:active {
  transform: translateY(0);
}

.trading-btn--with-icon {
  padding-left: 1rem;
  padding-right: 1.35rem;
}

.trading-btn--icon-only {
  width: 3.5rem;
  min-width: 3.5rem;
  padding: 0;
}

.trading-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
}

.trading-btn__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.trading-btn__label {
  line-height: 1;
}

a.trading-btn {
  text-decoration: none;
}

.trading-btn--active {
  background: rgba(40, 140, 90, 0.48);
  border-color: rgba(120, 220, 160, 0.62);
  box-shadow: 0 6px 24px rgba(40, 140, 90, 0.28);
}

.trading-btn--primary-cta {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
}

.trading-btn--primary-cta:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.posted-trade__role--failed {
  background: rgba(170, 45, 45, 0.38);
  border: 1px solid rgba(255, 120, 120, 0.45);
  color: rgba(255, 220, 220, 0.95);
}

.posted-trade__role--completed {
  background: rgba(40, 140, 90, 0.38);
  border: 1px solid rgba(120, 220, 160, 0.45);
  color: rgba(220, 255, 235, 0.95);
}

.posted-trade--completed .posted-trade__bar {
  background: rgba(25, 90, 55, 0.42);
  border-color: rgba(100, 220, 150, 0.58);
  box-shadow: 0 4px 18px rgba(25, 90, 55, 0.28);
}

.posted-trade--completed .posted-trade__offerer-name,
.posted-trade--completed .posted-trade__timer {
  color: rgba(220, 255, 235, 0.95);
}

.posted-trade--failed .posted-trade__bar {
  background: rgba(120, 30, 30, 0.42);
  border-color: rgba(255, 100, 100, 0.58);
  box-shadow: 0 4px 18px rgba(120, 30, 30, 0.28);
}

.posted-trade--failed .posted-trade__offerer-name,
.posted-trade--failed .posted-trade__timer {
  color: rgba(255, 220, 220, 0.95);
}

.posted-trade__role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

.posted-trade__role--accepted {
  background: rgba(var(--vd-stats-deep), 0.42);
  border: 1px solid rgba(var(--vd-accent), 0.48);
  color: var(--vd-brand);
}

.posted-trade__role--posted {
  background: rgba(var(--vd-stats-deep), 0.42);
  border: 1px solid rgba(var(--vd-accent), 0.48);
  color: var(--vd-brand);
}

.post-trade-content {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0.65rem var(--shell-pad-x) var(--shell-pad-y);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

body.post-trade-page .trade-glass-bar,
body.trade-calculator-page .trade-glass-bar {
  margin-top: 5rem;
}

body.view-trade-page .trade-glass-bar {
  margin-top: clamp(0.35rem, 1.5vh, 0.85rem);
}

.trade-glass-bar {
  position: relative;
  width: min(100%, 1120px);
  padding: 2.5rem 2.75rem;
  background: var(--trade-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--trade-border);
  border-radius: 18px;
  box-shadow:
    0 8px 40px var(--trade-glass-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.trade-return-btn {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  z-index: 2;
  width: 2.85rem;
  min-height: 2.85rem;
  padding: 0;
  gap: 0;
  border-radius: 12px;
  background: rgba(var(--trade-primary-rgb), 0.3);
  border: 1px solid rgba(var(--trade-accent-rgb), 0.42);
  box-shadow:
    0 4px 20px rgba(var(--trade-deep-rgb), 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: background 0.22s, border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}

.trade-return-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 28% 22%, rgba(var(--trade-accent-rgb), 0.28), transparent 62%);
  pointer-events: none;
}

.trade-return-btn .trade-action-btn__icon {
  position: relative;
  z-index: 1;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--trade-accent);
  filter: drop-shadow(0 0 5px rgba(var(--trade-accent-rgb), 0.5));
  transition: transform 0.22s ease, filter 0.22s ease, color 0.22s ease;
}

.trade-return-btn:hover {
  background: rgba(var(--trade-primary-rgb), 0.44);
  border-color: rgba(var(--trade-accent-rgb), 0.72);
  box-shadow:
    0 8px 28px rgba(var(--trade-accent-rgb), 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.trade-return-btn:hover .trade-action-btn__icon {
  transform: translateX(-3px);
  color: #fff;
  filter: drop-shadow(0 0 10px rgba(var(--trade-accent-rgb), 0.75));
}

.trade-return-btn:active {
  transform: translateY(0);
}

.trade-value-compare {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: min(100%, 1000px);
  margin: 0 auto 1.25rem;
  padding: 0 0.95rem;
}

.trade-value-compare__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.trade-value-compare__side {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.trade-value-compare__side:last-child {
  align-items: flex-end;
  text-align: right;
}

.trade-value-compare__label {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(0.72rem, 1.6vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--trade-text-muted);
}

.trade-value-compare__amount {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 700;
  color: var(--trade-text);
  white-space: nowrap;
  line-height: 1.1;
}

.trade-value-compare__bar-wrap {
  position: relative;
  width: 100%;
}

.trade-value-compare__bar {
  display: flex;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.trade-value-compare__fill {
  min-width: 0;
  transition: flex 0.25s ease;
}

.trade-value-compare__fill--yours {
  background: rgba(255, 255, 255, 0.85);
}

.trade-value-compare__fill--theirs {
  background: rgba(255, 255, 255, 0.55);
}

.trade-value-compare--win .trade-value-compare__fill--yours {
  background: rgba(50, 185, 110, 0.95);
}

.trade-value-compare--win .trade-value-compare__fill--theirs {
  background: rgba(40, 150, 90, 0.55);
}

.trade-value-compare--lose .trade-value-compare__fill--yours {
  background: rgba(230, 75, 75, 0.95);
}

.trade-value-compare--lose .trade-value-compare__fill--theirs {
  background: rgba(180, 50, 50, 0.55);
}

.trade-value-compare--fair .trade-value-compare__fill--yours {
  background: rgba(255, 255, 255, 0.9);
}

.trade-value-compare--fair .trade-value-compare__fill--theirs {
  background: rgba(255, 255, 255, 0.55);
}

.trade-value-compare__midline {
  position: absolute;
  left: 50%;
  top: -2px;
  width: 2px;
  height: 9px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1px;
  pointer-events: none;
}

.trade-value-compare__verdict {
  display: block;
  margin-top: 0.4rem;
  text-align: center;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--trade-text-muted);
  line-height: 1;
}

.trade-value-compare--win .trade-value-compare__verdict {
  color: #6dff9a;
}

.trade-value-compare--lose .trade-value-compare__verdict {
  color: #ff8585;
}

.trade-value-compare--fair .trade-value-compare__verdict {
  color: var(--trade-text-muted);
}

body.trade-calculator-page .trade-side__label,
body.post-trade-page .trade-side__label,
body.view-trade-page .trade-side__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.trade-board {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  width: min(100%, 1000px);
}

.trade-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 0;
  min-width: 0;
}

.trade-side__label {
  margin: 0 0 0.85rem;
  text-align: center;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--trade-text);
  text-shadow: 0 2px 12px rgba(var(--trade-primary-rgb), 0.35);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-side__label--name,
.trade-value-compare__label--name {
  text-transform: none;
  letter-spacing: 0.02em;
}

.trade-panel {
  flex: none;
  min-width: 0;
  padding: 7px;
  background: var(--trade-inset);
  border: 1px solid var(--trade-border);
  border-radius: 18px;
  box-shadow:
    0 8px 32px rgba(var(--trade-deep-rgb), 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.trade-grid-scroll {
  width: 100%;
  aspect-ratio: 1;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.trade-grid-scroll::-webkit-scrollbar {
  width: 6px;
}

.trade-grid-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.trade-grid-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.trade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
}

.trade-slot {
  aspect-ratio: 1;
  background: var(--trade-slot-add);
  border: 1px solid var(--trade-slot-add-border);
  border-radius: 6px;
}

.trade-slot--add {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.trade-slot--add:hover {
  background: rgba(var(--trade-accent-rgb), 0.22);
  border-color: rgba(var(--trade-accent-rgb), 0.55);
  box-shadow: 0 0 12px rgba(var(--trade-accent-rgb), 0.22);
}

.trade-slot.trade-slot--filled {
  position: relative;
  display: block;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: pointer;
}

.trade-slot__card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px) saturate(1.35) brightness(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.35) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  box-shadow:
    0 0 8px rgba(0, 0, 0, 0.55),
    0 0 14px rgba(0, 0, 0, 0.28),
    0 0 10px rgba(255, 255, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 0 20px rgba(255, 255, 255, 0.22);
}

.trade-slot__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  padding: 2px;
}

.trade-slot__qty {
  position: absolute;
  left: 4px;
  bottom: 3px;
  z-index: 3;
  padding: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  color: #222;
  line-height: 1;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.9);
}

.trade-slot__badges {
  position: absolute;
  right: 2px;
  bottom: 2px;
  z-index: 4;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.14rem;
  pointer-events: none;
}

.trade-slot__badge {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.18rem;
  height: 1.18rem;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.trade-slot__badge--mega {
  z-index: 1;
  width: 1.24rem;
  height: 1.24rem;
  font-size: 0.75rem;
  border-radius: 3px;
  background: linear-gradient(180deg, #c85aff 0%, #8b2fe0 100%);
}

.trade-slot__badge--neon {
  z-index: 2;
  border-radius: 50%;
  background: #8cff00;
  color: #fff;
}

.trade-slot__badge--fly {
  z-index: 3;
  border-radius: 50%;
  background: #00c3ff;
}

.trade-slot__badge--ride {
  z-index: 4;
  border-radius: 50%;
  background: #ff0066;
}

.trade-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68%;
  height: 68%;
  border-radius: 50%;
  background: rgba(var(--trade-accent-rgb), 0.14);
  border: 2px solid rgba(var(--trade-accent-rgb), 0.38);
  color: var(--trade-text);
  box-shadow: 0 2px 10px rgba(var(--trade-primary-rgb), 0.16);
}

.trade-add-btn svg {
  width: 55%;
  height: 55%;
}

.trade-center {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  width: clamp(8.5rem, 14vw, 10.5rem);
  margin-bottom: 0;
  align-self: flex-end;
  color: rgba(var(--trade-accent-rgb), 0.55);
}

.trade-center__icon {
  width: clamp(4.5rem, 12vw, 6.75rem);
  height: auto;
  transform: translateY(-1.25rem);
  shape-rendering: geometricPrecision;
  overflow: visible;
}

.trade-center__icon-shape rect,
.trade-center__icon-shape polygon {
  fill: currentColor;
  stroke: rgba(var(--trade-deep-rgb), 0.85);
  stroke-width: 2.5;
  stroke-linejoin: miter;
  stroke-linecap: butt;
  paint-order: stroke fill;
  filter: drop-shadow(0 0 4px rgba(var(--trade-deep-rgb), 0.75));
}

.trade-center__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
}

.trade-post-error {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(170, 45, 45, 0.32);
  border: 1px solid rgba(255, 120, 120, 0.48);
  color: rgba(255, 220, 220, 0.95);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.trade-post-error a {
  color: var(--vd-brand);
  font-weight: 700;
}

.trade-action-btn[hidden] {
  display: none !important;
}

.trade-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.65rem;
  padding: 0.6rem 1rem;
  background: var(--trade-glass);
  border: 1px solid var(--trade-border);
  border-radius: 10px;
  box-shadow: 0 4px 18px var(--trade-glass-shadow);
  color: var(--trade-text);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

a.trade-action-btn {
  text-decoration: none;
}

.trade-action-btn:hover {
  background: var(--trade-glass-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(var(--trade-primary-rgb), 0.35);
}

.trade-action-btn:active {
  transform: translateY(0);
}

.trade-action-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: var(--trade-accent);
}

.trade-action-btn__icon svg {
  width: 100%;
  height: 100%;
}

.trade-action-btn__label {
  line-height: 1;
}

.trade-picker {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}

.trade-picker[hidden] {
  display: none !important;
}

.trade-picker--filter {
  z-index: 130;
}

.trade-picker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 40, 70, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.trade-picker__panel {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 58.5rem);
  max-width: calc(100vw - 4rem);
  height: min(72vh, 580px);
  box-sizing: border-box;
  background: rgba(25, 25, 25, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.trade-picker__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  flex-shrink: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  color: var(--trade-text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.trade-picker__close svg {
  width: 1.35rem;
  height: 1.35rem;
}

.trade-picker__close:hover {
  background: rgba(220, 38, 38, 0.32);
  border-color: rgba(248, 113, 113, 0.85);
  color: #fff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.28);
}

.trade-picker__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.trade-picker__toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 0.85rem 1.25rem 0;
}

.trade-picker__search-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
  height: 2.85rem;
  padding: 0 1.1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.trade-picker__search-wrap:focus-within {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.trade-picker__search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--trade-text-muted);
  pointer-events: none;
}

.trade-picker__search-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

.trade-picker__search {
  flex: 1;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--trade-text);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  outline: none;
}

.trade-picker__search::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.trade-picker__search::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.trade-picker__categories {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 11.5rem;
  flex-shrink: 0;
  align-self: stretch;
  padding: 0.65rem 0.65rem;
  background: rgba(0, 0, 0, 0.28);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
  overflow: hidden;
}

.trade-picker__category {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  padding: 0 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: var(--trade-text);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.trade-picker__category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  color: var(--trade-text-muted);
}

.trade-picker__category-icon svg {
  width: 100%;
  height: 100%;
}

.trade-picker__category-icon--dollar {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.trade-picker__category-label {
  line-height: 1.1;
}

.trade-picker__category--active .trade-picker__category-icon {
  color: #fff;
}

.trade-picker__category:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

.trade-picker__category--active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
}

.trade-picker__category--theirs-only {
  display: none;
}

.trade-picker__panel[data-side="theirs"] .trade-picker__category--theirs-only {
  display: inline-flex;
}

.trade-picker__content {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 0.75rem 1.25rem 1.25rem;
  background: rgba(0, 0, 0, 0.18);
  overflow: hidden;
  box-sizing: border-box;
}

.trade-picker__panel-content {
  display: none;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.trade-picker__panel-content--active {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.trade-picker__hint {
  margin: auto;
  color: var(--trade-text-muted);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
}

.trade-picker__items {
  --pet-gap: 0.8rem;
  --pet-cols: 6;
  --pet-width: calc((100% - (var(--pet-cols) - 1) * var(--pet-gap)) / var(--pet-cols));
  display: flex;
  flex-wrap: wrap;
  gap: var(--pet-gap);
  flex: 1;
  width: 100%;
  align-content: flex-start;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(160, 160, 160, 0.75) rgba(15, 15, 15, 0.85);
  box-sizing: border-box;
  contain: content;
}

.trade-picker__items::-webkit-scrollbar {
  width: 8px;
}

.trade-picker__items::-webkit-scrollbar-track {
  background: rgba(10, 10, 10, 0.75);
  border-radius: 999px;
}

.trade-picker__items::-webkit-scrollbar-thumb {
  background: rgba(90, 90, 90, 0.95);
  border-radius: 999px;
  border: 2px solid rgba(10, 10, 10, 0.75);
}

.trade-picker__items::-webkit-scrollbar-thumb:hover {
  background: rgba(130, 130, 130, 0.95);
}

.trade-picker__item {
  position: relative;
  display: block;
  flex: 0 0 var(--pet-width);
  width: var(--pet-width);
  height: 0;
  padding: 0;
  padding-bottom: var(--pet-width);
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  box-shadow:
    0 4px 16px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.trade-picker__item:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 4px 14px rgba(255, 255, 255, 0.12);
}

.trade-picker__item--selected {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 4px 14px rgba(255, 255, 255, 0.12);
}

.trade-picker__item--disabled {
  opacity: 0.38;
  pointer-events: none;
  cursor: not-allowed;
}

.trade-picker__pet-popout {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.trade-picker__pet-popout[hidden] {
  display: none;
}

.trade-picker__pet-popout-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  min-width: min(100%, 28rem);
  min-height: 17.5rem;
  padding: 2rem 2.25rem 1.15rem;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(24px) saturate(1.35) brightness(1.08);
  -webkit-backdrop-filter: blur(24px) saturate(1.35) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  box-shadow:
    0 0 10px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(0, 0, 0, 0.28),
    0 0 14px rgba(255, 255, 255, 0.35),
    0 24px 64px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 0 28px rgba(255, 255, 255, 0.22);
}

.trade-picker__pet-bar-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 11rem;
  min-width: 11rem;
  flex-shrink: 0;
}

.trade-picker__pet-bar-preview {
  position: relative;
  width: 8.5rem;
  height: 8.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trade-picker__pet-bar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: none;
  border: none;
  border-radius: 0;
}

.trade-picker__pet-bar-badges {
  position: absolute;
  right: 0.15rem;
  bottom: 0.15rem;
  gap: 0.18rem;
}

.trade-picker__pet-bar-badges .trade-slot__badge {
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.78rem;
}

.trade-picker__pet-bar-badges .trade-slot__badge--mega {
  width: 1.42rem;
  height: 1.42rem;
  font-size: 0.8rem;
}

.trade-picker__quantity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 11rem;
  min-width: 11rem;
}

.trade-picker__quantity-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 2rem;
}

.trade-picker__quantity-line[hidden],
.trade-picker__quantity-actions[hidden] {
  display: none !important;
}

.trade-picker__quantity-label,
.trade-picker__quantity-value {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1;
  text-shadow:
    0 0 6px rgba(160, 160, 160, 0.9),
    0 0 3px rgba(140, 140, 140, 0.85),
    -1px 0 0 rgba(140, 140, 140, 0.75),
    1px 0 0 rgba(140, 140, 140, 0.75),
    0 -1px 0 rgba(140, 140, 140, 0.75),
    0 1px 0 rgba(140, 140, 140, 0.75);
}

.trade-picker__quantity-value {
  display: inline-block;
  width: 2.5ch;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.trade-picker__quantity-line--usd {
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  min-height: 0;
}

.trade-picker__usd-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  outline: none;
}

.trade-picker__usd-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.trade-picker__usd-input:focus {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.trade-picker__usd-input--invalid {
  border-color: rgba(255, 110, 110, 0.9);
  box-shadow: 0 0 0 2px rgba(var(--vd-beam), 0.2);
}

.trade-slot__usd-tag {
  position: absolute;
  left: 50%;
  bottom: 0.25rem;
  transform: translateX(-50%);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.trade-slot__network-badge {
  position: absolute;
  top: 0.15rem;
  right: 0.15rem;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 3;
}

.trade-picker__networks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  width: 100%;
  /* Keep network options just clear of the absolute X / checkmark buttons */
  padding-bottom: 1.1rem;
  padding-right: 6.5rem;
  box-sizing: border-box;
}

.trade-picker__pet-popout-card:has(.trade-picker__networks:not([hidden])) {
  min-height: 19.5rem;
  padding-bottom: 1.2rem;
}

.trade-picker__networks[hidden] {
  display: none !important;
}

.trade-picker__networks-label {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 6px rgba(160, 160, 160, 0.9),
    0 0 3px rgba(140, 140, 140, 0.85);
}

.trade-picker__networks-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.trade-picker__network {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.trade-picker__network-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.25);
}

.trade-picker__network-label-full {
  display: inline;
  white-space: nowrap;
}

.trade-picker__network-label-short {
  display: none;
}

.trade-picker__network:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.7);
}

.trade-picker__network--active {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 0 10px rgba(255, 255, 255, 0.18);
}

.trade-picker__networks--invalid .trade-picker__network,
.trade-picker__network--invalid {
  border-color: rgba(255, 110, 110, 0.9);
}

.trade-picker__quantity-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 2.75rem;
}

.trade-picker__quantity-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  min-width: 2.65rem;
  min-height: 2.65rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 0 8px rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}

.trade-picker__quantity-btn svg {
  width: 1.45rem;
  height: 1.45rem;
  color: #fff;
  transition: filter 0.15s ease;
}

.trade-picker__quantity-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 14px rgba(255, 255, 255, 0.35),
    0 0 22px rgba(255, 255, 255, 0.18);
}

.trade-picker__quantity-btn:hover:not(:disabled) svg {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 1)) drop-shadow(0 0 14px rgba(255, 255, 255, 0.75));
}

.trade-picker__quantity-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.trade-picker__quantity-btn:active:not(:disabled) {
  transform: none;
}

.trade-picker__pet-bar-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.2rem;
}

.trade-picker__pet-bar-name {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.85rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.85),
    0 0 3px rgba(0, 0, 0, 0.75),
    -1px 0 0 rgba(0, 0, 0, 0.65),
    1px 0 0 rgba(0, 0, 0, 0.65),
    0 -1px 0 rgba(0, 0, 0, 0.65),
    0 1px 0 rgba(0, 0, 0, 0.65);
}

.trade-picker__potions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
}

.trade-picker__potions[hidden] {
  display: none !important;
}

.trade-picker__potion {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border-radius: 10px;
  border: none;
  background: rgba(55, 55, 55, 0.95);
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.trade-picker__potion--fly {
  box-shadow: 0 0 10px rgba(0, 195, 255, 0.38);
}

.trade-picker__potion--ride {
  box-shadow: 0 0 10px rgba(255, 0, 102, 0.38);
}

.trade-picker__potion--neon {
  box-shadow: 0 0 10px rgba(140, 255, 0, 0.38);
}

.trade-picker__potion--mega {
  box-shadow: 0 0 10px rgba(166, 0, 255, 0.38);
}

.trade-picker__potion--fly.trade-picker__potion--active {
  background: #00c3ff;
  box-shadow: 0 0 14px rgba(0, 195, 255, 0.65);
}

.trade-picker__potion--ride.trade-picker__potion--active {
  background: #ff0066;
  box-shadow: 0 0 14px rgba(255, 0, 102, 0.65);
}

.trade-picker__potion--neon.trade-picker__potion--active {
  background: #8cff00;
  color: #fff;
  box-shadow: 0 0 14px rgba(140, 255, 0, 0.65);
}

.trade-picker__potion--mega.trade-picker__potion--active {
  background: linear-gradient(180deg, #b44aff 0%, #7a1fd4 100%);
  box-shadow: 0 0 14px rgba(166, 0, 255, 0.65);
}

.trade-picker__pet-actions {
  position: absolute;
  right: 1.25rem;
  bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.trade-picker__pet-confirm,
.trade-picker__pet-cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.trade-picker__pet-confirm svg,
.trade-picker__pet-cancel svg {
  width: 1.45rem;
  height: 1.45rem;
}

.trade-picker__pet-confirm:hover {
  background: rgba(74, 222, 128, 0.35);
  border-color: rgba(74, 222, 128, 0.75);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.35);
}

.trade-picker__pet-cancel:hover {
  background: rgba(220, 38, 38, 0.32);
  border-color: rgba(248, 113, 113, 0.85);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.28);
}

.trade-picker__item img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.trade-picker__item--placeholder {
  padding-bottom: var(--pet-width);
}

.trade-picker__item-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem;
  color: var(--trade-text-muted);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.info-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: min(92vw, 920px);
}

.info-glass-bar {
  width: 100%;
  padding: 2.75rem 3.25rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.info-glass-bar--placeholder {
  visibility: hidden;
  pointer-events: none;
}

.info-text {
  font-family: "Outfit", "Syne", system-ui, sans-serif;
  font-size: clamp(1.05rem, 2.1vw, 1.4rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.7;
  letter-spacing: 0.015em;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.info-intro-title {
  font-family: "Fredoka", "Outfit", system-ui, sans-serif;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  margin: 0 0 1.5rem;
}

.info-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.info-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 3.5rem;
  padding: 0;
  background: rgba(var(--vd-stats-deep), 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--vd-accent), 0.45);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(var(--vd-stats-deep), 0.2);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.info-nav-btn:hover:not(:disabled) {
  background: rgba(var(--vd-accent), 0.38);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(var(--vd-stats-deep), 0.35);
}

.info-nav-btn:active:not(:disabled) {
  transform: translateY(0);
}

.info-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.info-nav-icon {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
}

.info-content--faq {
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.info-stack--faq {
  width: min(92vw, 920px);
  height: auto;
}

.info-glass-bar--scroll {
  max-height: calc(100vh - 4rem - 9.5rem);
  overflow-y: auto;
  padding: 2.25rem 2.5rem;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  scrollbar-width: thin;
}

.info-glass-bar--scroll::-webkit-scrollbar {
  width: 8px;
}

.info-glass-bar--scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.info-faq {
  text-align: left;
}

.info-faq-title {
  font-family: "Outfit", "Syne", system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 1.75rem;
}

.info-faq-item {
  margin-bottom: 1.75rem;
}

.info-faq-item:last-child {
  margin-bottom: 0;
}

.info-faq-question {
  font-family: "Outfit", "Syne", system-ui, sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.info-faq-answer,
.info-faq-list {
  font-family: "Outfit", "Syne", system-ui, sans-serif;
  font-size: clamp(0.98rem, 1.8vw, 1.15rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.info-faq-list {
  list-style: none;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-left: 0;
}

.info-faq-list li {
  padding-left: 0;
}

.info-faq-status strong {
  font-weight: 600;
  color: #fff;
}

.info-guide-intro {
  margin-bottom: 1.75rem;
}

.info-guide-outro {
  margin-top: 0.25rem;
}

.info-faq-answer strong {
  font-weight: 600;
  color: #fff;
}

.credits-content {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1.35rem, 3vh, 2rem);
  padding: clamp(1.5rem, 4vh, 2.75rem) var(--shell-pad-x) calc(2.5rem + var(--safe-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.credits-title-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  max-width: min(100%, 44rem);
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  animation: credits-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.credits-title-card::after {
  content: "";
  width: min(7.5rem, 40%);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(160, 215, 255, 0.85) 50%,
    transparent 100%
  );
  box-shadow: 0 0 16px rgba(100, 180, 255, 0.35);
}

.credits-title {
  text-align: center;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(1.05rem, 2.6vw, 2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.credits-bar {
  width: min(94vw, 1180px);
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.15rem;
  padding: 1.35rem 1.35rem 1.55rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%),
    rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 18px 48px rgba(0, 0, 0, 0.45);
  overflow: visible;
  box-sizing: border-box;
  animation: credits-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.credits-bar__title {
  margin: 0;
  flex-shrink: 0;
  text-align: center;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(0.82rem, 1.6vw, 0.98rem);
  font-weight: 700;
  color: var(--vd-brand);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.2;
  text-shadow: none;
}

.credits-bar__people {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.85rem;
  flex: 0 0 auto;
  min-height: 0;
}

.credits-slot {
  flex: none;
  height: auto;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.2rem 0.7rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: none;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.credits-slot--shade,
.credits-slot--rayn,
.credits-slot--ace,
.credits-slot--bankai {
  cursor: pointer;
}

.credits-slot--shade:hover,
.credits-slot--rayn:hover,
.credits-slot--ace:hover,
.credits-slot--bankai:hover {
  transform: translateY(-3px);
}

.credits-slot--shade:hover,
.credits-slot--rayn:hover,
.credits-slot--ace:hover {
  background: rgba(255, 212, 59, 0.08);
  border-color: rgba(255, 212, 59, 0.28);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    inset 0 0 36px rgba(255, 212, 59, 0.12);
}

.credits-slot--bankai:hover {
  background: rgba(255, 58, 58, 0.08);
  border-color: rgba(255, 58, 58, 0.3);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    inset 0 0 36px rgba(255, 58, 58, 0.12);
}

.credits-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
}

.credits-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
}

.credits-profile-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.25s ease, filter 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.credits-profile-link:hover {
  opacity: 1;
  transform: scale(1.06);
}

.credits-profile-icon {
  width: 0.78em;
  height: 0.78em;
  display: block;
}

.credits-name {
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 1em;
  font-weight: 600;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  transition: text-shadow 0.25s ease, color 0.25s ease;
}

.credits-slot--shade:hover .credits-name,
.credits-slot--rayn:hover .credits-name,
.credits-slot--ace:hover .credits-name {
  color: #ffd43b;
  text-shadow:
    0 0 12px rgba(255, 212, 59, 0.75),
    0 0 24px rgba(255, 212, 59, 0.35);
}

.credits-slot--shade:hover .credits-profile-link,
.credits-slot--rayn:hover .credits-profile-link,
.credits-slot--ace:hover .credits-profile-link {
  color: #ffd43b;
  border-color: rgba(255, 212, 59, 0.45);
  background: rgba(255, 212, 59, 0.1);
  filter: none;
}

.credits-slot--bankai:hover .credits-name {
  color: #ff6a6a;
  text-shadow:
    0 0 12px rgba(255, 58, 58, 0.75),
    0 0 24px rgba(255, 58, 58, 0.35);
}

.credits-slot--bankai:hover .credits-profile-link {
  color: #ff6a6a;
  border-color: rgba(255, 58, 58, 0.45);
  background: rgba(255, 58, 58, 0.1);
  filter: none;
}

.credits-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  width: auto;
  min-width: 8.5rem;
  max-width: 100%;
  min-height: 2.35rem;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 212, 59, 0.35);
  border-radius: 999px;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffd43b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(255, 212, 59, 0.35);
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    text-shadow 0.25s ease,
    background 0.25s ease;
}

.credits-role-icon {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
  color: currentColor;
  transition: filter 0.25s ease;
}

.credits-role .credits-role-icon {
  filter:
    drop-shadow(0 0 10px rgba(255, 212, 59, 0.55))
    drop-shadow(0 0 16px rgba(255, 212, 59, 0.35));
}

.credits-role--red .credits-role-icon {
  filter:
    drop-shadow(0 0 10px rgba(255, 77, 77, 0.6))
    drop-shadow(0 0 16px rgba(255, 77, 77, 0.38));
}

.credits-role--blue .credits-role-icon {
  filter:
    drop-shadow(0 0 10px rgba(255, 58, 58, 0.6))
    drop-shadow(0 0 16px rgba(255, 58, 58, 0.38));
}

.credits-role-icon--crown {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
  object-fit: contain;
  vertical-align: middle;
}

.credits-role-icon--admin {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  object-fit: contain;
  vertical-align: middle;
}

.credits-slot--shade:hover .credits-role,
.credits-slot--rayn:hover .credits-role,
.credits-slot--ace:hover .credits-role {
  border-color: rgba(255, 212, 59, 0.65);
  box-shadow:
    0 0 20px rgba(255, 212, 59, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow:
    0 0 16px rgba(255, 212, 59, 0.85),
    0 0 30px rgba(255, 212, 59, 0.5);
}

.credits-slot--shade:hover .credits-role .credits-role-icon,
.credits-slot--rayn:hover .credits-role .credits-role-icon,
.credits-slot--ace:hover .credits-role .credits-role-icon {
  filter:
    drop-shadow(0 0 12px rgba(255, 212, 59, 0.95))
    drop-shadow(0 0 22px rgba(255, 212, 59, 0.65))
    drop-shadow(0 0 32px rgba(255, 212, 59, 0.35));
}

.credits-slot--bankai:hover .credits-role--blue {
  border-color: rgba(255, 58, 58, 0.65);
  box-shadow:
    0 0 20px rgba(255, 58, 58, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow:
    0 0 16px rgba(255, 58, 58, 0.85),
    0 0 30px rgba(255, 58, 58, 0.5);
}

.credits-slot--bankai:hover .credits-role--blue .credits-role-icon {
  filter:
    drop-shadow(0 0 12px rgba(255, 58, 58, 0.95))
    drop-shadow(0 0 22px rgba(255, 58, 58, 0.65))
    drop-shadow(0 0 32px rgba(255, 58, 58, 0.35));
}

.credits-role--purple {
  color: #c77dff;
  text-shadow: 0 0 12px rgba(199, 125, 255, 0.5);
}

.credits-role--blue {
  color: #ff6a6a;
  border-color: rgba(255, 58, 58, 0.38);
  text-shadow: 0 0 10px rgba(255, 58, 58, 0.35);
}

.credits-role--red {
  color: #ff6b6b;
  border-color: rgba(255, 100, 100, 0.38);
  text-shadow: 0 0 10px rgba(255, 77, 77, 0.35);
}

.credits-avatar {
  width: 8.25rem;
  height: 8.25rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.16) 0%, transparent 42%),
    rgba(255, 255, 255, 0.08);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.credits-slot--shade:hover .credits-avatar,
.credits-slot--rayn:hover .credits-avatar,
.credits-slot--ace:hover .credits-avatar,
.credits-slot--bankai:hover .credits-avatar {
  transform: scale(1.03);
}

.credits-slot--shade:hover .credits-avatar,
.credits-slot--rayn:hover .credits-avatar,
.credits-slot--ace:hover .credits-avatar {
  border-color: rgba(255, 212, 59, 0.8);
  box-shadow:
    0 0 0 3px rgba(255, 212, 59, 0.12),
    0 12px 28px rgba(255, 212, 59, 0.22);
}

.credits-slot--bankai:hover .credits-avatar {
  border-color: rgba(255, 58, 58, 0.85);
  box-shadow:
    0 0 0 3px rgba(255, 58, 58, 0.12),
    0 12px 28px rgba(255, 58, 58, 0.22);
}

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

@keyframes credits-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 1rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .credits-background,
  .credits-background::before,
  .credits-background::after,
  .tos-background::before,
  .tos-background::after,
  .credits-title-card,
  .credits-bar {
    animation: none !important;
  }
}

.layout {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  z-index: 2;
}

.sidebar {
  position: relative;
  overflow: hidden;
  width: 33.333%;
  background:
    radial-gradient(ellipse 85% 55% at 50% -2%, rgba(200, 245, 255, 0.75) 0%, rgba(140, 215, 255, 0.4) 28%, rgba(80, 170, 240, 0.12) 52%, transparent 72%),
    linear-gradient(to bottom, #3a8fd4 0%, #2a6cb5 22%, #1a3d6b 55%, #000 100%);
  border-right: 2px solid #707070;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 2rem 2rem;
  box-sizing: border-box;
}

.hero-buttons {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 380px;
  transform: translateY(-1rem);
}

.sidebar-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(94vw, 28rem);
}

.sidebar-logo {
  position: relative;
  z-index: 1;
  width: 28rem;
  max-width: 100%;
  height: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.logo-bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: logo-bubble-float 5s ease-in-out infinite;
}

.logo-bubble--1 {
  width: 4.25rem;
  height: 4.25rem;
  left: -1.1rem;
  top: 14%;
  opacity: 0.92;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.22) 18%, rgba(140, 200, 255, 0.16) 45%, rgba(80, 150, 230, 0.08) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 4px 16px rgba(100, 170, 255, 0.22),
    inset 0 2px 6px rgba(255, 255, 255, 0.4),
    inset 0 -3px 8px rgba(60, 130, 210, 0.14);
  animation-delay: 0s;
}

.logo-bubble--2 {
  width: 0.85rem;
  height: 0.85rem;
  left: 0.5rem;
  bottom: 24%;
  opacity: 0.38;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.08) 22%, rgba(140, 200, 255, 0.05) 50%, rgba(80, 150, 230, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 2px 8px rgba(100, 170, 255, 0.08),
    inset 0 1px 3px rgba(255, 255, 255, 0.2);
  animation-delay: -1.2s;
}

.logo-bubble--3 {
  width: 3.5rem;
  height: 3.5rem;
  right: -0.85rem;
  top: 10%;
  opacity: 0.55;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.12) 18%, rgba(140, 200, 255, 0.09) 45%, rgba(80, 150, 230, 0.04) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  box-shadow:
    0 4px 12px rgba(100, 170, 255, 0.12),
    inset 0 2px 5px rgba(255, 255, 255, 0.25),
    inset 0 -3px 7px rgba(60, 130, 210, 0.08);
  animation-delay: -2.4s;
}

.logo-bubble--4 {
  width: 1.35rem;
  height: 1.35rem;
  right: 0.65rem;
  bottom: 18%;
  opacity: 0.78;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.16) 20%, rgba(140, 200, 255, 0.11) 48%, rgba(80, 150, 230, 0.05) 100%);
  border: 1.25px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    0 3px 10px rgba(100, 170, 255, 0.15),
    inset 0 1px 4px rgba(255, 255, 255, 0.3);
  animation-delay: -0.8s;
}

.logo-bubble--5 {
  width: 0.65rem;
  height: 0.65rem;
  left: -1.5rem;
  top: 54%;
  opacity: 0.3;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.4) 0%, rgba(140, 200, 255, 0.06) 55%, rgba(80, 150, 230, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 6px rgba(100, 170, 255, 0.06);
  animation-delay: -3.1s;
}

.logo-bubble--6 {
  width: 2.75rem;
  height: 2.75rem;
  right: -1.35rem;
  top: 44%;
  opacity: 0.68;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.14) 18%, rgba(140, 200, 255, 0.1) 45%, rgba(80, 150, 230, 0.05) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.36);
  box-shadow:
    0 4px 14px rgba(100, 170, 255, 0.16),
    inset 0 2px 6px rgba(255, 255, 255, 0.32),
    inset 0 -3px 8px rgba(60, 130, 210, 0.1);
  animation-delay: -1.7s;
}

.logo-bubble--7 {
  width: 2.1rem;
  height: 2.1rem;
  left: -1.85rem;
  top: 32%;
  opacity: 0.48;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55) 0%, rgba(140, 200, 255, 0.08) 50%, rgba(80, 150, 230, 0.03) 100%);
  border: 1.25px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 3px 10px rgba(100, 170, 255, 0.1);
  animation-delay: -2.8s;
}

.logo-bubble--8 {
  width: 1.1rem;
  height: 1.1rem;
  right: -1.75rem;
  bottom: 28%;
  opacity: 0.42;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.5) 0%, rgba(140, 200, 255, 0.07) 55%, rgba(80, 150, 230, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 2px 7px rgba(100, 170, 255, 0.08);
  animation-delay: -4.2s;
}

.logo-bubble--9 {
  width: 0.55rem;
  height: 0.55rem;
  left: 1.15rem;
  top: 6%;
  opacity: 0.25;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.35) 0%, rgba(140, 200, 255, 0.05) 60%, transparent 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: none;
  animation-delay: -0.4s;
}

.logo-bubble--10 {
  width: 1.75rem;
  height: 1.75rem;
  right: 1.1rem;
  top: 62%;
  opacity: 0.62;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.12) 20%, rgba(140, 200, 255, 0.08) 48%, rgba(80, 150, 230, 0.04) 100%);
  border: 1.25px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    0 3px 11px rgba(100, 170, 255, 0.13),
    inset 0 1px 4px rgba(255, 255, 255, 0.26);
  animation-delay: -3.6s;
}

.logo-bubble--11 {
  width: 3.15rem;
  height: 3.15rem;
  left: -0.35rem;
  bottom: 6%;
  opacity: 0.5;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.1) 18%, rgba(140, 200, 255, 0.08) 45%, rgba(80, 150, 230, 0.04) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 4px 13px rgba(100, 170, 255, 0.11),
    inset 0 2px 5px rgba(255, 255, 255, 0.22);
  animation-delay: -1.1s;
}

.logo-bubble--12 {
  width: 0.75rem;
  height: 0.75rem;
  right: -0.15rem;
  bottom: 6%;
  opacity: 0.35;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.42) 0%, rgba(140, 200, 255, 0.06) 55%, transparent 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(100, 170, 255, 0.07);
  animation-delay: -4.8s;
}

.logo-bubble--13 {
  width: 1.5rem;
  height: 1.5rem;
  left: -2rem;
  bottom: 14%;
  opacity: 0.58;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.13) 20%, rgba(140, 200, 255, 0.09) 48%, rgba(80, 150, 230, 0.04) 100%);
  border: 1.25px solid rgba(255, 255, 255, 0.33);
  box-shadow:
    0 3px 10px rgba(100, 170, 255, 0.12),
    inset 0 1px 4px rgba(255, 255, 255, 0.24);
  animation-delay: -2.1s;
}

.logo-bubble--14 {
  width: 0.95rem;
  height: 0.95rem;
  right: -2rem;
  top: 26%;
  opacity: 0.32;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.38) 0%, rgba(140, 200, 255, 0.05) 55%, transparent 100%);
  border: 1px solid rgba(255, 255, 255, 0.19);
  box-shadow: 0 2px 7px rgba(100, 170, 255, 0.06);
  animation-delay: -3.9s;
}

@keyframes logo-bubble-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-0.45rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-bubble {
    animation: none;
  }
}

.pet-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0 1.35rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  transition: border-color 0.2s, background 0.2s;
}

.pet-search-wrap:focus-within {
  border-color: rgba(var(--vd-accent), 0.6);
  background: rgba(255, 255, 255, 0.16);
}

.pet-search-wrap.demand-check-search {
  height: var(--demand-check-toolbar-h);
  padding: 0 1rem;
  gap: 0.65rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.pet-search-wrap.demand-check-search:focus-within {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.pet-search-wrap.demand-check-search .pet-search-icon {
  color: rgba(255, 255, 255, 0.88);
}

.pet-search-wrap.demand-check-search .pet-search {
  padding: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
}

.pet-search-wrap.demand-check-search .pet-search::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.pet-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.pet-search-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.pet-search {
  flex: 1;
  min-width: 0;
  padding: 1.35rem 0;
  background: transparent;
  border: none;
  border-radius: 0;
  color: #fff;
  font-family: "Syne", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  outline: none;
}

.pet-search::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.pet-search::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.pet-search:focus {
  outline: none;
}

.main-panel {
  position: relative;
  width: 66.667%;
  overflow: hidden;
}

.background {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 0;
}

.overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
}

.hero-tagline-block {
  position: absolute;
  top: 16%;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(94vw, 920px);
  max-width: calc(100% - 1.5rem);
}

.hero-tagline-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: fit-content;
  max-width: 100%;
  padding: 0 1.5rem 4.15rem;
  box-sizing: border-box;
  transform: scale(0.86);
  transform-origin: top center;
  background: transparent;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.hero-tagline-panel::before {
  content: "";
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  bottom: 1.5rem;
  z-index: -1;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 20px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.hero-tagline-panel > .tagline {
  transform: translateY(0.75rem);
}

.hero-tagline-panel > .tagline-glass {
  margin-top: 3rem;
}

.tagline-glass {
  --glass-square-gap: 1.75rem;
  --glass-square-size: calc((min(94vw, 920px) - 2rem - 4 * var(--glass-square-gap)) / 5.5);
  --glass-bar-height: calc(var(--glass-square-size) * 1.1);
  width: calc(4 * var(--glass-square-size) + 3 * var(--glass-square-gap) + 2rem);
  height: 30rem;
  overflow: hidden;
  padding: 1rem;
  box-sizing: border-box;
  margin-left: 4.5rem;
  align-self: flex-start;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  box-shadow:
    0 8px 28px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.tagline-glass-viewport {
  width: calc(4 * var(--glass-square-size) + 3 * var(--glass-square-gap));
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  flex-shrink: 0;
  scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
  scrollbar-width: thin;
  outline: none;
}

.tagline-glass-viewport::-webkit-scrollbar {
  width: 8px;
}

.tagline-glass-viewport::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.tagline-glass-viewport::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.tagline-glass-set {
  display: grid;
  grid-template-columns: repeat(4, var(--glass-square-size));
  grid-auto-rows: var(--glass-bar-height);
  column-gap: var(--glass-square-gap);
  row-gap: var(--glass-square-gap);
  width: 100%;
  padding-bottom: var(--glass-square-gap);
}

.tagline-glass-bar {
  position: relative;
  width: 100%;
  height: var(--glass-bar-height);
  min-height: var(--glass-bar-height);
  display: block;
  padding: 0.3rem;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  box-shadow:
    0 4px 16px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.tagline-glass-bar img {
  position: absolute;
  inset: 0.2rem;
  width: calc(100% - 0.4rem);
  height: calc(100% - 0.4rem);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
  pointer-events: none;
  user-select: none;
}

.tagline-glass-bar__name {
  position: absolute;
  left: 0.2rem;
  right: 0.2rem;
  bottom: 0.15rem;
  z-index: 1;
  flex-shrink: 0;
  width: auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(0.92rem, 1.75vw, 1.15rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow:
    0 0 4px rgba(0, 0, 0, 0.85),
    0 0 8px rgba(0, 0, 0, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.9);
}

.tagline {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: 100%;
  padding: 0 1rem;
  margin: 0;
  text-align: center;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 3rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.85),
    0 0 12px rgba(0, 0, 0, 0.55),
    0 2px 4px rgba(0, 0, 0, 0.9);
}

.sidebar .glass-btn {
  width: 100%;
  text-align: center;
}

.glass-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.15rem 2.25rem;
  background: rgba(var(--vd-stats-deep), 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(var(--vd-accent), 0.45);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(var(--vd-stats-deep), 0.2);
  color: #fff;
  text-decoration: none;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.glass-btn:hover {
  background: rgba(var(--vd-accent), 0.38);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(var(--vd-stats-deep), 0.35);
}

.glass-btn:active {
  transform: translateY(0);
}

.glass-btn--with-icon {
  justify-content: flex-start;
  padding-left: 1.5rem;
  padding-right: 2rem;
  gap: 1rem;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  background: rgba(42, 8, 10, 0.55);
  border-radius: 8px;
  color: #fff;
}

.btn-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.glass-btn__label {
  flex: 1;
  text-align: center;
  padding-left: 0.5rem;
}

@media (max-width: 768px) {
  .top-line {
    height: var(--header-bar);
    padding-inline: 0.55rem 0.6rem;
  }

  .logo {
    font-size: 1.15rem;
  }

  .discord-link {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
  }

  .discord-link svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  .login-btn {
    padding: 0.35rem 0.8rem;
    font-size: 0.68rem;
  }

  .login-btn.login-btn--avatar {
    width: 2.55rem;
    height: 2.55rem;
    min-width: 2.55rem;
    min-height: 2.55rem;
    padding: 0.16rem;
    font-size: 0;
  }

  .credits-content {
    top: var(--header-h);
    padding: 1.25rem 1.25rem calc(1.5rem + var(--safe-bottom));
    gap: 1.1rem;
  }

  .info-content {
    top: 3.25rem;
    padding: 1.25rem;
  }

  .trading-content,
  .demand-check-content {
    top: 3.25rem;
    padding: 1.25rem 1rem;
  }

  .trading-glass-bar {
    margin-top: 1.5rem;
    min-height: clamp(16rem, 50vh, 28rem);
    border-radius: 14px;
    padding: 0.65rem;
  }

  .trading-feed-scroll {
    padding: 0;
  }

  .trading-feed-headbar,
  .posted-trade__bar {
    grid-template-columns: 1fr;
  }

  .trading-feed-headbar {
    margin: 0;
    padding: 0;
    gap: 0;
    border-radius: 10px;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "person person"
      "yours theirs";
  }

  .posted-trades-feed {
    padding: 0.7rem 0.85rem 0.85rem;
  }

  body.trading-page .posted-trades-feed {
    padding: 0.55rem 0 0;
  }

  .trading-feed-headbar > *:first-child {
    grid-area: person;
    justify-content: center;
    padding: 0.65rem 0.55rem;
    text-align: center;
  }

  .trading-feed-headbar > *:nth-child(2) {
    grid-area: yours;
    justify-content: center;
    padding: 0.55rem;
  }

  .trading-feed-headbar > *:nth-child(3) {
    grid-area: theirs;
    justify-content: center;
    padding: 0.55rem;
    border-left: none;
  }

  .trading-feed-headbar > * + *::before {
    display: none;
  }

  .trading-feed-headbar > *:nth-child(3)::before {
    display: block;
  }

  .trading-feed-headbar__label:first-child,
  .trading-feed-headbar__label {
    text-align: center;
  }

  .trading-feed-headbar__spacer {
    display: none;
  }

  .posted-trades-feed .posted-trade__bar {
    gap: 0;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "offerer offerer"
      "yours theirs"
      "meta meta";
  }

  .posted-trades-feed .posted-trade__bar > * {
    min-height: auto;
  }

  .posted-trades-feed .posted-trade__offerer {
    grid-area: offerer;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    padding-left: 0.75rem;
    padding-right: 0.95rem;
  }

  .posted-trades-feed .posted-trade__offerer-person {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 0.5rem;
  }

  .posted-trades-feed .posted-trade__offerer-identity {
    align-items: flex-start;
  }

  .posted-trades-feed .posted-trade__offerer-name {
    text-align: left;
  }

  .posted-trades-feed .posted-trade__side:first-of-type {
    grid-area: yours;
    align-items: center;
    padding-left: 0.75rem;
    padding-right: 0.7rem;
  }

  .posted-trades-feed .posted-trade__side:last-of-type {
    grid-area: theirs;
    align-items: center;
    padding-left: 0.7rem;
    padding-right: 0.75rem;
  }

  .posted-trades-feed .posted-trade__meta {
    grid-area: meta;
  }

  .posted-trades-feed .posted-trade__panel {
    padding: 2px;
    width: 100%;
  }

  .posted-trades-feed .posted-trade__grid-scroll {
    --posted-trade-slot-size: min(2.3rem, calc((50vw - 3.5rem) / 3));
    --posted-trade-gap: 2px;
    width: 100%;
    max-width: 100%;
  }

  .posted-trades-feed .posted-trade__grid {
    width: 100%;
    justify-content: center;
    grid-template-columns: repeat(var(--posted-trade-cols, 3), var(--posted-trade-slot-size));
    grid-auto-rows: var(--posted-trade-slot-size);
    gap: var(--posted-trade-gap);
  }

  .posted-trades-feed .posted-trade__grid .trade-slot,
  .posted-trades-feed .posted-trade__empty-side {
    width: var(--posted-trade-slot-size);
    height: var(--posted-trade-slot-size);
    min-width: var(--posted-trade-slot-size);
    min-height: var(--posted-trade-slot-size);
  }

  .posted-trades-feed .posted-trade__empty-side {
    font-size: 0.55rem;
  }

  .posted-trades-feed .trade-slot__badge {
    width: 0.52rem;
    height: 0.52rem;
    font-size: 0.32rem;
    border-width: 0.5px;
  }

  .posted-trades-feed .trade-slot__badge--mega {
    width: 0.56rem;
    height: 0.56rem;
    font-size: 0.34rem;
    border-radius: 2px;
  }

  .posted-trades-feed .trade-slot__badges {
    gap: 0.04rem;
    right: 1px;
    bottom: 1px;
  }

  .posted-trades-feed .posted-trade__bar > * + * {
    border-left: none;
    border-top: 1px solid rgba(var(--vd-accent), 0.38);
  }

  .posted-trades-feed .posted-trade__bar > .posted-trade__side + .posted-trade__side {
    border-left: 1px solid rgba(200, 230, 255, 0.28);
    border-top: 1px solid rgba(var(--vd-accent), 0.38);
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.1);
  }

  .trade-center--posted-compact {
    width: 100%;
    justify-content: center;
  }

  .trade-center__icon--posted-compact {
    transform: rotate(90deg);
  }

  .posted-trade__meta {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.55rem;
  }

  .posted-trade__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    flex: 1;
    gap: 0.45rem;
    justify-content: stretch;
  }

  .posted-trade__actions .posted-trade__btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  .posted-trade-modal__header,
  .trade-board--posted-detail {
    flex-direction: column;
    align-items: stretch;
  }

  .trade-board--posted-detail {
    display: flex;
    gap: 0.75rem;
  }

  .trade-center--posted-detail {
    width: 100%;
  }

  .trade-center__icon--posted-detail {
    transform: rotate(90deg) translateY(0);
  }

  .posted-trade-modal__actions {
    flex-direction: column;
  }

  .demand-check-toolbar {
    max-width: 100%;
    gap: 0.7rem;
    --demand-check-toolbar-h: 3rem;
  }

  .demand-check-search {
    flex: 1 1 auto;
    min-width: 0;
  }

  .pet-search-wrap.demand-check-search {
    padding: 0 0.85rem;
  }

  .pet-search-wrap.demand-check-search .pet-search {
    font-size: 0.82rem;
  }

  .demand-check-other-btn svg,
  .demand-check-calc-btn svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  .demand-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demand-check-pet-card.trade-picker__pet-popout-card {
    display: grid;
    grid-template-columns: 38% 1fr;
    grid-template-rows: auto auto;
    gap: 0.4rem 0.35rem;
    padding: 0.55rem 0.5rem 0.5rem;
    border-radius: 14px;
    overflow: hidden;
  }

  .demand-check-pet-card__media {
    display: contents;
  }

  .demand-check-pet-card .trade-picker__pet-bar-preview {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .demand-check-pet-card .trade-picker__pet-bar-info {
    grid-column: 2;
    grid-row: 1;
  }

  .demand-check-pet-card .trade-picker__potions,
  .demand-check-pet-card__potions {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    width: fit-content;
    max-width: 100%;
    gap: 0.25rem;
    margin-top: 0.1rem;
    justify-self: start;
  }

  .demand-check-pet-card .trade-picker__potion {
    width: 1.85rem;
    height: 1.85rem;
    min-width: 1.85rem;
    flex: 0 0 1.85rem;
    max-width: none;
    aspect-ratio: auto;
    font-size: 0.72rem;
    border-radius: 7px;
    flex-shrink: 0;
  }

  .demand-check-value {
    min-height: 1.55rem;
    padding: 0.32rem 0.45rem;
    border-radius: 8px;
  }

  .demand-check-value__label {
    font-size: clamp(0.52rem, 2.2vw, 0.6rem);
  }

  .demand-check-value__amount {
    font-size: clamp(0.72rem, 3vw, 0.82rem);
  }

  .demand-check-pet-card .trade-picker__pet-bar-name {
    font-size: clamp(0.68rem, 3.1vw, 0.82rem);
  }

  .trading-btn {
    font-size: 0.78rem;
    min-height: 2.85rem;
    padding: 0.55rem 0.65rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .trading-toolbar {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.55rem 0.65rem;
  }

  .trading-toolbar__intro {
    width: 100%;
  }

  .trading-toolbar__actions {
    width: 100%;
  }

  .trading-toolbar__actions > .trading-btn,
  .trading-toolbar__actions > .trading-btn--with-icon {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding-left: 0.55rem;
    padding-right: 0.65rem;
  }

  .trading-btn--with-icon {
    padding-left: 0.55rem;
    padding-right: 0.65rem;
    gap: 0.45rem;
  }

  .trading-btn__icon {
    width: 1.65rem;
    height: 1.65rem;
  }

  .trading-btn__icon svg {
    width: 1rem;
    height: 1rem;
  }

  .trading-btn__label {
    font-size: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .trading-btn--icon-only {
    width: 2.85rem;
    min-width: 2.85rem;
  }

  .post-trade-content {
    top: 3.25rem;
    padding: 0.55rem 0.85rem 1rem;
  }

  .trade-glass-bar {
    padding: 1.35rem 1rem 1rem;
    border-radius: 14px;
  }

  body.post-trade-page .trade-glass-bar,
  body.trade-calculator-page .trade-glass-bar {
    padding-top: 3.15rem;
  }

  .trade-return-btn {
    top: 0.75rem;
    left: 0.75rem;
  }

  .trade-board {
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    width: min(100%, 420px);
  }

  .trade-side {
    width: 100%;
  }

  .trade-center {
    width: min(100%, 11rem);
    margin-bottom: 0;
  }

  .trade-center__icon {
    width: 4.5rem;
    transform: rotate(90deg) translateY(-1.25rem);
  }

  body.trade-calculator-page .trade-center__icon {
    width: clamp(2.35rem, 10vw, 3.25rem);
    transform: translateY(-0.5rem);
    pointer-events: none;
  }

  body.post-trade-page .trade-center__icon {
    display: none;
  }

  body.view-trade-page .trade-center__icon {
    width: clamp(2.35rem, 10vw, 3.25rem);
  }

  body.trade-calculator-page .trade-board,
  body.view-trade-page .trade-board {
    flex-direction: row;
    align-items: flex-end;
    gap: clamp(0.3rem, 1.4vw, 0.55rem);
    width: 100%;
    max-width: 100%;
  }

  body.post-trade-page .trade-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "yours theirs"
      "center center";
    align-items: end;
    column-gap: clamp(0.3rem, 1.4vw, 0.55rem);
    row-gap: 0.65rem;
    width: 100%;
    max-width: 100%;
  }

  body.post-trade-page .trade-side,
  body.trade-calculator-page .trade-side,
  body.view-trade-page .trade-side {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }

  body.post-trade-page .trade-side[data-trade-side="yours"] {
    grid-area: yours;
  }

  body.post-trade-page .trade-side[data-trade-side="theirs"] {
    grid-area: theirs;
  }

  body.trade-calculator-page .trade-center,
  body.view-trade-page .trade-center {
    flex: 0 0 clamp(4.25rem, 17vw, 5.5rem);
    width: clamp(4.25rem, 17vw, 5.5rem);
  }

  body.post-trade-page .trade-center {
    grid-area: center;
    flex: none;
    width: 100%;
    flex-direction: row;
    align-items: stretch;
    align-self: stretch;
    gap: 0.55rem;
  }

  body.post-trade-page .trade-center__actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.45rem;
  }

  body.post-trade-page .trade-action-btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-height: 2.75rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.72rem;
    white-space: normal;
  }

  body.post-trade-page .trade-post-error {
    flex: 1 1 100%;
  }

  .trade-panel {
    width: 100%;
  }

  .trade-picker {
    inset: 3.25rem 0 0;
    padding: 1rem;
  }

  .trade-picker__panel {
    flex-direction: column;
    height: min(78vh, 660px);
    max-width: calc(100vw - 2rem);
  }

  .trade-picker__items {
    grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr));
  }

  .trade-picker__categories {
    flex-direction: row;
    flex-wrap: wrap;
    align-self: auto;
    width: 100%;
    max-height: none;
    padding: 0.65rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
  }

  .trade-picker__category {
    justify-content: center;
    flex: 1 1 calc(33.333% - 0.35rem);
    min-height: 2.35rem;
    min-width: 5.5rem;
    font-size: 0.76rem;
    padding: 0.45rem 0.5rem;
    text-align: center;
  }

  .trade-picker__category-icon {
    width: 1rem;
    height: 1rem;
  }

  .trade-picker__content {
    padding: 1rem;
  }

  .trade-picker__items {
    --pet-gap: 0.65rem;
    --pet-cols: 3;
  }

  .info-glass-bar--scroll {
    max-height: calc(100vh - 3.25rem - 8.5rem);
    padding: 1.5rem 1.25rem;
  }

  .info-faq-title {
    margin-bottom: 1.25rem;
  }

  .info-faq-item {
    margin-bottom: 1.35rem;
  }

  .info-glass-bar {
    padding: 1.75rem 1.5rem;
  }

  .info-nav-btn {
    width: 3.75rem;
    height: 3.1rem;
  }

  .info-nav-icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .info-text {
    font-size: clamp(0.95rem, 3.8vw, 1.15rem);
    line-height: 1.65;
  }

  .info-intro-title {
    font-size: clamp(1.85rem, 8vw, 2.75rem);
    margin-bottom: 1.15rem;
  }

  .credits-title {
    font-size: clamp(0.95rem, 4.4vw, 1.35rem);
  }

  .credits-title-card {
    padding: 0;
  }

  .credits-bar {
    width: 100%;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0.95rem 0.8rem 1.2rem;
    gap: 0.85rem;
    overflow: visible;
  }

  .credits-bar__people {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    flex: 0 0 auto;
    min-height: 0;
    height: auto;
    align-items: stretch;
  }

  .credits-bar__title {
    font-size: clamp(0.8rem, 3.4vw, 1rem);
  }

  .credits-avatar {
    width: 4.75rem;
    height: 4.75rem;
  }

  .credits-slot {
    height: auto;
    min-height: 0;
    padding: 0.85rem 0.45rem 1rem;
    align-items: center;
    box-sizing: border-box;
  }

  .credits-person {
    width: 100%;
    gap: 0.55rem;
  }

  .credits-name-row {
    font-size: clamp(0.95rem, 3.8vw, 1.2rem);
  }

  .credits-role {
    width: min(100%, 8.5rem);
    min-height: 2.15rem;
    font-size: 0.78rem;
    padding: 0.28rem 0.45rem;
    margin-top: 0.25rem;
  }

  .layout {
    top: 0;
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: 33.333%;
    padding: calc(3.25rem + 1.5rem) 1.5rem 1.5rem;
    border-right: none;
    border-bottom: 2px solid #707070;
  }

  .hero-buttons {
    transform: translateY(-0.5rem);
    max-width: 320px;
  }

  .sidebar-logo-wrap {
    max-width: min(90vw, 18rem);
  }

  .sidebar-logo {
    width: 18rem;
    max-width: 100%;
  }

  .logo-bubble--1 {
    width: 3rem;
    height: 3rem;
    left: -0.75rem;
  }

  .logo-bubble--3 {
    width: 2.5rem;
    height: 2.5rem;
    right: -0.6rem;
  }

  .logo-bubble--5 {
    width: 0.55rem;
    height: 0.55rem;
    left: -1rem;
  }

  .logo-bubble--6 {
    width: 2rem;
    height: 2rem;
    right: -0.9rem;
  }

  .pet-search-wrap {
    padding: 0 1.1rem;
  }

  .pet-search {
    padding: 1.1rem 0;
    font-size: 0.95rem;
  }

  .pet-search-icon svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  .main-panel {
    width: 100%;
    height: 66.667%;
  }

  .hero-tagline-block {
    top: 14%;
    width: min(96vw, 920px);
  }

  .hero-tagline-panel {
    gap: 0;
    padding: 0 1rem 2.85rem;
    transform: scale(0.86);
    transform-origin: top center;
  }

  .hero-tagline-panel::before {
    top: -0.35rem;
    bottom: 1.1rem;
    border-radius: 16px;
  }

  .hero-tagline-panel > .tagline {
    transform: translateY(0.5rem);
  }

  .hero-tagline-panel > .tagline-glass {
    margin-top: 2.25rem;
  }

  .tagline-glass {
    --glass-square-gap: 1.25rem;
    --glass-square-size: calc((min(96vw, 920px) - 1.5rem - 4 * var(--glass-square-gap)) / 5.5);
    --glass-bar-height: calc(var(--glass-square-size) * 1.14);
    width: calc(4 * var(--glass-square-size) + 3 * var(--glass-square-gap) + 1.5rem);
    margin-left: 1.5rem;
    height: 21rem;
    border-width: 2px;
    padding: 0.75rem;
  }

  .tagline-glass-bar {
    border-radius: 10px;
  }

  .tagline {
    top: auto;
    font-size: clamp(0.95rem, 4.2vw, 1.75rem);
    letter-spacing: 0.06em;
  }

  .glass-btn {
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
  }

  .glass-btn--with-icon {
    padding-left: 1.15rem;
    gap: 0.75rem;
  }

  .btn-icon {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 6px;
  }

  .btn-icon svg {
    width: 1.1rem;
    height: 1.1rem;
  }
}

/* â”€â”€ Home hero (2026 redesign) â”€â”€ */
body.home-page {
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--vd-canvas);
  color: #fff;
}

body.home-page .home-legal-links {
  display: none;
}

body.home-page .home-hero {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding:
    calc(var(--header-h) + clamp(1.25rem, 3vh, 2.5rem))
    clamp(1.25rem, 4vw, 3.5rem)
    calc(2.5rem + var(--safe-bottom));
  overflow: hidden;
}

body.home-page .home-hero__sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

body.home-page .home-hero__photo {
  position: absolute;
  inset: 0;
  background: transparent;
  transform: none;
  animation: none;
}

body.home-page .home-hero__beam,
body.home-page .home-hero__mist,
body.home-page .home-hero__grain {
  display: none;
}

body.home-page .home-hero__mist {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 18% 42%, rgba(var(--vd-glow), 0.16) 0%, transparent 62%),
    radial-gradient(ellipse 55% 45% at 82% 58%, rgba(var(--vd-deep-glow), 0.18) 0%, transparent 60%),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.04) 0%,
      rgba(0, 0, 0, 0.08) 45%,
      rgba(0, 0, 0, 0.14) 100%
    );
}

body.home-page .home-hero__beam {
  position: absolute;
  width: 42vw;
  max-width: 34rem;
  height: 140%;
  top: -20%;
  background: linear-gradient(
    180deg,
    rgba(var(--vd-beam), 0.16) 0%,
    rgba(var(--vd-beam-deep), 0.05) 42%,
    transparent 78%
  );
  filter: blur(31px);
  transform-origin: top center;
  opacity: 0.85;
  animation: home-beam-sway 12s ease-in-out infinite alternate;
  will-change: opacity;
}

body.home-page .home-hero__beam--a {
  left: 8%;
  transform: rotate(14deg);
}

body.home-page .home-hero__beam--b {
  right: 4%;
  width: 28vw;
  animation-delay: -4s;
  animation-duration: 16s;
  transform: rotate(-10deg);
  opacity: 0.55;
}

body.home-page .home-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.03) 0,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 3px
    );
}

body.home-page .home-hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(0.85rem, 2vh, 1.35rem);
  width: min(100%, 42rem);
  text-align: center;
  animation: home-copy-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.home-page .home-hero__identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.55rem, 1.6vh, 1rem);
  width: 100%;
}

body.home-page .home-hero__mark-img {
  width: min(72%, 22rem);
  height: auto;
  max-height: min(42vh, 22rem);
  object-fit: contain;
  filter:
    sepia(var(--vd-logo-sepia, 0))
    saturate(var(--vd-logo-saturate, 1))
    hue-rotate(var(--vd-logo-hue))
    brightness(var(--vd-logo-bright, 1))
    drop-shadow(0 0 18px rgba(var(--vd-mark), 0.45));
  animation: home-mark-float 7.5s ease-in-out infinite;
  user-select: none;
  pointer-events: none;
}

body.home-page .home-hero__brand {
  margin: 0;
  font-family: "Fredoka", "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(3.1rem, 7.6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow:
    0 10px 40px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(var(--vd-brand-glow), 0.55),
    0 0 70px rgba(var(--vd-brand-glow), 0.28);
}

body.home-page .home-hero__line {
  margin: 0;
  max-width: 22rem;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.78);
}

body.home-page .home-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

body.home-page .home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.05rem;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--vd-on-brand);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

body.home-page .home-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
}

body.home-page .home-cta__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

body.home-page .home-cta--primary {
  border: 1px solid rgba(var(--vd-accent), 0.55);
  background: linear-gradient(180deg, var(--vd-brand-hot) 0%, var(--vd-brand-deep) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 12px 28px rgba(var(--vd-brand-glow), 0.28);
}

body.home-page .home-cta--primary:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--vd-accent), 0.7);
  background: linear-gradient(180deg, rgba(var(--vd-glow), 0.82) 0%, rgba(var(--vd-corner), 0.88) 100%);
}

body.home-page .home-cta--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.home-page .home-cta--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
}

body.home-page .home-cta:active {
  transform: translateY(0);
}

@keyframes home-sky-drift {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, 1%, 0); }
}

/* Opacity only: animating the blur radius repainted both full-height beams every frame. */
@keyframes home-beam-sway {
  from { opacity: 0.55; }
  to { opacity: 0.9; }
}

@keyframes home-copy-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 1.4rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes home-mark-float {
  0%,
  100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -0.7rem, 0); }
}


/* ── Home below-fold ── */
body.home-page .home-below {
  position: relative;
  z-index: 2;
  background: transparent;
  padding: clamp(3.25rem, 8vh, 5.5rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 5vh, 4rem);
  content-visibility: auto;
  contain-intrinsic-size: 1px 1200px;
}

body.home-page .home-below__inner {
  width: min(100%, 720px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(3.25rem, 8vh, 4.75rem);
}

body.home-page .home-pitch {
  text-align: left;
}

body.home-page .home-pitch__eyebrow {
  margin: 0 0 0.7rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(var(--vd-accent), 0.85);
}

body.home-page .home-pitch__title {
  margin: 0;
  font-family: 'Montserrat', 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 4.2vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

body.home-page .home-pitch__body {
  margin: 1rem 0 0;
  max-width: 36rem;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.55;
  color: rgba(var(--vd-accent), 0.72);
}

body.home-page .home-stats {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(1.5rem, 4vh, 2.5rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  overflow: hidden;
}

body.home-page .home-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
  opacity: 0.7;
}

body.home-page .home-stats__head {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  margin: 0 auto 1.75rem;
}

body.home-page .home-stats__eyebrow {
  margin: 0 0 0.65rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(var(--vd-accent), 0.9);
}

body.home-page .home-stats__title {
  margin: 0;
  font-family: 'Montserrat', 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 4.2vw, 2.55rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #fff;
}

body.home-page .home-stats__lede {
  margin: 0.75rem 0 0;
  max-width: 28rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(var(--vd-accent), 0.72);
}

@media (min-width: 769px) {
  body.home-page .home-stats__lede {
    max-width: none;
    white-space: nowrap;
  }
}

body.home-page .home-stats__grid {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(100%, 920px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(140, 190, 255, 0.18);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.home-page .home-stats__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.35rem;
  min-height: 7.25rem;
  padding: 1.15rem 1.2rem 1.05rem;
  border-right: 1px solid rgba(140, 190, 255, 0.12);
  border-bottom: 1px solid rgba(140, 190, 255, 0.12);
  overflow: hidden;
  transition: background 0.35s ease, transform 0.35s ease;
}

body.home-page .home-stats__cell:nth-child(3n) {
  border-right: none;
}

body.home-page .home-stats__cell:nth-last-child(-n + 3) {
  border-bottom: none;
}

body.home-page .home-stats__cell::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(var(--vd-accent), 0.95), rgba(var(--vd-stats-deep), 0.1));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

body.home-page .home-reveal--in .home-stats__cell::after {
  transform: scaleX(1);
}

body.home-page .home-reveal--in .home-stats__cell:nth-child(1)::after { transition-delay: 0.05s; }
body.home-page .home-reveal--in .home-stats__cell:nth-child(2)::after { transition-delay: 0.1s; }
body.home-page .home-reveal--in .home-stats__cell:nth-child(3)::after { transition-delay: 0.15s; }
body.home-page .home-reveal--in .home-stats__cell:nth-child(4)::after { transition-delay: 0.2s; }
body.home-page .home-reveal--in .home-stats__cell:nth-child(5)::after { transition-delay: 0.25s; }
body.home-page .home-reveal--in .home-stats__cell:nth-child(6)::after { transition-delay: 0.3s; }
body.home-page .home-reveal--in .home-stats__cell:nth-child(7)::after { transition-delay: 0.35s; }
body.home-page .home-reveal--in .home-stats__cell:nth-child(8)::after { transition-delay: 0.4s; }
body.home-page .home-reveal--in .home-stats__cell:nth-child(9)::after { transition-delay: 0.45s; }

body.home-page .home-stats__cell:hover {
  background: rgba(var(--vd-stats-deep), 0.14);
}

body.home-page .home-stats__num {
  font-family: 'Fredoka', 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 5.5vw, 3.15rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 0 40px rgba(var(--vd-accent), 0.25);
  font-variant-numeric: tabular-nums;
}

body.home-page .home-stats__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
}

body.home-page .home-stats__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  color: rgba(var(--vd-accent), 0.92);
}

body.home-page .home-stats__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

body.home-page .home-stats__label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(180, 210, 240, 0.62);
}

body.home-page .home-stats__total {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  margin: 1.15rem auto 0;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}

body.home-page .home-stats__total-num {
  font-family: 'Fredoka', 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.8vw, 2.2rem);
  letter-spacing: -0.03em;
  color: var(--vd-brand-hot);
  font-variant-numeric: tabular-nums;
}

body.home-page .home-stats__total-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(var(--vd-accent), 0.72);
}

body.home-page .home-path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.home-page .home-path__step {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.home-page .home-path__num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: rgba(var(--vd-accent), 0.7);
  padding-top: 0.15rem;
}

body.home-page .home-path__name {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}

body.home-page .home-path__desc {
  margin: 0.35rem 0 0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(var(--vd-accent), 0.72);
}

body.home-page .home-path__link {
  display: inline-block;
  margin-top: 0.65rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--vd-brand);
  text-decoration: none;
}

body.home-page .home-path__link:hover {
  color: var(--vd-brand-hot);
}

body.home-page .home-spotlight__head {
  margin-bottom: 1.35rem;
}

body.home-page .home-spotlight__title {
  margin: 0;
  font-family: 'Montserrat', 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
  color: #fff;
}

body.home-page .home-spotlight__note {
  margin: 0.45rem 0 0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: rgba(var(--vd-accent), 0.65);
}

body.home-page .home-spotlight__row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

body.home-page .home-spotlight__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1rem 0.5rem 1.05rem;
  text-align: center;
}

body.home-page .home-spotlight__item img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

body.home-page .home-spotlight__name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
}

body.home-page .home-spotlight__usd {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(var(--vd-accent), 0.95);
}

body.home-page .home-spotlight__cta {
  display: inline-block;
  margin-top: 1.15rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--vd-brand);
  text-decoration: none;
}

body.home-page .home-spotlight__cta:hover {
  color: var(--vd-brand-hot);
}

body.home-page .home-community {
  text-align: left;
  padding-top: 0.5rem;
}

body.home-page .home-community__title {
  margin: 0;
  font-family: 'Montserrat', 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
  color: #fff;
}

body.home-page .home-community__body {
  margin: 0.7rem 0 0;
  max-width: 28rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(var(--vd-accent), 0.72);
}

@media (min-width: 769px) {
  body.home-page .home-community__body {
    max-width: none;
    white-space: nowrap;
  }
}

body.home-page .home-community__btn {
  display: inline-flex;
  margin-top: 1.25rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body.home-page .home-community__btn:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--vd-accent), 0.45);
  background: rgba(var(--vd-stats-deep), 0.28);
}

body.home-page .home-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  padding: 1.35rem clamp(1.25rem, 4vw, 3rem) calc(1.35rem + var(--safe-bottom));
}

body.home-page .home-footer__inner {
  width: min(100%, 720px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

body.home-page .home-footer__brand {
  font-family: 'Syne', 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #fff;
}

body.home-page .home-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

body.home-page .home-footer__links a {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  color: rgba(var(--vd-accent), 0.65);
  text-decoration: none;
}

body.home-page .home-footer__links a:hover {
  color: #fff;
}

body.home-page .home-reveal {
  opacity: 0;
  transform: translate3d(0, 1rem, 0);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

body.home-page .home-reveal--in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

body.home-page .home-path__step.home-reveal:nth-child(2) { transition-delay: 0.06s; }
body.home-page .home-path__step.home-reveal:nth-child(3) { transition-delay: 0.12s; }

@media (max-width: 640px) {
  body.home-page .home-spotlight__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home-page .home-path__step {
    grid-template-columns: 2.6rem minmax(0, 1fr);
  }

  body.home-page .home-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home-page .home-stats__cell:nth-child(3n) {
    border-right: 1px solid rgba(140, 190, 255, 0.12);
  }

  body.home-page .home-stats__cell:nth-child(2n) {
    border-right: none;
  }

  body.home-page .home-stats__cell:nth-last-child(-n + 3) {
    border-bottom: 1px solid rgba(140, 190, 255, 0.12);
  }

  body.home-page .home-stats__cell:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  body.home-page .home-stats__cell {
    min-height: 5.8rem;
    padding: 0.95rem 0.9rem 0.85rem;
  }

  body.home-page .home-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .home-hero__photo,
  body.home-page .home-hero__beam,
  body.home-page .home-hero__copy,
  body.home-page .home-hero__mark-img,
  body.home-page .home-reveal,
  body.home-page .home-community__btn {
    animation: none !important;
    transition: none !important;
  }

  body.home-page .home-reveal {
    opacity: 1;
    transform: none;
  }
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  position: relative;
  z-index: 6;
}

.header-actions .login-btn,
.header-actions .account-menu {
  margin-left: 0;
}

.site-settings {
  position: relative;
  flex-shrink: 0;
}

.site-settings__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.site-settings__btn:hover,
.site-settings__btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
}

.site-settings__btn svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.site-settings__menu,
.site-settings__flyout {
  position: absolute;
  z-index: 80;
  min-width: 11.5rem;
  padding: 0.4rem;
  background: rgba(var(--vd-menu), 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-settings__menu {
  top: calc(100% + 0.45rem);
  right: 0;
}

.site-settings__menu[hidden],
.site-settings__flyout[hidden] {
  display: none;
}

.site-settings__flyout {
  left: calc(100% + 0.4rem);
  top: 0;
  max-height: min(70vh, 22rem);
  overflow: auto;
}

.site-settings__flyout--colors {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, 1.7rem);
  gap: 0.45rem;
  padding: 0.55rem;
}

.site-settings__item,
.site-settings__choice {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.4rem;
  padding: 0.45rem 0.75rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}

.site-settings__item:hover,
.site-settings__choice:hover,
.site-settings__item--open,
.site-settings__choice--active {
  background: rgba(255, 255, 255, 0.12);
}

.site-settings__current {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.site-settings__current-swatch {
  width: 0.85rem;
  height: 0.85rem;
  margin-left: auto;
  border-radius: 0.2rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.site-settings__chevron {
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  border-top: 2px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.site-settings__color {
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 0.4rem;
  cursor: pointer;
}

.site-settings__color:hover,
.site-settings__color--active {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px) {
  .site-settings__btn {
    width: 2rem;
    height: 2rem;
  }

  .site-settings__btn svg {
    width: 1.05rem;
    height: 1.05rem;
  }
}

html[data-theme="light"] body.home-page .home-hero__brand,
html[data-theme="beige"] body.home-page .home-hero__brand,
html[data-theme="light"] body.home-page .home-pitch__title,
html[data-theme="beige"] body.home-page .home-pitch__title,
html[data-theme="light"] body.home-page .home-stats__title,
html[data-theme="beige"] body.home-page .home-stats__title,
html[data-theme="light"] body.home-page .home-community__title,
html[data-theme="beige"] body.home-page .home-community__title {
  color: #1c1916;
  text-shadow: none;
}

html[data-theme="light"] body.home-page .home-hero__line,
html[data-theme="beige"] body.home-page .home-hero__line,
html[data-theme="light"] body.home-page .home-pitch__body,
html[data-theme="beige"] body.home-page .home-pitch__body,
html[data-theme="light"] body.home-page .home-stats__lede,
html[data-theme="beige"] body.home-page .home-stats__lede,
html[data-theme="light"] body.home-page .home-community__body,
html[data-theme="beige"] body.home-page .home-community__body {
  color: rgba(var(--vd-accent), 0.72);
}

html[data-theme="light"] body.home-page .home-cta--ghost,
html[data-theme="beige"] body.home-page .home-cta--ghost {
  color: #1c1916;
  border-color: rgba(28, 25, 22, 0.2);
  background: rgba(255, 255, 255, 0.45);
}

html[data-theme="light"] body.home-page .home-stats,
html[data-theme="beige"] body.home-page .home-stats {
  border-top-color: rgba(28, 25, 22, 0.14);
  border-bottom-color: rgba(28, 25, 22, 0.14);
}

html[data-theme="light"] body.home-page .home-stats::before,
html[data-theme="beige"] body.home-page .home-stats::before {
  background-image:
    linear-gradient(rgba(28, 25, 22, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 25, 22, 0.06) 1px, transparent 1px);
  opacity: 0.85;
}

html[data-theme="light"] body.home-page .home-stats__grid,
html[data-theme="beige"] body.home-page .home-stats__grid {
  border: 1.5px solid rgba(28, 25, 22, 0.22);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 28px rgba(28, 25, 22, 0.08);
}

html[data-theme="light"] body.home-page .home-stats__cell,
html[data-theme="beige"] body.home-page .home-stats__cell {
  border-right-color: rgba(28, 25, 22, 0.16);
  border-bottom-color: rgba(28, 25, 22, 0.16);
}

html[data-theme="light"] body.home-page .home-stats__cell:hover,
html[data-theme="beige"] body.home-page .home-stats__cell:hover {
  background: rgba(var(--vd-accent), 0.08);
}

html[data-theme="light"] body.home-page .home-stats__num,
html[data-theme="beige"] body.home-page .home-stats__num {
  color: #1c1916;
  text-shadow: none;
}

html[data-theme="light"] body.home-page .home-stats__label,
html[data-theme="beige"] body.home-page .home-stats__label {
  color: rgba(28, 25, 22, 0.62);
}

html[data-theme="light"] body.home-page .home-stats__icon,
html[data-theme="beige"] body.home-page .home-stats__icon {
  color: rgba(var(--vd-accent), 0.95);
}

html[data-theme="light"] body.home-page .home-community__btn,
html[data-theme="beige"] body.home-page .home-community__btn {
  color: #fff;
  border-color: transparent;
  background: var(--vd-brand);
  box-shadow: 0 8px 22px rgba(var(--vd-brand-glow), 0.28);
}

html[data-theme="light"] body.home-page .home-community__btn:hover,
html[data-theme="beige"] body.home-page .home-community__btn:hover {
  background: var(--vd-brand-hot);
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(var(--vd-brand-glow), 0.36);
}

html[data-theme="light"] body.post-trade-page,
html[data-theme="light"] body.trade-calculator-page,
html[data-theme="light"] body.view-trade-page,
html[data-theme="light"] body.trading-page,
html[data-theme="beige"] body.post-trade-page,
html[data-theme="beige"] body.trade-calculator-page,
html[data-theme="beige"] body.view-trade-page,
html[data-theme="beige"] body.trading-page {
  --trade-text: var(--vd-brand);
  --trade-text-muted: rgba(var(--vd-accent), 0.72);
  --trade-primary-rgb: var(--vd-accent);
  --trade-deep-rgb: var(--vd-accent);
  --trade-accent-rgb: var(--vd-accent);
  --trade-accent: var(--vd-brand);
  --trade-border: rgba(var(--vd-accent), 0.16);
  --trade-border-strong: rgba(var(--vd-accent), 0.28);
  --trade-glass: rgba(var(--vd-menu), 0.96);
  --trade-glass-hover: rgba(var(--vd-accent), 0.07);
  --trade-glass-shadow: rgba(var(--vd-accent), 0.1);
  --trade-inset: rgba(var(--vd-accent), 0.055);
  --trade-slot-add: rgba(var(--vd-accent), 0.035);
  --trade-slot-add-border: rgba(var(--vd-accent), 0.18);
}

html[data-theme="light"] :is(
  .trading-side-filter-btn,
  .trading-side-filter-btn:hover,
  .trading-side-filter-btn.is-active,
  .trade-picker__clear-filter,
  .trade-picker__clear-filter:hover,
  .posted-trades-empty__title,
  .posted-trade__offerer-name,
  .posted-trade__side-usd,
  .posted-trade__side-usd--higher,
  .posted-trade__side-usd--lower,
  .posted-trade__roblox-add,
  .posted-trade__roblox-add:hover,
  .posted-trade__btn,
  .trading-btn,
  .trading-btn:hover,
  .trading-btn__icon,
  .trading-btn--primary-cta,
  .demand-check-category,
  .demand-check-category__icon,
  .demand-check-category--active .demand-check-category__icon,
  .demand-check-calc-btn,
  .demand-check-value__amount,
  .pet-search,
  .pet-search-icon,
  .pet-search-wrap.demand-check-search .pet-search-icon,
  .profile-card__username,
  .profile-trades__heading,
  .credits-title,
  .credits-name,
  .credits-profile-link,
  .tos-panel,
  .tos-heading,
  .tos-section h2,
  .value-edit-modal__title,
  .value-edit-modal__category-title,
  .value-edit-modal__field input,
  .value-edit-modal__btn
),
html[data-theme="beige"] :is(
  .trading-side-filter-btn,
  .trading-side-filter-btn:hover,
  .trading-side-filter-btn.is-active,
  .trade-picker__clear-filter,
  .trade-picker__clear-filter:hover,
  .posted-trades-empty__title,
  .posted-trade__offerer-name,
  .posted-trade__side-usd,
  .posted-trade__side-usd--higher,
  .posted-trade__side-usd--lower,
  .posted-trade__roblox-add,
  .posted-trade__roblox-add:hover,
  .posted-trade__btn,
  .trading-btn,
  .trading-btn:hover,
  .trading-btn__icon,
  .trading-btn--primary-cta,
  .demand-check-category,
  .demand-check-category__icon,
  .demand-check-category--active .demand-check-category__icon,
  .demand-check-calc-btn,
  .demand-check-value__amount,
  .pet-search,
  .pet-search-icon,
  .pet-search-wrap.demand-check-search .pet-search-icon,
  .profile-card__username,
  .profile-trades__heading,
  .credits-title,
  .credits-name,
  .credits-profile-link,
  .tos-panel,
  .tos-heading,
  .tos-section h2,
  .value-edit-modal__title,
  .value-edit-modal__category-title,
  .value-edit-modal__field input,
  .value-edit-modal__btn
) {
  color: #1c1916;
}

html[data-theme="light"] body.home-page :is(
  .home-path__name,
  .home-spotlight__title,
  .home-spotlight__name,
  .home-footer__brand,
  .home-footer__links a:hover
),
html[data-theme="beige"] body.home-page :is(
  .home-path__name,
  .home-spotlight__title,
  .home-spotlight__name,
  .home-footer__brand,
  .home-footer__links a:hover
) {
  color: #1c1916;
}

html[data-theme="light"] :is(
  .posted-trades-empty__text,
  .posted-trade__empty-side,
  .posted-trade__timer,
  .demand-check-hint,
  .demand-check-value__label,
  .pet-search::placeholder,
  .pet-search-wrap.demand-check-search .pet-search::placeholder,
  .profile-card__id,
  .profile-trades__empty,
  .credits-bar__title,
  .tos-effective,
  .tos-intro,
  .tos-section p,
  .tos-section li,
  .value-edit-modal__field label
),
html[data-theme="beige"] :is(
  .posted-trades-empty__text,
  .posted-trade__empty-side,
  .posted-trade__timer,
  .demand-check-hint,
  .demand-check-value__label,
  .pet-search::placeholder,
  .pet-search-wrap.demand-check-search .pet-search::placeholder,
  .profile-card__id,
  .profile-trades__empty,
  .credits-bar__title,
  .tos-effective,
  .tos-intro,
  .tos-section p,
  .tos-section li,
  .value-edit-modal__field label
) {
  color: rgba(var(--vd-accent), 0.72);
}

html[data-theme="light"] body.home-page :is(
  .home-path__desc,
  .home-spotlight__note,
  .home-footer__links a
),
html[data-theme="beige"] body.home-page :is(
  .home-path__desc,
  .home-spotlight__note,
  .home-footer__links a
) {
  color: rgba(var(--vd-accent), 0.72);
}

html[data-theme="light"] .trading-btn--active,
html[data-theme="beige"] .trading-btn--active,
html[data-theme="light"] .trading-btn--active .trading-btn__icon,
html[data-theme="beige"] .trading-btn--active .trading-btn__icon {
  color: #fff;
}

html[data-theme="light"] :is(
  .trading-btn,
  .trading-btn--primary-cta,
  .posted-trade__btn,
  .demand-check-category,
  .demand-check-calc-btn,
  .posted-trades-empty__card,
  .profile-card,
  .credits-slot
),
html[data-theme="beige"] :is(
  .trading-btn,
  .trading-btn--primary-cta,
  .posted-trade__btn,
  .demand-check-category,
  .demand-check-calc-btn,
  .posted-trades-empty__card,
  .profile-card,
  .credits-slot
) {
  border-color: rgba(28, 25, 22, 0.14);
}

html[data-theme="light"] .trading-feed-headbar > * + *::before,
html[data-theme="beige"] .trading-feed-headbar > * + *::before {
  background: rgba(28, 25, 22, 0.16);
}

html[data-theme="light"] body.trading-page .posted-trades-feed .posted-trade:hover .posted-trade__bar,
html[data-theme="beige"] body.trading-page .posted-trades-feed .posted-trade:hover .posted-trade__bar {
  background: rgba(var(--vd-accent), 0.08);
  border-color: rgba(var(--vd-accent), 0.28);
}

html[data-theme="light"] .value-edit-modal__panel,
html[data-theme="beige"] .value-edit-modal__panel {
  background: rgba(var(--vd-menu), 0.98);
  color: #1c1916;
}

html[data-theme="light"] body.post-trade-page .trade-glass-bar,
html[data-theme="light"] body.trade-calculator-page .trade-glass-bar,
html[data-theme="light"] body.view-trade-page .trade-glass-bar,
html[data-theme="beige"] body.post-trade-page .trade-glass-bar,
html[data-theme="beige"] body.trade-calculator-page .trade-glass-bar,
html[data-theme="beige"] body.view-trade-page .trade-glass-bar {
  background: rgba(var(--vd-menu), 0.96);
  border-color: rgba(var(--vd-accent), 0.16);
  box-shadow: 0 16px 40px rgba(var(--vd-accent), 0.08);
}

html[data-theme="light"] body.post-trade-page .trade-return-btn,
html[data-theme="light"] body.trade-calculator-page .trade-return-btn,
html[data-theme="light"] body.view-trade-page .trade-return-btn,
html[data-theme="beige"] body.post-trade-page .trade-return-btn,
html[data-theme="beige"] body.trade-calculator-page .trade-return-btn,
html[data-theme="beige"] body.view-trade-page .trade-return-btn,
html[data-theme="light"] body.post-trade-page .trade-return-btn:hover,
html[data-theme="light"] body.trade-calculator-page .trade-return-btn:hover,
html[data-theme="light"] body.view-trade-page .trade-return-btn:hover,
html[data-theme="beige"] body.post-trade-page .trade-return-btn:hover,
html[data-theme="beige"] body.trade-calculator-page .trade-return-btn:hover,
html[data-theme="beige"] body.view-trade-page .trade-return-btn:hover {
  background: rgba(var(--vd-accent), 0.06);
  border-color: rgba(var(--vd-accent), 0.2);
  box-shadow: none;
}

html[data-theme="light"] body.post-trade-page .trade-return-btn .trade-action-btn__icon,
html[data-theme="light"] body.trade-calculator-page .trade-return-btn .trade-action-btn__icon,
html[data-theme="light"] body.view-trade-page .trade-return-btn .trade-action-btn__icon,
html[data-theme="beige"] body.post-trade-page .trade-return-btn .trade-action-btn__icon,
html[data-theme="beige"] body.trade-calculator-page .trade-return-btn .trade-action-btn__icon,
html[data-theme="beige"] body.view-trade-page .trade-return-btn .trade-action-btn__icon {
  color: var(--vd-brand);
}

html[data-theme="light"] body.post-trade-page .trade-slot--add:hover,
html[data-theme="light"] body.trade-calculator-page .trade-slot--add:hover,
html[data-theme="light"] body.view-trade-page .trade-slot--add:hover,
html[data-theme="beige"] body.post-trade-page .trade-slot--add:hover,
html[data-theme="beige"] body.trade-calculator-page .trade-slot--add:hover,
html[data-theme="beige"] body.view-trade-page .trade-slot--add:hover {
  background: rgba(var(--vd-accent), 0.08);
  border-color: rgba(var(--vd-accent), 0.28);
  box-shadow: none;
}

html[data-theme="light"] body.post-trade-page .trade-center,
html[data-theme="light"] body.trade-calculator-page .trade-center,
html[data-theme="light"] body.view-trade-page .trade-center,
html[data-theme="light"] body.trading-page .trade-center,
html[data-theme="beige"] body.post-trade-page .trade-center,
html[data-theme="beige"] body.trade-calculator-page .trade-center,
html[data-theme="beige"] body.view-trade-page .trade-center,
html[data-theme="beige"] body.trading-page .trade-center {
  color: var(--vd-brand);
}

html[data-theme="light"] .trade-center__icon-shape rect,
html[data-theme="light"] .trade-center__icon-shape polygon,
html[data-theme="beige"] .trade-center__icon-shape rect,
html[data-theme="beige"] .trade-center__icon-shape polygon {
  stroke: rgba(var(--vd-accent), 0.22);
  filter: none;
}

html[data-theme="light"] .trade-value-compare__bar,
html[data-theme="beige"] .trade-value-compare__bar {
  background: rgba(var(--vd-accent), 0.12);
}

html[data-theme="light"] .trade-value-compare:not(.trade-value-compare--win):not(.trade-value-compare--lose) .trade-value-compare__fill--yours,
html[data-theme="beige"] .trade-value-compare:not(.trade-value-compare--win):not(.trade-value-compare--lose) .trade-value-compare__fill--yours {
  background: rgba(var(--vd-accent), 0.7);
}

html[data-theme="light"] .trade-value-compare:not(.trade-value-compare--win):not(.trade-value-compare--lose) .trade-value-compare__fill--theirs,
html[data-theme="beige"] .trade-value-compare:not(.trade-value-compare--win):not(.trade-value-compare--lose) .trade-value-compare__fill--theirs {
  background: rgba(var(--vd-accent), 0.32);
}

html[data-theme="light"] .trade-value-compare__midline,
html[data-theme="beige"] .trade-value-compare__midline {
  background: rgba(var(--vd-accent), 0.55);
}

html[data-theme="light"] .trade-value-compare--win .trade-value-compare__verdict,
html[data-theme="beige"] .trade-value-compare--win .trade-value-compare__verdict {
  color: #147a3e;
}

html[data-theme="light"] .trade-value-compare--lose .trade-value-compare__verdict,
html[data-theme="beige"] .trade-value-compare--lose .trade-value-compare__verdict {
  color: #c23030;
}

html[data-theme="light"] body.trading-page .posted-trades-feed .posted-trade__bar,
html[data-theme="beige"] body.trading-page .posted-trades-feed .posted-trade__bar {
  background: rgba(var(--vd-menu), 0.96);
  border-color: rgba(var(--vd-accent), 0.16);
  box-shadow: 0 8px 24px rgba(var(--vd-accent), 0.08);
}

html[data-theme="light"] body.trading-page .posted-trades-feed .posted-trade__bar > * + *,
html[data-theme="beige"] body.trading-page .posted-trades-feed .posted-trade__bar > * + * {
  border-left-color: rgba(var(--vd-accent), 0.14);
}

html[data-theme="light"] .posted-trade__value-delta--fair,
html[data-theme="beige"] .posted-trade__value-delta--fair {
  background: rgba(var(--vd-accent), 0.06);
  border-color: rgba(var(--vd-accent), 0.16);
  color: var(--vd-brand);
}

html[data-theme="light"] .posted-trade__value-delta--win,
html[data-theme="beige"] .posted-trade__value-delta--win {
  background: rgba(20, 122, 62, 0.12);
  border-color: rgba(20, 122, 62, 0.32);
  color: #147a3e;
}

html[data-theme="light"] .posted-trade__value-delta--lose,
html[data-theme="beige"] .posted-trade__value-delta--lose {
  background: rgba(194, 48, 48, 0.1);
  border-color: rgba(194, 48, 48, 0.28);
  color: #c23030;
}

html[data-theme="light"] .trade-grid-scroll,
html[data-theme="beige"] .trade-grid-scroll {
  scrollbar-color: rgba(var(--vd-accent), 0.35) transparent;
}

html[data-theme="light"] .demand-check-pet-card .trade-picker__pet-bar-name,
html[data-theme="beige"] .demand-check-pet-card .trade-picker__pet-bar-name {
  color: var(--vd-brand);
  text-shadow: none;
}

html[data-theme="light"] .pet-search-wrap.demand-check-search,
html[data-theme="beige"] .pet-search-wrap.demand-check-search {
  background: rgba(var(--vd-menu), 0.96);
  border-color: rgba(var(--vd-accent), 0.18);
  box-shadow: 0 4px 16px rgba(var(--vd-accent), 0.06);
}

html[data-theme="light"] .pet-search-wrap.demand-check-search:focus-within,
html[data-theme="beige"] .pet-search-wrap.demand-check-search:focus-within {
  background: rgba(var(--vd-menu), 0.98);
  border-color: rgba(var(--vd-accent), 0.4);
}

html[data-theme="light"] .pet-search-wrap.demand-check-search .pet-search,
html[data-theme="beige"] .pet-search-wrap.demand-check-search .pet-search,
html[data-theme="light"] .pet-search-wrap.demand-check-search .pet-search-icon,
html[data-theme="beige"] .pet-search-wrap.demand-check-search .pet-search-icon {
  color: var(--vd-brand);
}

html[data-theme="light"] .pet-search-wrap.demand-check-search .pet-search::placeholder,
html[data-theme="beige"] .pet-search-wrap.demand-check-search .pet-search::placeholder {
  color: rgba(var(--vd-accent), 0.62);
}

.trade-picker__panel {
  background: rgb(var(--vd-menu));
  border-color: rgba(var(--vd-accent), 0.22);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.trade-picker__categories {
  background: color-mix(in srgb, var(--vd-canvas) 72%, rgb(var(--vd-menu)));
  border-right-color: rgba(var(--vd-accent), 0.16);
}

.trade-picker__content {
  background: var(--vd-canvas);
}

html[data-theme="light"] .demand-check-pet-card.trade-picker__pet-popout-card,
html[data-theme="beige"] .demand-check-pet-card.trade-picker__pet-popout-card {
  background: rgb(var(--vd-menu));
  border: 1px solid rgba(var(--vd-accent), 0.34);
  box-shadow: 0 8px 22px rgba(var(--vd-accent), 0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-theme="light"] .demand-check-value,
html[data-theme="beige"] .demand-check-value {
  background: rgba(var(--vd-accent), 0.06);
  border: 1px solid rgba(var(--vd-accent), 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-theme="light"] .trade-picker__panel,
html[data-theme="beige"] .trade-picker__panel {
  box-shadow: 0 16px 48px rgba(var(--vd-accent), 0.14);
  color: var(--vd-brand);
}

html[data-theme="light"] .trade-picker__category,
html[data-theme="beige"] .trade-picker__category,
html[data-theme="light"] .trade-picker__category:hover,
html[data-theme="beige"] .trade-picker__category:hover,
html[data-theme="light"] .trade-picker__category--active,
html[data-theme="beige"] .trade-picker__category--active {
  background: rgb(var(--vd-menu));
  border-color: rgba(var(--vd-accent), 0.2);
  color: var(--vd-brand);
  box-shadow: none;
}

html[data-theme="light"] .trade-picker__category--active,
html[data-theme="beige"] .trade-picker__category--active,
html[data-theme="light"] .trade-picker__category--active:hover,
html[data-theme="beige"] .trade-picker__category--active:hover {
  border-color: rgba(var(--vd-accent), 0.55);
  background: rgba(var(--vd-accent), 0.08);
}

html[data-theme="light"] .trade-picker__category-icon,
html[data-theme="beige"] .trade-picker__category-icon,
html[data-theme="light"] .trade-picker__category--active .trade-picker__category-icon,
html[data-theme="beige"] .trade-picker__category--active .trade-picker__category-icon,
html[data-theme="light"] .trade-picker__search,
html[data-theme="beige"] .trade-picker__search,
html[data-theme="light"] .trade-picker__search-icon,
html[data-theme="beige"] .trade-picker__search-icon,
html[data-theme="light"] .trade-picker__close,
html[data-theme="beige"] .trade-picker__close,
html[data-theme="light"] .trade-picker__hint,
html[data-theme="beige"] .trade-picker__hint {
  color: var(--vd-brand);
}

html[data-theme="light"] .trade-picker__search-wrap,
html[data-theme="beige"] .trade-picker__search-wrap,
html[data-theme="light"] .trade-picker__close,
html[data-theme="beige"] .trade-picker__close {
  background: rgb(var(--vd-menu));
  border-color: rgba(var(--vd-accent), 0.22);
  box-shadow: none;
}

html[data-theme="light"] .trade-picker__search-wrap:focus-within,
html[data-theme="beige"] .trade-picker__search-wrap:focus-within {
  background: rgb(var(--vd-menu));
  border-color: rgba(var(--vd-accent), 0.5);
  box-shadow: none;
}

html[data-theme="light"] .trade-picker__search::placeholder,
html[data-theme="beige"] .trade-picker__search::placeholder {
  color: rgba(var(--vd-accent), 0.55);
}

html[data-theme="light"] .trade-picker__item,
html[data-theme="beige"] .trade-picker__item {
  background: rgb(var(--vd-menu));
  border-color: rgba(var(--vd-accent), 0.22);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-theme="light"] .trade-picker__item:hover,
html[data-theme="beige"] .trade-picker__item:hover,
html[data-theme="light"] .trade-picker__item--selected,
html[data-theme="beige"] .trade-picker__item--selected {
  background: rgb(var(--vd-menu));
  border-color: rgba(var(--vd-accent), 0.5);
  box-shadow: none;
}

html[data-theme="light"] .trade-picker__items,
html[data-theme="beige"] .trade-picker__items {
  scrollbar-color: rgba(var(--vd-accent), 0.4) transparent;
}

.demand-check-category-menu {
  background: rgb(var(--vd-menu));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-theme="light"] .demand-check-other-btn,
html[data-theme="beige"] .demand-check-other-btn,
html[data-theme="light"] .demand-check-calc-btn,
html[data-theme="beige"] .demand-check-calc-btn {
  color: var(--vd-brand);
  background: rgba(var(--vd-menu), 0.96);
  border-color: rgba(var(--vd-accent), 0.18);
  box-shadow: 0 4px 16px rgba(var(--vd-accent), 0.06);
}

html[data-theme="light"] .demand-check-other-btn:hover,
html[data-theme="beige"] .demand-check-other-btn:hover,
html[data-theme="light"] .demand-check-calc-btn:hover,
html[data-theme="beige"] .demand-check-calc-btn:hover {
  background: rgb(var(--vd-menu));
  border-color: rgba(var(--vd-accent), 0.32);
  box-shadow: 0 4px 16px rgba(var(--vd-accent), 0.08);
}

html[data-theme="light"] .demand-check-category-menu,
html[data-theme="beige"] .demand-check-category-menu {
  border-color: rgba(var(--vd-accent), 0.16);
  box-shadow: 0 12px 32px rgba(var(--vd-accent), 0.12);
}

html[data-theme="light"] .demand-check-category,
html[data-theme="beige"] .demand-check-category,
html[data-theme="light"] .demand-check-category:hover,
html[data-theme="beige"] .demand-check-category:hover {
  background: rgba(var(--vd-accent), 0.045);
  border-color: rgba(var(--vd-accent), 0.14);
  color: var(--vd-brand);
  box-shadow: none;
}

html[data-theme="light"] .demand-check-category__icon,
html[data-theme="beige"] .demand-check-category__icon,
html[data-theme="light"] .demand-check-category--active .demand-check-category__icon,
html[data-theme="beige"] .demand-check-category--active .demand-check-category__icon {
  color: var(--vd-brand);
}

html[data-theme="light"] .demand-check-category--active,
html[data-theme="beige"] .demand-check-category--active,
html[data-theme="light"] .demand-check-category--active:hover,
html[data-theme="beige"] .demand-check-category--active:hover {
  background: rgba(var(--vd-accent), 0.1);
  border-color: rgba(var(--vd-accent), 0.32);
}

@media (min-width: 769px) {
  body.trade-calculator-page {
    --calc-top-gap: clamp(0.75rem, calc(100dvh - 760px), 5rem);
  }

  body.trade-calculator-page .trade-glass-bar {
    margin-top: var(--calc-top-gap);
  }

  body.trade-calculator-page .trade-side {
    max-width: max(11rem, calc(100dvh - var(--calc-top-gap) - 356px));
  }
}

/* ── Scroll performance ──
   These repeated cards sit on a flat backdrop (or inside an already-blurred / opaque panel),
   so their backdrop blur looked the same as no blur but was recomputed every scroll frame. */
.demand-check-pet-card.trade-picker__pet-popout-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)),
    var(--vd-canvas);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.demand-check-value,
.trade-picker__item,
.posted-trade__bar {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
