/* Baazex brand overrides (loaded after the site CSS). */

/* Header nav: explicit mode set by nav-patch.js (hero = light, dark sections = white text). */
header[data-bz-nav-mode="light"] nav button:not([class*="bg-primary"]):not([class*="bg-shade100"]):not([class*="bg-secondary"]),
header[data-bz-nav-mode="light"] nav a.bzNavA,
header[data-bz-nav-mode="light"] nav button.bzNavTrigger,
header[data-bz-nav-mode="light"] button[class*="header-"]:not([class*="bg-primary"]):not([class*="bg-shade100"]):not([class*="bg-secondary"]),
header[data-bz-nav-mode="light"] button[class*="mobile-header-"]:not([class*="bg-primary"]):not([class*="bg-shade100"]):not([class*="bg-secondary"]) {
  color: #141414 !important;
}
header[data-bz-nav-mode="light"] nav button svg,
header[data-bz-nav-mode="light"] nav a svg,
header[data-bz-nav-mode="light"] button[class*="header-"] svg,
header[data-bz-nav-mode="light"] button[class*="mobile-header-"] svg {
  color: #141414 !important;
  stroke: #141414 !important;
}
header[data-bz-nav-mode="dark"] nav button:not([class*="bg-primary"]):not([class*="bg-shade100"]):not([class*="bg-secondary"]),
header[data-bz-nav-mode="dark"] nav a.bzNavA,
header[data-bz-nav-mode="dark"] nav button.bzNavTrigger,
header[data-bz-nav-mode="dark"] button[class*="header-"]:not([class*="bg-primary"]):not([class*="bg-shade100"]):not([class*="bg-secondary"]),
header[data-bz-nav-mode="dark"] button[class*="mobile-header-"]:not([class*="bg-primary"]):not([class*="bg-shade100"]):not([class*="bg-secondary"]) {
  color: #ffffff !important;
}
header[data-bz-nav-mode="dark"] nav button svg,
header[data-bz-nav-mode="dark"] nav a svg,
header[data-bz-nav-mode="dark"] button[class*="header-"] svg,
header[data-bz-nav-mode="dark"] button[class*="mobile-header-"] svg,
header[data-bz-nav-mode="dark"] [class*="lg:hidden"] button svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* Header nav item font size override */
header nav button,
header nav a,
header nav button span,
header nav a span,
header nav [data-slot="navigation-menu-trigger"],
header nav .bzNavTrigger,
header nav .bzNavA {
  font-size: 14px !important;
}

/* Shift Header Navigation Bar to Left next to logo */
header div.container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
header div.container > div:nth-child(1) {
  flex: 0 0 auto !important;
  width: auto !important;
  margin-right: 24px !important;
}
header div.container > div:nth-child(2) {
  flex: 1 1 auto !important;
  width: auto !important;
  justify-content: flex-start !important;
}
header div.container > div:nth-child(3) {
  flex: 0 0 auto !important;
  width: auto !important;
}
header nav {
  justify-content: flex-start !important;
  max-width: none !important;
  margin-left: 0 !important;
}
header nav ul {
  justify-content: flex-start !important;
}

/* Fallback before nav-patch runs: match React header theme classes. */
header:not([data-bz-nav-mode]) nav button[class*="header-light"],
header:not([data-bz-nav-mode]) nav a[class*="header-light"],
header:not([data-bz-nav-mode]) nav a.bzNavA[class*="header-light"],
header:not([data-bz-nav-mode]) button[class*="header-light-text"]:not([class*="bg-primary"]):not([class*="bg-shade100"]),
header:not([data-bz-nav-mode]) button[class*="mobile-header-light"]:not([class*="bg-primary"]):not([class*="bg-shade100"]) {
  color: #141414 !important;
}
header:not([data-bz-nav-mode]) nav button[class*="header-light"] svg,
header:not([data-bz-nav-mode]) nav a[class*="header-light"] svg,
header:not([data-bz-nav-mode]) button[class*="header-light"] svg,
header:not([data-bz-nav-mode]) button[class*="mobile-header-light"] svg {
  color: #141414 !important;
  stroke: #141414 !important;
}
header:not([data-bz-nav-mode]) nav button[class*="header-dark"],
header:not([data-bz-nav-mode]) nav a[class*="header-dark"],
header:not([data-bz-nav-mode]) nav a.bzNavA[class*="header-dark"],
header:not([data-bz-nav-mode]) button[class*="header-dark-text"]:not([class*="bg-primary"]):not([class*="bg-shade100"]),
header:not([data-bz-nav-mode]) button[class*="mobile-header-dark"]:not([class*="bg-primary"]):not([class*="bg-shade100"]) {
  color: #ffffff !important;
}
header:not([data-bz-nav-mode]) nav button[class*="header-dark"] svg,
header:not([data-bz-nav-mode]) nav a[class*="header-dark"] svg,
header:not([data-bz-nav-mode]) button[class*="header-dark"] svg,
header:not([data-bz-nav-mode]) button[class*="mobile-header-dark"] svg,
header:not([data-bz-nav-mode]) [class*="lg:hidden"] button[class*="mobile-header-dark"] svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* Kill the original React/Radix mega menu — we render custom panels instead */
[data-slot="navigation-menu-viewport"],
[data-slot="navigation-menu-content"]:not(.bz-mega-panel *),
[data-radix-popper-content-wrapper]:has([data-slot="navigation-menu-content"]) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Custom mega menus — match original Baazex nav dropdown design */
header, header nav, header nav ul, header nav li {
  overflow: visible !important;
}

header nav button.bz-has-mega {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}
header nav button.bz-has-mega .bz-chevron {
  display: inline-flex;
  align-items: center;
  opacity: 0.55;
  margin-left: 1px;
  transition: transform 0.3s ease;
}
header nav button.bz-has-mega .bz-chevron svg {
  display: block;
}
header nav button.bz-mega-open,
header nav button.bz-has-mega:hover {
  background: #fff !important;
  color: #141414 !important;
}
header nav button.bz-mega-open .bz-chevron {
  transform: rotate(180deg);
  opacity: 0.75;
}

@keyframes bzMegaIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bzCardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bzParticleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.35; }
  50% { transform: translateY(-8px) scale(1.15); opacity: 0.7; }
}

@keyframes bzLightSweep {
  0%, 100% { transform: translateX(-35%) rotate(12deg); opacity: 0.4; }
  50% { transform: translateX(35%) rotate(12deg); opacity: 0.7; }
}

@keyframes bzBadgePulse {
  0%, 100% { box-shadow: 0 0 8px rgba(37, 99, 235, 0.18); }
  50% { box-shadow: 0 0 16px rgba(37, 99, 235, 0.32); }
}

