body.rx-bm-v2 {
  --rx-v2-bg: #070814;
  --rx-v2-topbar: rgba(28, 28, 39, 0.98);
  --rx-v2-panel: rgba(35, 35, 47, 0.96);
  --rx-v2-panel-soft: rgba(43, 43, 56, 0.9);
  --rx-v2-border: rgba(255, 255, 255, 0.1);
  --rx-v2-text: #f6f3fb;
  --rx-v2-muted: #9b99a8;
  --rx-v2-chip: rgba(54, 54, 68, 0.96);
  --rx-v2-pink: #ec1aae;
  background: var(--rx-v2-bg);
}

body.rx-bm-v2 .rx-v2-native-nav {
  opacity: 0 !important;
  pointer-events: none !important;
}

body.rx-bm-v2 .rx-v2-canvas-wrap {
  padding-top: 3.25rem !important;
}

body.rx-bm-v2 #rx-bm-v2-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 75;
  height: 3.25rem;
  display: grid;
  grid-template-columns: auto minmax(145px, 148px) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 1rem;
  background: var(--rx-v2-topbar);
  border-bottom: 1px solid var(--rx-v2-border);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02), 0 16px 36px rgba(0, 0, 0, 0.22);
}

body.rx-bm-v2 .rx-v2-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

body.rx-bm-v2 .rx-v2-brand img {
  height: 1.35rem;
  width: auto;
  object-fit: contain;
}

body.rx-bm-v2 .rx-v2-brand-text {
  font-family: Inter, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--rx-v2-text);
  white-space: nowrap;
}

body.rx-bm-v2 .rx-v2-search-shell,
body.rx-bm-v2 .rx-v2-search-wide {
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: var(--rx-v2-chip);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.72rem;
  min-width: 0;
}

body.rx-bm-v2 .rx-v2-search-shell svg,
body.rx-bm-v2 .rx-v2-search-wide svg {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--rx-v2-muted);
  flex: 0 0 auto;
}

body.rx-bm-v2 .rx-v2-search-shell input,
body.rx-bm-v2 .rx-v2-search-wide input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--rx-v2-text);
  font-size: 0.88rem;
  line-height: 1;
}

body.rx-bm-v2 .rx-v2-search-shell input::placeholder,
body.rx-bm-v2 .rx-v2-search-wide input::placeholder {
  color: #8f95af;
}

body.rx-bm-v2 .rx-v2-search-wide {
  display: none;
}

body.rx-bm-v2 .rx-v2-token-strip {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent, #000 1rem, #000 calc(100% - 1.8rem), transparent);
  padding-inline: 0.25rem 1.3rem;
}

body.rx-bm-v2 .rx-v2-token-strip::-webkit-scrollbar {
  display: none;
}

