/* Mobile index overrides for deposit/withdraw dropdown button */
.top-selectDownArrow {
  overflow: visible !important; /* prevent clipping button corners */
  margin-left: 0.12rem; /* ensure spacing from balance pill */
  position: relative; /* create stacking context for z-index */
  z-index: 5; /* sit above neighboring pills */
  flex: 0 0 auto; /* avoid shrinking and clipping */
}

/* Ensure the main action button shows rounded corners and sits above overlays */
.top-selectDownArrow .ant-btn {
  border-radius: 0.32rem !important;
  border-top-left-radius: 0.32rem !important;
  border-bottom-left-radius: 0.32rem !important;
  position: relative;
  z-index: 20; /* ensure visible above neighboring elements */
  background-clip: padding-box;
}
/* Gradient background for Deposit button */
.top-selectDownArrow .ant-btn.ant-btn-primary {
  background: linear-gradient(135deg, #a855f7 0%, #3b82f6 100%) !important;
  color: #fff !important;
  border: 0 !important;
  overflow: visible;
}
.top-selectDownArrow .ant-btn.ant-btn-primary:hover {
  filter: brightness(1.06);
}
.top-selectDownArrow .ant-btn i {
  color: #fff;
}

/* Neutralize any decorative caps on the container to avoid left notch */
.WgzrFCqvzcfcPCuyMqFw {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  position: relative;
}
.WgzrFCqvzcfcPCuyMqFw::before,
.WgzrFCqvzcfcPCuyMqFw::after,
.top-selectDownArrow::before,
.top-selectDownArrow::after {
  content: none !important;
  display: none !important;
}

/* Dropdown layer stacking */
.top-selectDownArrow .ant-dropdown {
  z-index: 10;
}

/* Avoid accidental horizontal overflow around header area */
#headerWrap, .layout-header__main, .top-selectDownArrow {
  max-width: 100%;
}

/* Ensure language icon has spacing too */
.lang-switch {
  margin-left: 0.12rem;
}

/* Prevent header items from clipping neighbors */
.iG7JZkZ_w8v3JAB11MXx {
  overflow: visible !important;
}
.aKYzCJkXFoBpf1f_57pF {
  overflow: visible !important;
  position: relative;
  z-index: 1; /* ensure below action button */
}
.currencyInfoBox {
  margin-right: 0.12rem !important;
}