@keyframes bzGridDrift {
  0% { background-position: 0 0; }
  100% { background-position: 36px 36px; }
}

@keyframes bzMeshDrift {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(-2%, 1.5%) rotate(1deg) scale(1.04); }
  100% { transform: translate(1.5%, -1%) rotate(-0.5deg) scale(1.02); }
}

@keyframes bzWaveDraw {
  0% { stroke-dashoffset: 1200; opacity: 0.25; }
  50% { opacity: 0.55; }
  100% { stroke-dashoffset: 0; opacity: 0.25; }
}

@keyframes bzOrbPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.06); }
}

@keyframes bzNetworkFade {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.6; }
}

header {
  z-index: 50 !important;
}

/* Premium mega menu — light icy glass (matches homepage theme) */
.bz-mega-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(188, 215, 240, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.bz-mega-overlay.bz-mega-overlay--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bz-mega-panel {
  display: none;
  position: fixed;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 24px;
  z-index: 9999 !important;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(
    135deg,
    rgba(214, 228, 246, 0.88) 0%,
    rgba(198, 218, 242, 0.90) 50%,
    rgba(176, 203, 235, 0.92) 100%
  );
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  box-shadow:
    0 20px 60px rgba(15, 35, 70, 0.18),
    0 8px 24px rgba(37, 99, 235, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  color: #172033;
}
.bz-mega-panel--market {
  width: min(1080px, calc(100vw - 32px));
  max-height: none;
  box-sizing: border-box;
}
.bz-mega-panel--trading-tools {
  width: max-content;
  max-width: min(420px, calc(100vw - 32px));
  min-width: 0;
  height: auto;
  max-height: none;
  box-sizing: border-box;
  padding: 18px 20px;
  border-radius: 22px;
}
.bz-mega-panel--trading-tools::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 65% 48% at 0% 0%, rgba(147, 181, 230, 0.32) 0%, transparent 56%),
    radial-gradient(ellipse 55% 42% at 100% 100%, rgba(96, 132, 188, 0.26) 0%, transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, transparent 11%);
}
.bz-mega-panel.bz-mega-panel--open .bz-mega-shell {
  animation: bzMegaIn 350ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bz-mega-panel--market .bz-mega-shell--market {
  max-height: none;
  overflow: visible;
}
.bz-mega-panel--trading-tools .bz-mega-shell--tools {
  max-height: none;
  overflow: visible;
  width: auto;
  position: relative;
  z-index: 1;
}

/* Ambient background FX — refined frosted glass depth */
.bz-mega-fx {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bz-mega-fx__mesh {
  position: absolute;
  inset: -40%;
  opacity: 0.5;
  background:
    radial-gradient(ellipse 52% 44% at 8% 12%, rgba(186, 214, 248, 0.55) 0%, transparent 58%),
    radial-gradient(ellipse 48% 42% at 92% 88%, rgba(120, 158, 210, 0.38) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 55% 50%, rgba(160, 195, 235, 0.15) 0%, transparent 62%);
  animation: bzMeshDrift 22s ease-in-out infinite alternate;
  filter: blur(3px);
}
.bz-mega-fx__grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.35) 1px, transparent 1px);
  background-size: 36px 36px;
  animation: bzGridDrift 32s linear infinite;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 42%, #000 12%, transparent 74%);
}
.bz-mega-fx__waves {
  position: absolute;
  inset: 0;
  opacity: 0.05;
}
.bz-mega-fx__waves svg {
  width: 100%;
  height: 100%;
  display: block;
}
.bz-mega-fx__waves path {
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 1200;
  animation: bzWaveDraw 18s ease-in-out infinite;
}
.bz-mega-fx__waves path:nth-child(1) {
  stroke: rgba(37, 99, 235, 0.35);
  animation-delay: 0s;
}
.bz-mega-fx__waves path:nth-child(2) {
  stroke: rgba(59, 130, 246, 0.28);
  animation-delay: -6s;
  animation-duration: 22s;
}
.bz-mega-fx__waves path:nth-child(3) {
  stroke: rgba(96, 165, 250, 0.22);
  animation-delay: -12s;
  animation-duration: 26s;
}
.bz-mega-fx__chart {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120' fill='none'%3E%3Cpath d='M0 80 Q50 60 100 70 T200 50 T300 65 T400 30' stroke='%232563EB' stroke-width='1'/%3E%3Cpath d='M0 95 Q60 75 120 85 T240 60 T360 72 T400 48' stroke='%233B82F6' stroke-width='0.7' opacity='0.5'/%3E%3C/svg%3E") bottom center / 100% 32% no-repeat;
  mask-image: linear-gradient(180deg, transparent 40%, #000 85%);
}
.bz-mega-fx__network {
  position: absolute;
  inset: 0;
  opacity: 1;
  animation: bzNetworkFade 14s ease-in-out infinite;
}
.bz-mega-fx__network svg {
  width: 100%;
  height: 100%;
  display: block;
}
.bz-mega-fx__network path {
  stroke: rgba(37, 99, 235, 0.1) !important;
}
.bz-mega-fx__network circle {
  fill: rgba(59, 130, 246, 0.22) !important;
}
.bz-mega-fx__sheen {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 42% at 6% 0%, rgba(255, 255, 255, 0.55) 0%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.08) 10%, transparent 28%);
  pointer-events: none;
}
.bz-mega-fx__sweep {
  position: absolute;
  inset: -60% -40%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.12) 50%, transparent 58%);
  animation: bzLightSweep 11s ease-in-out infinite;
  pointer-events: none;
}
.bz-mega-fx__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  animation: bzOrbPulse 14s ease-in-out infinite;
}
.bz-mega-fx__blob--1 {
  width: 380px;
  height: 380px;
  top: -140px;
  right: -90px;
  opacity: 0.32;
  background: radial-gradient(circle, rgba(147, 181, 230, 0.45) 0%, rgba(176, 203, 235, 0.18) 42%, transparent 72%);
  animation-delay: 0s;
}
.bz-mega-fx__blob--2 {
  width: 280px;
  height: 280px;
  bottom: -110px;
  left: -60px;
  opacity: 0.38;
  background: radial-gradient(circle, rgba(100, 140, 195, 0.4) 0%, rgba(130, 165, 215, 0.16) 38%, transparent 70%);
  animation-delay: -5s;
  animation-duration: 16s;
}
.bz-mega-fx__accounts-glow {
  position: absolute;
  top: 8%;
  right: 2%;
  width: 42%;
  height: 84%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(130, 165, 215, 0.22) 0%, rgba(176, 203, 235, 0.1) 38%, transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}