body.rx-bm-v2 .rx-v2-token-pill {
  height: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(247, 245, 253, 0.92);
  padding: 0 0.58rem;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

body.rx-bm-v2 .rx-v2-token-pill:hover,
body.rx-bm-v2 .rx-v2-token-pill[aria-current="true"] {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

body.rx-bm-v2 .rx-v2-token-pill-rank {
  color: rgba(187, 184, 199, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
}

body.rx-bm-v2 .rx-v2-token-pill-icon {
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  object-fit: cover;
  background: #10111b;
}

body.rx-bm-v2 .rx-v2-boost {
  height: 2rem;
  border: 0;
  border-radius: 999px;
  padding: 0 0.82rem;
  background: linear-gradient(135deg, #ff2bb8, #ca138f);
  box-shadow: inset 0 -1px rgba(0, 0, 0, 0.2), 0 0 22px rgba(236, 26, 174, 0.22);
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  cursor: pointer;
}

body.rx-bm-v2 .rx-v2-login {
  height: 2rem;
  border: 1px solid rgba(236, 26, 174, 0.22);
  border-radius: 0.38rem;
  padding: 0 0.86rem;
  background: rgba(84, 21, 70, 0.72);
  color: #ff58d2;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

body.rx-bm-v2 .rx-v2-login:hover {
  background: linear-gradient(180deg, #2c1841, #27173a);
}

body.rx-bm-v2 .rx-v2-token-results {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 14rem;
  max-width: 20rem;
  max-height: 16rem;
  overflow: auto;
  border-radius: 0.8rem;
  border: 1px solid rgba(145, 152, 175, 0.22);
  background: rgba(14, 18, 30, 0.95);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
  padding: 0.3rem;
  z-index: 120;
}

body.rx-bm-v2 .rx-v2-token-result {
  width: 100%;
  border: 0;
  background: transparent;
  color: #dce1f5;
  text-align: left;
  border-radius: 0.5rem;
  padding: 0.45rem 0.5rem;
  cursor: pointer;
  font-size: 0.82rem;
}

body.rx-bm-v2 .rx-v2-token-result:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.rx-bm-v2 .rx-v2-left-dock {
  top: 4rem !important;
  left: 0.75rem !important;
}

body.rx-bm-v2 .rx-v2-left-card {
  width: 21.3rem !important;
  max-width: min(21.3rem, calc(100vw - 2rem)) !important;
  border-radius: 0.44rem !important;
  border: 1px solid var(--rx-v2-border) !important;
  background: linear-gradient(180deg, rgba(52, 47, 65, 0.96), rgba(35, 35, 48, 0.96)) !important;
  backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.32);
}

body.rx-bm-v2 .rx-v2-magic {
  top: 4rem !important;
  left: 31.8rem !important;
  transform: none !important;
  border-radius: 0.46rem !important;
  background: rgba(79, 20, 67, 0.88) !important;
  border-color: rgba(236, 26, 174, 0.92) !important;
  color: #fff0fb !important;
  min-height: 2.75rem !important;
  padding-inline: 1.05rem !important;
  box-shadow: 0 0 24px rgba(236, 26, 174, 0.18);
}

body.rx-bm-v2 .rx-v2-right-panel {
  top: 4rem !important;
  bottom: 0.75rem !important;
  right: 0.75rem !important;
  width: 22rem !important;
  border-left: 1px solid var(--rx-v2-border) !important;
  border: 1px solid var(--rx-v2-border) !important;
  border-radius: 0.5rem !important;
  background: var(--rx-v2-panel) !important;
  backdrop-filter: blur(16px) saturate(120%);
  overflow: hidden;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.42);
}

body.rx-bm-v2 .rx-v2-right-panel input[type="search"] {
  font-size: 1rem !important;
}

body.rx-bm-v2 .rx-v2-right-panel [data-testid^="holder-row-"] {
  min-height: 2.55rem !important;
  padding-block: 0.55rem !important;
  border-color: rgba(255, 255, 255, 0.075) !important;
}

body.rx-bm-v2 [data-testid="price-chart-btn"] {
  border-radius: 0.44rem !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  background: rgba(35, 35, 47, 0.96) !important;
  min-height: 2.75rem !important;
  padding-inline: 0.9rem !important;
  font-size: 1rem !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

body.rx-bm-v2 .bubble-graph-container > svg {
  background: #070814 !important;
}

body.rx-bm-v2 .bubble-graph-container svg line {
  stroke: rgba(232, 238, 248, 0.82) !important;
  stroke-opacity: 0.72 !important;
  stroke-width: 0.85 !important;
}

body.rx-bm-v2 .bubble-graph-container svg .cluster-halo-disc {
  opacity: 0 !important;
}

body.rx-bm-v2 .bubble-graph-container svg .node text {
  opacity: 0 !important;
}

body.rx-bm-v2 .bubble-graph-container svg .bubble-ring {
  filter: none !important;
  stroke-opacity: 1 !important;
}

body.rx-bm-v2 .bubble-graph-container svg .bubble-center {
  filter: none !important;
}

body.rx-bm-v2 .bubble-graph-container svg .bubble-halo {
  filter: none !important;
}

@media (max-width: 1100px) {
  body.rx-bm-v2 #rx-bm-v2-header {
    grid-template-columns: auto minmax(150px, 1fr) auto;
  }

  body.rx-bm-v2 .rx-v2-token-strip,
  body.rx-bm-v2 .rx-v2-boost {
    display: none;
  }

  body.rx-bm-v2 .rx-v2-magic {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

@media (max-width: 740px) {
  body.rx-bm-v2 #rx-bm-v2-header {
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    padding: 0.45rem 0.72rem;
    height: 3.5rem;
  }

  body.rx-bm-v2 .rx-v2-brand-text {
    font-size: 0.95rem;
  }

  body.rx-bm-v2 .rx-v2-search-wide {
    height: 1.85rem;
  }

  body.rx-bm-v2 .rx-v2-login {
    height: 1.85rem;
    padding-inline: 0.62rem;
    font-size: 0.8rem;
  }

  body.rx-bm-v2 .rx-v2-canvas-wrap {
    padding-top: 3.5rem !important;
  }

  body.rx-bm-v2 .rx-v2-left-dock {
    top: 4.3rem !important;
  }

  body.rx-bm-v2 .rx-v2-left-card {
    width: calc(100vw - 3rem) !important;
    max-width: calc(100vw - 3rem) !important;
  }

  body.rx-bm-v2 .rx-v2-magic {
    top: 21.25rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}