.bz-mega-fx__particles {
  position: absolute;
  inset: 0;
}
.bz-mega-fx__particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 8px rgba(147, 181, 230, 0.55);
  animation: bzParticleFloat 10s ease-in-out infinite;
}
.bz-mega-fx__particles span:nth-child(1) { top: 18%; left: 12%; animation-delay: 0s; }
.bz-mega-fx__particles span:nth-child(2) { top: 32%; left: 78%; animation-delay: 1.2s; }
.bz-mega-fx__particles span:nth-child(3) { top: 55%; left: 25%; animation-delay: 2.4s; }
.bz-mega-fx__particles span:nth-child(4) { top: 72%; left: 65%; animation-delay: 0.8s; }
.bz-mega-fx__particles span:nth-child(5) { top: 42%; left: 48%; animation-delay: 3.1s; }
.bz-mega-fx__particles span:nth-child(6) { top: 85%; left: 38%; animation-delay: 1.8s; }
.bz-mega-fx__particles span:nth-child(7) { top: 12%; left: 58%; animation-delay: 4s; }
.bz-mega-fx__particles span:nth-child(8) { top: 68%; left: 88%; animation-delay: 2.7s; }
.bz-mega-fx__particles span:nth-child(9) { top: 24%; left: 35%; animation-delay: 5.2s; width: 2px; height: 2px; }
.bz-mega-fx__particles span:nth-child(10) { top: 62%; left: 52%; animation-delay: 3.8s; width: 2px; height: 2px; }
.bz-mega-panel::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  z-index: 2;
}

.bz-mega-shell {
  display: grid;
  grid-template-columns: 1fr 316px;
  gap: 60px;
  align-items: stretch;
  width: min(912px, calc(100vw - 32px));
}
.bz-mega-shell--compact {
  width: min(640px, calc(100vw - 32px));
}
.bz-mega-shell--market {
  width: 100%;
  min-height: auto;
  grid-template-columns: 1fr;
  position: relative;
  z-index: 1;
}
.bz-mega-shell--market::before {
  display: none;
}
.bz-mega-shell--market .bz-mega-cols {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  border-right: none;
  align-items: stretch;
  gap: 20px;
  padding: 0 4px;
  min-height: auto;
}
.bz-mega-shell--market .bz-mega-cols::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 60%;
  bottom: 4px;
  width: 1px;
  transform: translateX(-8px);
  background: linear-gradient(180deg, transparent 0%, rgba(70, 120, 180, 0.14) 20%, rgba(70, 120, 180, 0.14) 80%, transparent 100%);
  filter: blur(0.5px);
  pointer-events: none;
}
.bz-mega-shell--market .bz-account-list {
  max-width: none;
}
.bz-mega-shell--market .bz-mega-cols::after {
  display: none;
}

/* Trading Tools — compact single-column floating card */
.bz-mega-shell--tools {
  width: auto;
  min-height: auto;
  grid-template-columns: 1fr;
  position: relative;
  z-index: 1;
}
.bz-mega-cols--tools {
  grid-template-columns: 1fr;
  padding: 0;
  display: block;
  width: auto;
}
.bz-mega-shell--tools .bz-mega-col--tools {
  width: auto;
  max-width: none;
  padding: 0;
  height: auto;
  min-height: 0;
}
.bz-mega-shell--tools .bz-mega-col--tools .bz-mega-col__head {
  margin-bottom: 12px;
  padding-bottom: 0;
}
.bz-mega-shell--tools .bz-mega-col--tools .bz-mega-title {
  margin-bottom: 3px;
  font-size: 15px;
}
.bz-mega-shell--tools .bz-mega-col--tools .bz-mega-subtitle {
  font-size: 11px;
  line-height: 1.35;
}
.bz-mega-list--tools-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: none;
  margin: 0;
  padding: 0;
  min-height: 0;
  width: 100%;
  min-width: 0;
}
.bz-mega-list--tools-grid > li {
  min-width: 0;
  display: flex;
  width: 100%;
}
.bz-mega-link--tool {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 64px;
  min-height: 64px;
  padding: 0 14px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 24px rgba(54, 108, 170, 0.08);
  color: #172033 !important;
  text-decoration: none;
  transition: transform 250ms ease, background 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}
.bz-mega-link--tool .bz-mega-link__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.bz-mega-link--tool .bz-mega-link__text {
  flex: 1;
  min-width: 0;
  align-items: center;
}
.bz-mega-link--tool .bz-mega-link__label {
  white-space: normal;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: #172033;
}
.bz-mega-link--tool .bz-mega-link__arrow {
  display: inline-flex;
  flex-shrink: 0;
  opacity: 0.4;
  transform: translateX(0);
  color: #2563EB;
  margin-left: auto;
  transition: opacity 250ms ease, transform 250ms ease;
}
.bz-mega-link--tool:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.16);
  color: #172033 !important;
}
.bz-mega-link--tool:hover .bz-mega-link__icon {
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.12);
}
.bz-mega-link--tool:hover .bz-mega-link__arrow {
  opacity: 1;
  transform: translateX(4px);
}
.bz-mega-link--tool:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.55);
  outline-offset: 2px;
}

.bz-mega-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 8px 8px 8px 16px;
  border-right: none;
  position: relative;
}
.bz-mega-cols::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 0;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(70, 120, 180, 0.14) 18%, rgba(70, 120, 180, 0.14) 82%, transparent 100%);
}
.bz-mega-shell--compact .bz-mega-cols {
  grid-template-columns: 1fr;
  border-right: none;
}
.bz-mega-shell--compact .bz-mega-cols::after {
  display: none;
}

.bz-mega-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 10px 4px 4px;
  position: relative;
  z-index: 1;
  min-height: 0;
  height: 100%;
}
.bz-mega-col--market {
  padding-right: 14px;
}
.bz-mega-col--tools {
  padding-right: 16px;
}
.bz-mega-col--border {
  border-left: none;
  position: relative;
}
.bz-mega-col__head {
  flex-shrink: 0;
  margin-bottom: 14px;
  padding-bottom: 0;
}
.bz-mega-col__head .bz-mega-title {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.bz-mega-col--market .bz-mega-col__head .bz-mega-title::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(180deg, #2563EB, #3B82F6);
  flex-shrink: 0;
}
.bz-mega-col--tools .bz-mega-col__head .bz-mega-title::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(180deg, #af2654, #e0527a);
  flex-shrink: 0;
}
.bz-mega-subtitle {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #5B6B84;
}

.bz-mega-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #172033;
}
.bz-mega-col__head .bz-mega-title {
  margin-bottom: 4px;
}

.bz-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
}
.bz-mega-col--market .bz-mega-list--cards {
  gap: 8px;
}

/* Trading Tools — overrides must follow base .bz-mega-cols / .bz-mega-col / .bz-mega-list */
.bz-mega-shell--tools {
  display: block;
  width: max-content;
  max-width: 100%;
  gap: 0;
}
.bz-mega-shell--tools .bz-mega-cols {
  display: block;
  grid-template-columns: none;
  padding: 0;
  width: max-content;
  max-width: 100%;
}
.bz-mega-shell--tools .bz-mega-cols::after {
  display: none;
}
.bz-mega-shell--tools .bz-mega-col--tools {
  display: block;
  width: max-content;
  max-width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
}
.bz-mega-shell--tools .bz-mega-list--tools-grid {
  flex: none;
  width: 100%;
  min-width: 0;
}

.bz-mega-col__foot {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 16px;
  padding-bottom: 2px;
  border-top: 1px solid rgba(70, 120, 180, 0.14);
  position: relative;
  z-index: 2;
}
.bz-mega-col__foot .bz-mega-explore {
  margin-top: 0;
}

/* Trading Markets — light glass cards */
.bz-mega-link--card {
  align-items: center;
  padding: 11px 13px;
  gap: 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 24px rgba(54, 108, 170, 0.08);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bz-mega-link--card .bz-mega-link__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.bz-mega-link--card .bz-mega-link__label {
  white-space: normal;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: #172033;
}
.bz-mega-link--card .bz-mega-link__desc {
  display: block;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #5B6B84;
  transition: color 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bz-mega-link--card .bz-mega-link__count {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #2563EB;
  transition: color 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bz-mega-link--card .bz-mega-link__icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bz-mega-link--card .bz-mega-link__icon svg {
  width: 18px;
  height: 18px;
}
.bz-mega-link--card .bz-mega-link__arrow {
  opacity: 0;
  transform: translateX(-6px);
  color: #2563EB;
  align-self: center;
  transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bz-mega-link--card:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.16);
  transform: translateY(-4px);
  color: #172033 !important;
}
.bz-mega-link--card:hover .bz-mega-link__desc {
  color: #5B6B84;
}
.bz-mega-link--card:hover .bz-mega-link__count {
  color: #1D4ED8;
}
.bz-mega-link--card:hover .bz-mega-link__icon {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.18);
}
.bz-mega-link--card:hover .bz-mega-link__arrow {
  opacity: 1;
  transform: translateX(4px);
}
.bz-mega-col--market .bz-mega-link--card {
  animation: bzCardIn 380ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.bz-mega-col--market .bz-mega-list--cards li:nth-child(1) .bz-mega-link--card { animation-delay: 40ms; }
.bz-mega-col--market .bz-mega-list--cards li:nth-child(2) .bz-mega-link--card { animation-delay: 80ms; }
.bz-mega-col--market .bz-mega-list--cards li:nth-child(3) .bz-mega-link--card { animation-delay: 120ms; }
.bz-mega-col--market .bz-mega-list--cards li:nth-child(4) .bz-mega-link--card { animation-delay: 160ms; }
.bz-mega-col--market .bz-mega-list--cards li:nth-child(5) .bz-mega-link--card { animation-delay: 200ms; }

.bz-mega-link {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #172033 !important;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(54, 108, 170, 0.06);
  transition: background 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bz-mega-link:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.16);
  transform: translateY(-3px);
  color: #172033 !important;
}
.bz-mega-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.bz-mega-link__icon svg {
  width: 18px;
  height: 18px;
}
.bz-mega-link__icon--stocks { background: rgba(37, 99, 235, 0.10); color: #2563EB; }
.bz-mega-link__icon--indices { background: rgba(236, 72, 153, 0.10); color: #DB2777; }
.bz-mega-link__icon--commodities { background: rgba(245, 158, 11, 0.12); color: #D97706; }
.bz-mega-link__icon--forex { background: rgba(16, 185, 129, 0.10); color: #059669; }
.bz-mega-link__icon--etfs { background: rgba(124, 58, 237, 0.10); color: #7C3AED; }
.bz-mega-link__icon--sentiment { background: rgba(236, 72, 153, 0.10); color: #DB2777; }
.bz-mega-link__icon--analysis { background: rgba(37, 99, 235, 0.10); color: #2563EB; }
.bz-mega-link__icon--ai { background: rgba(99, 102, 241, 0.10); color: #6366F1; }
.bz-mega-link__icon--promotions { background: rgba(249, 115, 22, 0.10); color: #EA580C; }
.bz-mega-link__text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.bz-mega-link__label {
  white-space: nowrap;
}
.bz-mega-link__arrow {
  display: inline-flex;
  opacity: 0;
  transform: translateX(-4px);
  color: #2563EB;
  transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1), transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
}
.bz-mega-link:hover .bz-mega-link__arrow {
  opacity: 1;
  transform: translateX(0);
}
.bz-mega-col__pad {
  flex: 1;
  min-height: 118px;
  pointer-events: none;
}
.bz-mega-list a:not(.bz-mega-link--card) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #172033 !important;
  text-decoration: none;
  transition: color 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.bz-mega-list a:not(.bz-mega-link--card):hover {
  color: #2563EB !important;
}

.bz-mega-new {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #2563EB;
  color: #fff !important;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

/* Shared blue gradient buttons */
.bz-mega-btn,
.bz-mega-explore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  align-self: flex-start;
  flex-shrink: 0;
  margin-top: 0;
  padding: 8px 16px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  background-size: 200% 100%;
  color: #FFFFFF !important;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: none;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
  transition: background-position 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bz-mega-btn::after,
.bz-mega-explore::after,
.bz-account-card__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.28) 50%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.bz-mega-btn:hover::after,
.bz-mega-explore:hover::after,
.bz-account-card__btn:hover::after {
  transform: translateX(120%);
}
.bz-mega-btn:hover,
.bz-mega-explore:hover {
  background-position: 100% 0;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.30);
}
.bz-mega-btn .bz-btn-arrow,
.bz-mega-explore .bz-btn-arrow {
  display: inline-flex;
  position: relative;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bz-mega-btn:hover .bz-btn-arrow,
.bz-mega-explore:hover .bz-btn-arrow {
  transform: translateX(4px);
}
.bz-mega-btn:focus-visible,
.bz-mega-explore:focus-visible,
.bz-account-card__btn:focus-visible,
.bz-mega-link--card:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.55);
  outline-offset: 2px;
}

/* Account Types — premium glass cards */
.bz-mega-accounts {
  padding: 4px 4px 4px 14px;
  border-left: none;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.bz-mega-accounts::before {
  display: none;
}
.bz-mega-accounts .bz-mega-col__head {
  margin-bottom: 14px;
}
.bz-mega-accounts .bz-mega-col__head .bz-mega-title {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}
.bz-mega-accounts .bz-mega-col__head .bz-mega-title::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(180deg, #2563EB, #3B82F6);
  flex-shrink: 0;
}
.bz-account-list--premium {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: none;
  flex: 1 1 auto;
  align-content: start;
}
.bz-account-list--premium .bz-account-card {
  animation: bzCardIn 380ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.bz-account-list--premium .bz-account-card:nth-child(1) { animation-delay: 80ms; }
.bz-account-list--premium .bz-account-card:nth-child(2) { animation-delay: 140ms; }
.bz-account-list--premium .bz-account-card:nth-child(3) { animation-delay: 200ms; }
.bz-account-list--premium .bz-account-card:nth-child(4) { animation-delay: 260ms; }

/* Account Types — light frosted glass cards */
.bz-account-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(46, 95, 155, 0.10);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bz-account-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.16);
}
.bz-account-card--featured {
  padding: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(214, 232, 252, 0.78));
  border: 1px solid rgba(59, 130, 246, 0.45);
  transform: none;
  z-index: 1;
  box-shadow:
    0 14px 32px rgba(37, 99, 235, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);
}
.bz-account-card--featured:hover {
  transform: translateY(-4px);
  background: linear-gradient(145deg, rgba(240, 248, 255, 0.98), rgba(210, 230, 255, 0.85));
  border-color: rgba(37, 99, 235, 0.62);
  box-shadow:
    0 16px 36px rgba(37, 99, 235, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.bz-account-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.bz-account-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(37, 99, 235, 0.10);
  color: #2563EB;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bz-account-card__icon svg {
  width: 16px;
  height: 16px;
}
.bz-account-card--cent .bz-account-card__icon { background: rgba(16, 185, 129, 0.10); color: #059669; }
.bz-account-card--premium .bz-account-card__icon { background: rgba(245, 158, 11, 0.12); color: #D97706; }
.bz-account-card--ecn .bz-account-card__icon { background: rgba(100, 116, 139, 0.10); color: #475569; }
.bz-account-card:hover .bz-account-card__icon {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.15);
}
.bz-account-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: auto;
}
.bz-account-card--featured .bz-account-card__badge {
  animation: bzBadgePulse 2.5s ease-in-out infinite;
}
.bz-account-card--cent .bz-account-card__badge { background: rgba(16, 185, 129, 0.14); color: #059669; box-shadow: none; }
.bz-account-card--standard .bz-account-card__badge,
.bz-account-card--featured .bz-account-card__badge { background: rgba(37, 99, 235, 0.12); color: #2563EB; box-shadow: none; }
.bz-account-card--premium .bz-account-card__badge { background: rgba(245, 158, 11, 0.14); color: #D97706; box-shadow: none; }
.bz-account-card--ecn .bz-account-card__badge { background: rgba(100, 116, 139, 0.12); color: #475569; box-shadow: none; }
.bz-account-card__name {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #172033;
}
.bz-account-card__deposit {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 10px;
  flex: 1;
}
.bz-account-card__deposit-label {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  color: #5B6B84;
}
.bz-account-card__deposit-val {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #172033;
}
.bz-account-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  background-size: 200% 100%;
  color: #FFFFFF !important;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: none;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
  transition: background-position 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bz-account-card__btn--sm {
  padding: 7px 12px;
  font-size: 10px;
}
.bz-account-card__btn:hover {
  background-position: 100% 0;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.30);
}
.bz-account-card__btn .bz-btn-arrow {
  display: inline-flex;
  position: relative;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bz-account-card__btn:hover .bz-btn-arrow {
  transform: translateX(3px);
}
.bz-mega-accounts .bz-mega-explore {
  position: relative;
  z-index: 5;
}

.bz-mega-promo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 350px;
  max-height: 350px;
  background: linear-gradient(145deg, rgba(232, 244, 255, 0.95), rgba(198, 224, 255, 0.78));
  border: 1px solid rgba(130, 173, 221, 0.30);
  box-shadow: 0 10px 28px rgba(46, 95, 155, 0.10);
}
.bz-mega-promo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.bz-mega-promo-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  z-index: 1;
}
.bz-mega-promo-body h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #172033;
}
.bz-mega-promo-body p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #5B6B84;
}
.bz-mega-promo-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #FFFFFF !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bz-mega-promo-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.30);
}

@media (max-width: 1023px) {
  .bz-mega-panel--market {
    width: min(680px, calc(100vw - 24px));
    max-height: none;
  }
  .bz-mega-panel--trading-tools {
    width: max-content;
    max-width: min(420px, calc(100vw - 24px));
    min-width: 0;
    max-height: none;
    padding: 16px 18px;
  }
  .bz-mega-panel--market .bz-mega-shell--market {
    max-height: none;
  }
  .bz-mega-panel--trading-tools .bz-mega-shell--tools {
    max-height: none;
  }
  .bz-mega-list--tools-grid {
    min-width: 0;
    gap: 12px;
  }
  .bz-mega-link--tool {
    height: 64px;
    min-height: 64px;
    padding: 0 12px;
  }
  .bz-mega-shell--market .bz-mega-cols::before {
    display: none;
  }
  .bz-account-list--premium {
    grid-template-columns: 1fr;
  }
  .bz-mega-shell,
  .bz-mega-shell--compact,
  .bz-mega-shell--market {
    width: min(680px, calc(100vw - 24px));
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .bz-mega-shell--market {
    min-height: auto;
  }
  .bz-mega-shell--market .bz-mega-cols {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .bz-mega-accounts {
    border-left: 0;
    border-top: none;
    padding-top: 16px;
  }
  .bz-mega-accounts::before {
    display: none;
  }
  .bz-mega-accounts::after {
    content: "";
    position: absolute;
    top: 0;
    left: 12px;
    right: 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(70, 120, 180, 0.14) 20%, rgba(70, 120, 180, 0.14) 80%, transparent 100%);
  }
  .bz-mega-cols {
    border-right: 0;
    border-bottom: none;
    padding-bottom: 20px;
  }
  .bz-mega-cols::after {
    display: none;
  }
  .bz-mega-cols::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(70, 120, 180, 0.14) 20%, rgba(70, 120, 180, 0.14) 80%, transparent 100%);
  }
  .bz-mega-promo {
    min-height: 280px;
    max-height: 280px;
  }
}
@media (max-width: 640px) {
  .bz-mega-panel {
    border-radius: 24px;
    padding: 14px;
  }
  .bz-mega-cols {
    grid-template-columns: 1fr;
  }
  .bz-account-list {
    max-width: none;
  }
  .bz-mega-col--border {
    border-left: 0;
    border-top: none;
    padding-top: 20px;
  }
  .bz-mega-col--border::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12px;
    right: 12px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(70, 120, 180, 0.14) 20%, rgba(70, 120, 180, 0.14) 80%, transparent 100%);
  }
}

/* Header wordmark — the Baazex logo is wider than the old Rise mark, so give
   it more height to read clearly. */
img[src*="Logo_67d222f721"],
img[src*="logo_94794d51df"],
img[src*="logo_black"],
img[alt="Baazex"]:not([src*="favicon"]) {
  height: 30px !important;
  width: auto !important;
  max-height: none !important;
}

/* Footer trademark lockup logo — was rendering tiny. */
img[src*="Rise_Logo_ccf7bc58f1"] {
  height: 30px !important;
  width: auto !important;
  max-height: none !important;
}

/* Preloader -> Baazex only. Hide everything inside the loader and paint the
   Baazex mark via a pseudo-element on a solid dark background, so nothing from
   the old brand (or the page behind) can ever show. */
#pageLoader {
  background: #141414 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
#pageLoader * { display: none !important; }
#pageLoader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("cdn/Logo_67d222f721.svg?bz=7") center center no-repeat;
  background-size: 190px auto;
}

/* App carousel: expand the device frame to fill the whole white card, and let
   the device shots cover it edge-to-edge (no white gaps). */
div[class*="aspect-[293.04"] {
  aspect-ratio: auto !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  border-radius: 20px !important;
}
img[src*="Mobile1_aa30ae09c7"], img[src*="Mobile2_bc11b403b4"], img[src*="Mobile_Vid_473a3e7410"] {
  object-fit: cover !important;
  object-position: center !important;
  width: 100% !important;
  height: 100% !important;
}

/* Trust badges: real glossy blue icons instead of the wordmark "B". */
img[src*="baazex_ic_deposit"], img[src*="baazex_ic_licensed"], img[src*="baazex_ic_shield"] {
  width: 44px !important;
  height: 44px !important;
  object-fit: contain !important;
}

/* Partnership section: drop the leftover LALIGA crest in the "Baazex Partners" pill. */
img[src*="laliga-crest"] { display: none !important; }

/* "Your trade. Your choice." -> designer blue background, white headline. */
div[class*="h-[796px]"][class*="rounded-[52px]"] {
  background: #0a0f2e url("cdn/yourtrade_bg.png") center center / cover no-repeat !important;
}
div[class*="h-[796px]"][class*="rounded-[52px]"] h2 { color: #ffffff !important; }
div[class*="h-[796px]"][class*="rounded-[52px]"] div.text-shade40.font-medium {
  color: rgba(255, 255, 255, 0.82) !important;
}

@media (max-width: 767px) {
  /* App carousel on MOBILE: show the FULL device shot (whole image) filling the
     card width from the top — not a cropped background. The card shrinks to the
     image so there are no white gaps and no overlap with the next card. */
  div[class*="bg-[#F7F7F7]"][class*="h-[590px]"] {
    height: auto !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  div[class*="bg-[#F7F7F7]"][class*="h-[590px]"] > div[class*="w-[180px]"][class*="h-[372px]"] {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    aspect-ratio: auto !important;
  }
  div[class*="bg-[#F7F7F7]"][class*="h-[590px]"] img[src*="Mobile1_aa30ae09c7"],
  div[class*="bg-[#F7F7F7]"][class*="h-[590px]"] img[src*="Mobile2_bc11b403b4"],
  div[class*="bg-[#F7F7F7]"][class*="h-[590px]"] img[src*="Mobile_Vid_473a3e7410"] {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  /* App-store badges: smaller so they fit inside the Mobile App card. */
  img[src*="Google_Play_085ec2be35"], img[src*="App_Store_43aba87bd3"] {
    width: 100px !important;
    height: auto !important;
  }
}

/* Store badges: the badge images already include their own pill, so drop the
   blue button background/padding showing behind them. */
button.button_base__1XkiH:has(img[src*="Google_Play_085ec2be35"]),
button.button_base__1XkiH:has(img[src*="App_Store_43aba87bd3"]) {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* "One powerful trading app": click tabs, normal scroll (no sticky scene). */
div[data-block-type="shared.all-in-one-place"] [style*="--scroll-height"],
div[data-block-type="shared.all-in-one-place"] [class*="stickyContainer"] {
  height: auto !important;
  min-height: 0 !important;
  position: static !important;
  overflow: visible !important;
}
div[data-block-type="shared.all-in-one-place"] li[class*="stepContent"],
div[data-block-type="shared.all-in-one-place"] li[class*="stepActive"] {
  cursor: pointer;
}
div[data-block-type="shared.all-in-one-place"] li[class*="stepContent"]:focus-visible,
div[data-block-type="shared.all-in-one-place"] li[class*="stepActive"]:focus-visible {
  outline: 2px solid rgba(0, 82, 255, 0.45);
  outline-offset: 3px;
}

/* "Ditch the fees" fees card: click tabs, normal scroll (no sticky scene). */
div[data-block-type="shared.three-zero"] section {
  height: auto !important;
}
div[data-block-type="shared.three-zero"] button[aria-pressed="true"] {
  border-color: #ffffff !important;
  color: #ffffff !important;
}
div[data-block-type="shared.three-zero"] button[aria-pressed="false"] {
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.4) !important;
}
div[data-block-type="shared.three-zero"] button[aria-pressed="false"]:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: rgba(255, 255, 255, 0.7) !important;
}
div[data-block-type="shared.three-zero"] button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  /* "Ditch the fees" card on MOBILE: keep centered, full width. */
  div[data-block-type="shared.three-zero"] div[style*="zero_fees_6a682a9cb4"],
  div[data-block-type="shared.three-zero"] div[class*="z-3"][class*="overflow-hidden"] {
    margin-left: auto !important;
    margin-right: auto !important;
    width: calc(100% - 32px) !important;
    min-height: 360px !important;
  }
  div[data-block-type="shared.three-zero"] .fs-40 {
    font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
  }
}

/* MOBILE hero framing: hero art keeps its focal graphics on the right, so
   shift the crop right on phones. Desktop untouched (mobile breakpoint only).
   Home page exception: centered art, gentle vertical tune only. */
@media (max-width: 767px) {
  img[src*="Rise_Web_Design_Blur_1_2584624aed"],
  img[src*="Rise_Web_Design_Blur_7d5fcb2eed"],
  img[src*="Rectangle_111002765_2e369f2947"],
  img[src*="Rise_Web_Design_Rectangle_1_2a665a00eb"],
  img[src*="Rectangle_from_Rise_Web_Design_61e0ff14ba"] {
    object-position: 80% center !important;
  }
  img[src*="available_markets_desktop_3c3b9f4cfb"] {
    object-position: 72% center !important;
  }
}

/* "Your trade. Your choice." on MOBILE: give the phone artwork breathing room
   so it sits lower under the option cards (consistent on every page). */
@media (max-width: 767px) {
  div[class*="h-[796px]"][class*="rounded-[52px]"] img[src*="b54652e16fd77a5e80fe78a2ac6bec6554f6e495"] {
    margin-top: 32px !important;
  }
}

/* MOBILE scroll stability: the sticky scroll scenes use h-screen/h-dvh, which
   resize every time the browser address bar shows/hides -> visible judder.
   Small viewport units (svh) stay constant. Also clip stray horizontal
   overflow so the page cannot wobble sideways. Desktop untouched. */
@media (max-width: 767px) {
  html, body { overflow-x: clip !important; }
}

/* Stocks hero: the globe artwork sits in the lower half of the image, so bias
   the crop down (desktop + mobile) or the hero looks empty. */
img[src*="Rectangle_111002765_2e369f2947"] { object-position: center 68% !important; }
@media (max-width: 767px) {
  img[src*="Rectangle_111002765_2e369f2947"] { object-position: 72% 65% !important; }
}

/* Company-page heroes: full designer art letterboxed at natural scale. */
img[src*="mt5hero_"], img[src*="herowhyus_"], img[src*="heroaboutus_"], img[src*="herocontactus_"] {
  object-fit: contain !important;
  object-position: center center !important;
  background: #eef3fb;
}
@media (max-width: 767px) {
  img[src*="mt5hero_"], img[src*="herowhyus_"], img[src*="heroaboutus_"], img[src*="herocontactus_"] {
    object-fit: cover !important;
    object-position: center center !important;
  }
}

/* Practice-trading card: match the home "Your trade" card (blue bg, white text). */
div[data-block-type="shared.practice-trading"] div[class*="bg-shade100-04"] {
  background: #0a0f2e url("cdn/yourtrade_bg.png") center center / cover no-repeat !important;
}
div[data-block-type="shared.practice-trading"] [class*="text-shade100"],
div[data-block-type="shared.practice-trading"] [class*="text-shade40"] {
  color: #ffffff !important;
}

/* --- Trading Tools & Features Dropdown & Dark Page Overrides --- */
header nav button#bzNavTradingTools,
header nav a.bzNavA {
  transition: all 0.2s ease;
}
header nav a.bz-active,
header nav button.bz-active {
  color: #af2654 !important;
  font-weight: 700 !important;
}

/* Active Dark Mode Page Base Styles */
body.active-dark-mode,
.bz-dark-page {
  background-color: #0d0e0e !important;
  color: #ffffff !important;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.bz-dark-card {
  background: #13161b;
  border: 1px solid rgba(175, 38, 84, 0.25);
  border-radius: 20px;
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.bz-dark-card:hover {
  transform: translateY(-4px);
  border-color: #af2654;
  box-shadow: 0 12px 30px rgba(175, 38, 84, 0.2);
}

.bz-pink-badge {
  background: rgba(175, 38, 84, 0.15);
  color: #ff3b75;
  border: 1px solid rgba(175, 38, 84, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* Sentiment Table Progress Bars */
.bz-ratio-container {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
}
.bz-ratio-text {
  font-size: 13px;
  font-weight: 600;
  color: #adb5bd;
  min-width: 36px;
}
.bz-progress-bar-wrap {
  flex: 1;
  height: 10px;
  background: #2e323c;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
}
.bz-progress-red {
  background: linear-gradient(90deg, #f93232, #ff6b6b);
  height: 100%;
}
.bz-progress-green {
  background: linear-gradient(90deg, #01bc6f, #00e396);
  height: 100%;
}

/* Dark Table Styles */
.bz-dark-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}
.bz-dark-table th {
  padding: 14px 18px;
  color: #8ea2ff;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}
.bz-dark-table td {
  padding: 16px 18px;
  background: #181c24;
  color: #ffffff;
  font-size: 15px;
  vertical-align: middle;
}
.bz-dark-table tr td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}
.bz-dark-table tr td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}
.bz-dark-table tr:hover td {
  background: #202632;
}

/* Form Controls for Partnerships */
.bz-dark-form input,
.bz-dark-form select,
.bz-dark-form textarea {
  width: 100%;
  background: #181c24;
  border: 1px solid #2e3545;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}
.bz-dark-form input:focus,
.bz-dark-form select:focus,
.bz-dark-form textarea:focus {
  border-color: #af2654;
  box-shadow: 0 0 0 3px rgba(175, 38, 84, 0.25);
}
.bz-dark-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #c7c7d5;
  margin-bottom: 6px;
  margin-top: 14px;
}

/* Footer: Explore all + Learn match App / Web platform link styling */
footer .text-footer-item a[href*="explore-all"],
#footer .text-footer-item a[href*="explore-all"] {
  color: inherit;
  font-weight: 500;
}
footer .bz-footer-learn,
#footer .bz-footer-learn {
  font-weight: 500 !important;
  color: oklch(51.37% 0.0048 91.49) !important;
}
footer .bz-footer-learn:hover,
#footer .bz-footer-learn:hover {
  color: oklch(24.19% 0.0036 345.52) !important;
}

/* Homepage instrument cards — uniform layout + fix % pill width mismatch */
div[data-block-type="shared.instrument-interface"] .Card_card__6Fuju {
  display: flex;
  flex-direction: column;
  height: 248px;
  overflow: hidden;
}
div[data-block-type="shared.instrument-interface"] .Card_header__EGvyV {
  flex-shrink: 0;
}
div[data-block-type="shared.instrument-interface"] .Card_instrumentDescription__bEv_Y {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
div[data-block-type="shared.instrument-interface"] .Card_chartWrapper__YBQkp {
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
}
div[data-block-type="shared.instrument-interface"] .Card_footer__BVTla {
  flex-shrink: 0;
  margin-top: auto;
  align-items: center;
  width: 100%;
}
div[data-block-type="shared.instrument-interface"] .Card_footer__BVTla .tabular-nums {
  width: auto !important;
  min-width: 5ch;
}
div[data-block-type="shared.instrument-interface"] .Card_spacer__lnAwR {
  flex: 1 1 auto;
  min-width: 8px;
}
div[data-block-type="shared.instrument-interface"] .absolute.start-0.top-0.bottom-0.w-20,
div[data-block-type="shared.instrument-interface"] .absolute.end-0.top-0.bottom-0.w-20 {
  width: 48px !important;
}

/* Footer social icons — original brand colors */
footer a.bg-footer-social,
#footer a.bg-footer-social {
  background-color: transparent !important;
  background: transparent !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  padding-left: 0.375rem !important;
  padding-right: 0.375rem !important;
}
footer a.bg-footer-social:hover,
#footer a.bg-footer-social:hover {
  background-color: transparent !important;
  background: transparent !important;
  opacity: 0.85;
}
footer a.bg-footer-social img,
#footer a.bg-footer-social img {
  width: 24px !important;
  height: 24px !important;
  max-width: none !important;
}
footer a[aria-label="LinkedIn"] img[src*="Linkedin"],
#footer a[aria-label="LinkedIn"] img[src*="Linkedin"] {
  content: url("cdn/Icon_Linkedin_brand.svg");
}

/* Homepage — Funding Methods section */
.bz-funding-methods {
  position: relative;
  overflow: hidden;
  margin-top: 7.5rem;
  padding: 64px 0 72px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 62%, rgba(120, 165, 220, 0.22) 0%, rgba(232, 244, 252, 0) 72%),
    linear-gradient(180deg, #eef6fc 0%, #e8f4fc 48%, #f4f9fd 100%);
}
.bz-funding-methods::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(37, 99, 235, 1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 1) 1px, transparent 1px);
  background-size: 48px 48px;
}
.bz-funding-methods::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='%232563eb' stroke-width='1.5' d='M0 220 C240 140 480 300 720 210 S1200 80 1440 180'/%3E%3Cpath fill='none' stroke='%232563eb' stroke-width='1' d='M0 260 C320 180 640 320 960 230 S1280 120 1440 200'/%3E%3C/svg%3E")
      center 68% / 120% 240px no-repeat;
}
@media (min-width: 768px) {
  .bz-funding-methods {
    padding: 100px 0 110px;
  }
}
@media (min-width: 1024px) {
  .bz-funding-methods {
    padding: 110px 0 120px;
  }
}
.bz-funding-methods__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .bz-funding-methods__inner {
    padding: 0 28px;
  }
}
.bz-funding-methods__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .bz-funding-methods__header {
    margin-bottom: 52px;
  }
}
.bz-funding-methods__label {
  margin: 0 0 14px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .bz-funding-methods__label {
    font-size: 14px;
  }
}
.bz-funding-methods__title {
  margin: 0;
  color: #141414;
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
@media (min-width: 768px) {
  .bz-funding-methods__title {
    font-size: 3.25rem;
  }
}
@media (min-width: 1024px) {
  .bz-funding-methods__title {
    font-size: 3.75rem;
  }
}
.bz-funding-methods__desc {
  max-width: 760px;
  margin: 18px 0 0;
  color: #5a6478;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.5;
}
@media (min-width: 768px) {
  .bz-funding-methods__desc {
    margin-top: 22px;
    font-size: 18px;
  }
}
.bz-funding-methods__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .bz-funding-methods__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}
@media (min-width: 1024px) {
  .bz-funding-methods__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
  }
}
.bz-funding-methods__card {
  display: flex;
  min-width: 0;
}
.bz-funding-methods__card-inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100%;
  height: 160px;
  min-height: 160px;
  padding: 28px 20px 20px;
  border: 1px solid rgba(120, 165, 220, 0.25);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    box-shadow 250ms ease,
    border-color 250ms ease;
}
.bz-funding-methods__card-inner:hover,
.bz-funding-methods__card-inner:focus-visible {
  border-color: rgba(120, 165, 220, 0.55);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.16);
  outline: none;
}
.bz-funding-methods__card-inner:focus-visible {
  box-shadow:
    0 18px 40px rgba(37, 99, 235, 0.16),
    0 0 0 3px rgba(37, 99, 235, 0.28);
}
.bz-funding-methods__logo-wrap {
  width: 150px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  flex-shrink: 0;
}
.bz-funding-methods__logo-wrap img,
.bz-funding-methods__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 145px;
  max-height: 54px;
  object-fit: contain;
  transition: transform 220ms ease;
}
.bz-funding-methods__logo-wrap--bank img {
  max-width: 130px;
  max-height: 54px;
}
.bz-funding-methods__logo-wrap--mastercard img {
  max-width: 105px;
  max-height: 58px;
}
.bz-funding-methods__logo-wrap--visa img {
  max-width: 125px;
  max-height: 48px;
}
.bz-funding-methods__logo-wrap--neteller img {
  max-width: 135px;
  max-height: 42px;
}
.bz-funding-methods__logo-wrap--usdt img {
  max-width: 62px;
  max-height: 62px;
}
.bz-funding-methods__logo-wrap--skrill img {
  max-width: 110px;
  max-height: 48px;
}
.bz-funding-methods__card-inner:hover .bz-funding-methods__logo,
.bz-funding-methods__card-inner:focus-visible .bz-funding-methods__logo {
  transform: scale(1.04);
}
.bz-funding-methods__name {
  margin-top: 10px;
  color: #141414;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
}
@media (min-width: 768px) {
  .bz-funding-methods__name {
    font-size: 14px;
  }
}
@media (max-width: 1023px) {
  .bz-funding-methods__logo-wrap {
    width: 130px;
    height: 56px;
  }
  .bz-funding-methods__logo-wrap img,
  .bz-funding-methods__logo {
    max-width: 124px;
    max-height: 46px;
  }
  .bz-funding-methods__logo-wrap--bank img {
    max-width: 115px;
    max-height: 48px;
  }
  .bz-funding-methods__logo-wrap--mastercard img {
    max-width: 92px;
    max-height: 51px;
  }
  .bz-funding-methods__logo-wrap--visa img {
    max-width: 110px;
    max-height: 42px;
  }
  .bz-funding-methods__logo-wrap--neteller img {
    max-width: 119px;
    max-height: 37px;
  }
  .bz-funding-methods__logo-wrap--usdt img {
    max-width: 55px;
    max-height: 55px;
  }
  .bz-funding-methods__logo-wrap--skrill img {
    max-width: 97px;
    max-height: 42px;
  }
}

