.footer-select-options-group {
  margin: 16px;
  width: 200px;
}

.footer-select-options-body {
  height: 288px;
  overflow: auto;
  margin-top: 16px;
}

.footer-select-options-group .bn-textField {
  width: 200px;
}

.footer-select-options-group-flat {
  color: var(--color-PrimaryText);
}

.footer-select-options {
  cursor: pointer;
}

.footer-select-options+.footer-select-options {
  margin-top: 16px;
}

.footer-select-options.active,
.footer-select-options:hover {
  color: var(--color-TextLink);
}

.footer-select-display {
  cursor: default;
}

.footer-select-options-group-flat .typography-Body3 {
  margin-bottom: 16px;
}

.footer-select-display.active,
.footer-select-display.active .text-body2 {
  color: var(--color-TextLink);
}

.footer-select-options-group-flat .text-body2 {
  color: var(--color-TertiaryText);
}

.footer-select-options-group-flat .bn-textField.data-size-small {
  height: 32px;
  font-size: 14px;
}

.footer-select-options-group-flat .bn-textField-input {
  font-size: 14px;
  width: 100%;
}

/* Two-line language list item: native name (line 1, 14/500/22) + the name
   translated into the current language (line 2, 12/500/18).
   Metrics from Figma "Web Homepage Revamp" node 2548:6294. */
.lng-choice-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}

.lng-choice-option-primary {
  display: flex;
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}

/* The native name owns the row: it never shrinks for the "Last Used" tag, and
   only ellipsizes when it alone is wider than the column. */
.lng-choice-option-native {
  flex: 0 0 auto;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
}

/* Figma text style "caption0,12 Medium" — 12px / 500 / 18px */
.lng-choice-option-translated,
.lng-choice-option-last-used {
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
}

.lng-choice-option-translated {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-TertiaryText);
}

/* Some locales translate "Last Used" into a long phrase (e.g. si-LK). It must
   never widen the language column — it shrinks and ellipsizes inside the row
   instead, so the currency column keeps its share of the grid. */
.lng-choice-option-last-used {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-DisableText);
}

/* A row carrying a second line sits 12px below the previous row; single-line
   rows keep the default 16px (see .footer-select-options + .footer-select-options). */
.footer-select-options + .footer-select-options.lng-choice-option-two-line {
  margin-top: 12px;
}

.lngAndCurrency .typography-Subtitle1 {
    font-weight: 600;
}

.lngAndCurrency-selectgroup-m {
    display: none;
}

/* 图标跟随所在行的文字色（下面的 Preferences 行规则）；SelectGroup 只在 Footer / FooterMobile 用 */
.lngAndCurrency-selectgroup .bn-svg {
    font-size: 24px;
    width: 24px;
    color: inherit !important;
}

/* Footer 改版（COM-26794）：语言 / 币种 / 主题三行默认次要文字色、常规字重，hover 主文字色 */
.lngAndCurrency-selectgroup .footer-community-lang .align-center,
.lngAndCurrency-selectgroup .footer-community-currency .align-center,
.lngAndCurrency-selectgroup-m > .flex > .align-center {
    color: var(--color-SecondaryText);
    font-weight: 400;
    cursor: pointer;
}

.lngAndCurrency-selectgroup .footer-community-lang .align-center:hover,
.lngAndCurrency-selectgroup .footer-community-currency .align-center:hover,
.lngAndCurrency-selectgroup-m > .flex > .align-center:hover {
    color: var(--color-PrimaryText);
}

.lngAndCurrency-selectgroup-m .bn-svg {
    color: inherit;
}

.lngAndCurrency-selectgroup .text-body2 {
    color: var(--color-PrimaryText);
}

.footer-community-currency {
    margin-top: 16px;
}

.footer-theme-switch {
    margin-top: 16px;
    margin-left: 0;
    display: flex;
    align-items: center;
}

/* 主题：原来是「Theme + 开关」，改成与语言 / 币种同款的「图标 + Theme」一行，点击切换 */
.footer-theme-toggle {
    display: flex;
    align-items: center;
    grid-gap: 8px;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    color: var(--color-SecondaryText);
    cursor: pointer;
}

.footer-theme-toggle:hover {
    color: var(--color-PrimaryText);
}

/* 图标组件不认 size 属性，.bn-svg 默认尺寸由上面的规则决定；这里显式定 24 */
.footer-theme-toggle .bn-svg {
    flex-shrink: 0;
    width: 24px !important;
    height: 24px !important;
    font-size: 24px;
    color: inherit !important;
}

@media screen and (max-width: 1023px) {
    .lngAndCurrency-selectgroup{
        display: flex;
        /* 横排时顶对齐：语言 / 币种的 Select 外层 29 高、触发区 24 贴顶，主题按钮 24 高；
           默认 stretch + 主题容器内居中会让它低 2–3px */
        align-items: flex-start;
    }
    .footer-community-currency{
        margin-top: 0;
    }
    .footer-community-lang{
        -webkit-margin-end: 40px;
                margin-inline-end: 40px;
    }
    .footer-theme-switch {
        margin-top: 0;
        margin-left: 40px;
        align-items: flex-start;
    }
}
 
@media screen and (max-width: 767px) {
  .lngAndCurrency-selectgroup {
    display: none;
  }

  .lngAndCurrency-selectgroup-m {
    display: flex;
  }

  .lngAndCurrency-selectgroup-m .bn-svg {
    font-size: 24px;
  }

  .lngAndCurrency-selectgroup-m .text-body2 {
    color: var(--color-PrimaryText);
  }

  .lngAndCurrency-selectgroup-m-language {
    -webkit-margin-end: 40px;
            margin-inline-end: 40px;
  }

  .lngAndCurrency-selectgroup-m-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 64px;
    font-size: 20px;
    color: var(--color-PrimaryText);
  }

  .lngAndCurrency-drawer {
    padding: 0 24px 24px 24px;
  }

  .lngAndCurrency-selectgroup-m-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
  }

  .lngAndCurrency-selectgroup-m-content.onlyone {
    grid-template-columns: 1fr;
  }

  .lngAndCurrency-selectgroup-m-content .footer-select-options-group-flat {
    --scroll-color: var(--color-Line);
    max-height: calc(100vh - 88px);
    overflow: auto;
  }

  .lngAndCurrency-selectgroup-m-content .bn-textField {
    max-width: 100%;
  }

  .lngAndCurrency-selectgroup-m-content .language-select {
    -webkit-padding-end: 24px;
            padding-inline-end: 24px;
  }

  .lngAndCurrency-selectgroup-m-content .currency-select {
    -webkit-padding-end: 14px;
            padding-inline-end: 14px;
  }

  .lngAndCurrency-selectgroup-m-content .footer-select-options-group-flat+.footer-select-options-group-flat {
    -webkit-padding-start: 24px;
            padding-inline-start: 24px;
  }

  .footer-currency-item {
    display: flex;
    align-items: center;
  }

  .footer-theme-switch {
    margin-left: 40px;
    display: inline-block;
  }
}
/* ⚠️ 必须用 min() 夹一下：CSS 里 min-width 永远盖过 width，
   全屏抽屉（视口 <= 767，见 ui/common/DrawerRight）面板宽度就等于视口，
   窄于 375px 的机型（360 的安卓机、320 的 SE1）内容会被撑出面板、右侧被切掉。
   视口 > 767 的 size="auto" 那一支面板由内容撑开，仍然需要 375 这个下限。 */
.dropdownAndDraw-drawer {
  min-width: min(375px, 100vw);
}

.data-size-full .dropdownAndDraw-drawer {
  width: 100vw;
}

.dropdown-overflow .bn-drawer-wrap {
  overflow-y: auto;
  overflow-x: hidden;
}

.dropdownAndDraw-m-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 64px;
  font-size: 20px;
  -webkit-padding-end: 24px;
          padding-inline-end: 24px;
  color: var(--color-PrimaryText);
}

.lngAndCurrency-drawer {
  padding: 0 24px 24px 24px;
}

.dropdownAndDraw-m-bar_close.bn-svg {
  font-size: 24px;
}

.bn-tooltips-wrap.active .bn-tooltips-ele .search-icon {
  color: var(--color-PrimaryYellow);
}

.dropdownAndDraw-drawer_removerediu.bn-drawer>.bn-drawer-wrap.data-dir-right {
  border-radius: 0;
}
.custom-controlled-dropdown .bn-bubble-content {
    border-radius: var(--radii-2l);
    background-color: var(--color-CardBg);
    box-shadow: var(--shadow-shadow2);
    overflow: hidden;
    transform: translateX(-1px);
}

.fiatPayment-search {
    width: 100%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-gap: var(--space-m);
    gap: var(--space-m);
}
.fiatPayment-search-cancel {
    display: none;
}

.fiatPayment-search .fiatPayment-svg.bn-svg {
    width: 20px;
    height: 20px;
}

@media screen and (max-width: 768px) {
    .fiatPayment-search {
        padding: 6px 15px;
    }
    .fiatPayment-search input {
        border: none;
        background: var(--color-Input) !important;
    }
    .fiatPayment-search-cancel {
        display: block;
    }
    .fiatPayment-search .fiatPayment-svg.bn-svg {
        width: 16px;
        height: 16px;
    }
}

.fiatPaymentItem {
    width: 100%;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fiatPaymentItem:hover {
    background-color: var(--color-Input);
}
.fiatPaymentRender .fiatPaymentRender-svg.bn-svg {
    width: 16px;
    height: 16px;
    margin-left: 8px;
}
.fiatPaymentRender-svg.rotate-180 {
    transform: rotate(180deg);
}
.fiatPaymentRender-img {
    width: 16px;
    height: 16px;
    border-radius: 100%;
    margin-right: 8px;
}

.fiatPaymentItem-img {
    width: 20px;
    height: 20px;
    border-radius: 100%;
    margin-right: 8px;
}

.fiatPaymentItem .fiatPaymentItem-checked-svg.bn-svg {
    width: 16px;
    height: 16px;
}

@media screen and (max-width: 768px) {
    .fiatPaymentItem {
        padding: 10px var(--space-m);
    }
    .fiatPaymentItem-img {
        margin-right: 12px;
    }
}

.fiatPayment-scroll {
    overflow-y: auto;
    height: 310px;
}
.fiatPayment-label {
    padding: 6px 10px;
}

@media screen and (max-width: 767px) {
    .fiatPayment-list {
        margin-top: 10px;
    }
    .fiatPayment-label {
        padding: 16px var(--space-m) 8px;
    }
    .fiatPayment-scroll {
        overflow-y: auto;
        height: 70vh;
    }
}

.deposit-side-drawer-guide-text:hover {
    color: var(--color-TertiaryText)
}

.beginner-deposit-tutorial-content {
    display: flex;
    flex-direction: column;
    grid-gap: 8px;
    gap: 8px;
    border: 1px solid var(--color-Line);
    border-radius: 16px;
    padding: 16px;
    margin-top: 16px;
}

.beginner-deposit-tutorial-content:hover {
    border-color: var(--color-InputLine);
}

@media screen and (max-width: 767px) {
    .beginner-deposit-tutorial-content {
        grid-gap: 12px;
        gap: 12px;
        border-radius: 12px;
    }
}

.beginner-deposit-tutorial {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    flex: 1 1;
    justify-content: flex-end;
}

@media screen and (max-width: 767px) {
    .beginner-deposit-tutorial.start {
        justify-content: flex-start;
    }
}
/* 面板内嵌（DepositPanelContent）的头部：← 标题 + 法币选择 */
.deposit-drawer-header.deposit-drawer-header_back {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 12px;
}

/* 法币选择器根节点带 width-100（抽屉头里要撑满），面板头里改成按内容宽，才能被推到最右 */
.deposit-drawer-header_back > .width-100 {
  flex: 0 0 auto;
  width: auto !important;
}

.deposit-drawer-back {
  -webkit-margin-end: auto;
          margin-inline-end: auto;
  display: flex;
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
  cursor: pointer;
  color: var(--color-PrimaryText);
}

.deposit-drawer-back-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.deposit-drawer-back-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.deposit-drawer-video-modal {
    z-index: 10000 !important;
}

.deposit-drawer-drawer.bn-drawer>.bn-drawer-wrap.data-dir-right {
    border-radius: 0;
}

.deposit-drawer-wrap {
    position: absolute;
    height: 100%;
    overflow: hidden;
    width: 100%;
    color: var(--color-PrimaryText);
}

.deposit-drawer-content {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 100%;
}

.deposit-drawer-content.videotype {
    transform: translate3d(-50%, 0px, 0px);
}

.deposit-drawer-fundItem-wrap {
    position: relative;
    border-radius: 16px;
    border: 1px solid var(--color-Line);
    transition: border-color 150ms ease;
    padding: 16px;
    cursor: pointer;
}

.deposit-drawer-fundItem-wrap:hover {
    border-color: var(--color-InputLine);
}

@media screen and (max-width: 767px) {
    .deposit-drawer-fundItem-wrap {
        border-radius: 12px;
    }
}

.deposit-drawer-fundItem-wrap-padding-more {
    padding-top: 24px;
    padding-bottom: 24px;
}

.deposit-drawer-fundItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-gap: 16px;
    gap: 16px;
}

.deposit-drawer-fundItem-activity-left {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(240, 185, 11, 0.10);
    border-radius: 16px 0 8px 0;
    padding: 2px 8px;
    grid-gap: 2px;
    gap: 2px;
    color: var(--color-TextLink)
}

.deposit-drawer-fundItem-activity-right {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(240, 185, 11, 0.10);
    border-radius: 0 16px 0 8px;
    padding: 2px 8px;
    grid-gap: 2px;
    gap: 2px;
    color: var(--color-TextLink)
}

.header-rightside .deposit-drawer-fundItem-activity-svg.bn-svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.deposit-drawer-scrollable {
    overflow-y: auto;
    /*flex: 1;*/
}

.deposit-drawer-fundItem_body {
    flex: 1 1;
}

.deposit-drawer-fundItem_recommonLabel {
    border-radius: 3px;
    background-color: var(--color-BadgeBg);
    padding: 0px 4px;
}

.deposit-drawer-icon {
    width: 20px;
    height: 20px;
    position: absolute;
    right: 0;
    top: var(--space-xl);
    color: var(--color-IconNormal);
    cursor: pointer;
}

.deposit-drawer-icon:hover {
    color: var(--color-PrimaryText);
}

@media screen and (max-width: 767px) {
    .deposit-drawer-icon {
        top: var(--space-m);
        color: var(--color-PrimaryText);
    }
}

.deposit-drawer-wrap .fiatPayment-svg.bn-svg {
    width: 16px;
    height: 16px;
}

.deposit-drawer-contentitem {
    padding: 0 24px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
}

.deposit-drawer-framewrap {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    overflow: hidden;
}

.deposit-drawer-framewrap>iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    border: 0;
}

.deposit-drawer-framewrap_button {
    min-width: 180px;
    margin: 0 32px;
}

.deposit-drawer-playvideo {
    cursor: pointer;
}

.deposit-drawer-playvideo:hover {
    color: var(--color-PrimaryText);
}

.deposit-drawer-funditem_icon {
    width: 40px;
}

.deposit-drawer-otherway {
    display: flex;
    padding: 10px;
    -webkit-margin-end: 16px;
            margin-inline-end: 16px;
    align-items: center;
    cursor: pointer;
    border-radius: 4px;
}

.deposit-drawer-otherway:hover {
    background-color: var(--color-bg3);
}

.deposit-drawer-fqalink:hover {
    cursor: pointer;
    color: var(--color-BtnBg);
}

/* .deposit-drawer-drawer{
  width: 484px;
} */
.deposit-drawer-drawer.bn-drawer>.bn-drawer-wrap.data-dir-right {
    width: 424px;
    max-width: 424px;
}

.deposit-actionsheet.bn-drawer>.bn-drawer-wrap.data-dir-bottom {
    display: flex;
}

.deposit-drawer-header {
    position: relative;
}

.deposit-drawer-header .bn-actionSheet-content {
    padding: 0;
}

.deposit-drawer-header .bn-mask {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.deposit-drawer-primary-link {
    cursor: pointer;
    color: var(--color-TextLink);
    text-decoration: underline;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}

.deposit-drawer-primary-link:hover {
    color: var(--color-BtnBg);
}

.deposit-drawer-primary-link.small {
    font-size: 12px;
    line-height: 18px;
}

.icon-pointer-wrapper:hover .icon-t-primary-pointer,
.icon-t-primary-pointer:hover {
    color: var(--color-PrimaryText);
}

.deposit-drawer-close-svg {
    width: 20px !important;
    height: 20px !important;
    color: var(--color-IconNormal);
    cursor: pointer;
}

.deposit-drawer-close-svg:hover {
    color: var(--color-PrimaryText);
}

@media screen and (max-width: 767px) {
    .deposit-drawer-fundItem {
        border-radius: 12px;
        grid-gap: 12px;
        gap: 12px;
    }

    .deposit-drawer-contentitem {
        padding: 0 var(--space-m) var(--space-xl);
    }

    .deposit-drawer-framewrap>iframe {
        border-radius: 4px;
    }

    .deposit-drawer-framewrap_button {
        width: 100%;
    }

    .deposit-drawer-funditem_icon {
        width: 40px;
        height: 40px;
    }

    .deposit-drawer-drawer.bn-drawer>.bn-drawer-wrap.data-dir-right {
        width: 100%;
        max-width: 100%;
    }

    .deposit-drawer-primary-link {
        text-decoration: none;
        font-weight: 500;
        text-decoration: unset;
    }

    .deposit-drawer-primary-link.small {
        font-weight: 500;
    }

    .deposit-drawer-close-svg {
        color: var(--color-PrimaryText);
    }
}

.ml-2xs {
    margin-left: var(--space-2xs);
}

.text-center {
    text-align: center;
}

.rounded-xl {
    border-radius: var(--radii-xl);
}

.rounded-m {
    border-radius: var(--radii-m);
}

.rounded-l {
    border-radius: var(--radii-l);
}

.border {
    border-width: 1px;
}

.border-solid {
    border-style: solid;
}

.border-Line {
    border-color: var(--color-Line);
}

.hover-border-PrimaryYellow:hover {
    border-color: var(--color-PrimaryYellow);
}

.border-PrimaryYellow {
    border-color: var(--color-PrimaryYellow);
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.py-xl {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.p-xl {
    padding: var(--space-xl);
}

.pt-l {
    padding-top: var(--space-l);
}

.h-m {
    height: var(--space-m);
}

.w-m {
    width: var(--space-m);
}

.px-s {
    padding-left: var(--space-s);
    padding-right: var(--space-s);
}

.py-4xs {
    padding-top: var(--space-4xs);
    padding-bottom: var(--space-4xs);
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.cursor-pointer {
    cursor: pointer;
}

.text-t-Tertiary {
    color: var(--color-TertiaryText);
}

.text-t-Primary {
    color: var(--color-PrimaryText);
}

.text-IconNormal {
    color: var(--color-IconNormal);
}

.flex-1 {
    flex: 1 1;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.noH5\:hidden {
    display: none;
}

.text-TextLink {
    color: var(--color-TextLink);
}

@media screen and (max-width: 768px) {
    .mobile\:Subtitle1 {
        font-size: 16px;
        font-weight: 500;
        line-height: 24px;
    }

    .mobile\:text-t-Secondary {
        color: var(--color-SecondaryText);
    }

    .mobile\:py-m {
        padding-top: var(--space-m);
        padding-bottom: var(--space-m);
    }

    .mobile\:pt-m {
        padding-top: var(--space-m);
    }
}
.twitter-connect-panel {
  display: flex;
  flex-direction: column;
  grid-gap: 8px;
  gap: 8px;
  color: var(--color-SecondaryText);
  align-items: flex-start;
  max-height: calc(100vh - 300px);
  overflow: auto;
  margin-bottom: 24px;
}

.twitter-connect-panel_list {
  grid-gap: 8px;
  gap: 8px;
  width: 100%;
  list-style: inside;
}

.twitter-connect-panel_list li {
  list-style: inside;
}

.twitter-connect-panel_tip {
  font-size: 14px;
  color: var(--color-PrimaryText);
}

.twitter-bind-img {
  width: 160px;
}

.twitter-unbind-img {
  width: 96px;
  margin-bottom: 16px;
}

.twitter-unbind-text {
  text-align: center;
}

.twitter-unbind-title,
.twitter-unbind-user-link {
  margin-bottom: 8px;
}

.twitter-unbind-desc {
  margin-bottom: 24px;
}

.bn-modal.twitter-bind-model .bn-modal-wrap {
  width: 384px;
  max-width: 100%;
  padding: var(--space-m);
}

.bn-modal.twitter-bind-model.disconnect-twitter-panel .bn-modal-wrap {
  padding: var(--space-xl);
}

.bn-modal.twitter-bind-model.connect-twitter-panel .bn-modal-wrap {
  width: 520px;
  padding: 0 24px 24px 24px;
}

.connect-twitter-panel .bn-drawer-wrap {
  padding-top: 0 !important;
}

.bn-modal.twitter-bind-model .bn-modal-content {
  padding: 8px 0 0 0;
  max-height: none;
}

.twitter-bind-model .bn-drawer-wrap,
.twitter-bind-result .bn-drawer-wrap {
  padding: var(--space-m);
}

.twitter-bind-result.twitter-unbound-success-dialog .bn-modal-confirm-title {
  margin-bottom: 0;
}

.twitter-bind-success .bn-modal-confirm-icon {
  height: 96px;
  margin-bottom: 16px !important;
}

.bn-modal.twitter-bind-result .bn-modal-content {
  padding: 0;
}

.twitter-model-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
}

.twitter-model-header .twitter-modal-close {
  width: 24px;
  height: 24px;
}

.twitter-model-header.notitle {
  position: absolute;
  right: 24px;
}

.nobg-root {
  background: transparent !important;
}
.nobg-root .bn-modal-content {
  max-height: none;
}

.twitter-connect-panel_network-reminder {
  z-index: 1299;
}

.twitter-connect-panel_network-reminder .bn-modal-confirm-icon {
  width: 80px !important;
  height: 80px !important;
}

/* mobile */
@media screen and (max-width: 768px) {
  .twitter-model-header {
    height: 50px;
    margin-bottom: 8px;
  }

  .twitter-bind-img {
    width: 96px;
  }

  .twitter-bind-success .bn-modal-confirm-icon {
    margin-bottom: 24px !important;
  }

  .twitter-model-header .twitter-modal-close {
    width: 20px;
    height: 20px;
  }

  .twitter-bind-success .bn-modal-confirm {
    padding: 0;
  }
}

/* desktop */
@media screen and (min-width: 768px) {
  .twitter-bind-model .bn-button {
    height: 48px;
  }
}

.explore-history-item {
  list-style: none;
  display: inline-block;
  background-color: var(--color-Input);
  border-radius: 6px;
  padding: 0 10px;
  margin-right: 10px;
  margin-bottom: 8px;
  line-height: 28px !important;
  max-width: calc(50% - 10px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  height: 28px;
  vertical-align: middle;
  text-align: center;
}

.explore-history-item__link,
.explore-history-item__text {
  color: var(--color-PrimaryText);
  text-decoration: none;
  border-radius: 4px;
  text-align: center;
}

/* Block */
.explore-history-list {
  margin-bottom: 16px;
  padding: 0 16px;
}

/* Element: Title Bar */
.explore-history-list__title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

/* Element: Title */
.explore-history-list__title {
  font-size: 14px;
  color: var(--color-PrimaryText);
}

/* Element: Delete Icon */
.explore-history-list__delete-icon {
  width: 20px !important;
  height: 20px !important;
  cursor: pointer;
  color: var(--color-IconNormal);
}

/* Element: Items */

/* Element: Items
.explore-history-list__items {
  display: flex;
  flex-wrap: wrap;
  padding: 8px;
} */
.explore-section-swiper-dots {
  grid-gap: 8px;
  gap: 8px;
}

.explore-section-swiper-dots--arrow {
  color: var(--color-DisableText);
  width: 20px;
  height: 20px;
  background-color: transparent;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
}

.explore-section-swiper-dots--arrow:hover {
  color: var(--color-PrimaryText);
  background-color: var(--color-Line);
}

.explore-section-swiper-dots--arrow:hover .explore-section-swiper-dots--arrow__disallow {
  cursor: not-allowed;
  color: var(--color-DisableText);
}
.explore-section-swiper-progress-pager--dot {
  width: 8px;
  height: 3px;
  background-color: var(--color-Line);
  margin-right: 4px;
  cursor: pointer;
}

.explore-section-swiper-progress-pager--dot__active {
  background-color: var(--color-PrimaryText);
}
.section-swiper {
  flex-direction: column;
}

.section-swiper .section-swiper-title-container {
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 8px;
}

.section-swiper-title-container--title {
  font-size: 14px;
  color: var(--color-PrimaryText);
}

.hot-compaign-countdown--item {
  grid-gap: 4px;
  gap: 4px;
  margin-right: 20px;
  align-items: center;
}
.hot-compaign-countdown--unit {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-PrimaryText);
}

.explore-hot-camp {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--color-Line);
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  cursor: pointer;
}

.explore-hot-camp-item-info {
  flex-direction: column;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--color-PrimaryText);
}

.explore-hot-camp-item-info--base {
  margin-bottom: 8px;
}

.explore-hot-camp-item-info--title {
  margin-right: 16px;
}

.explore-hot-camp-item-info--asset {
  margin-left: 8px;
  margin-right: 8px;
}

.explore-hot-camp-item-state {
  padding: 0 6px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 18px;
  align-items: center;
}

.explore-hot-camp-item-state--buy {
  color: var(--color-TextBuy);
  background-color: var(--color-DepthBuyBg);
}
.explore-hot-campaign {
  padding: 0 16px;
}

.explore-hot-trading--item {
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  justify-content: space-between;
  height: 48px;
  padding: 0 16px;
}

.explore-hot-trading--item:hover {
  background-color: var(--color-Input);
}

.explore-hot-trading--item-left-container {
  align-items: center;
}

.explore-hot-trading--item-index {
  color: var(--color-DisabledText);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  margin-right: 8px;
}

.explore-hot-trading--trading-pair {
  align-items: center;
}

.explore-hot-trading--item-base-asset {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  margin-right: 2px;
}

.explore-hot-trading--item-quote-asset {
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  color: var(--color-SecondaryText);
}

.explore-hot-trading--item-asset-icon {
  width: 24px;
  height: 24px;
  margin-left: 4px;
  margin-right: 8px;
  border-radius: 50%;
}

.explore-hot-trading--item-price {
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: var(--color-PrimaryText);
}

.explore-hot-trading--item-difference {
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.explore-hot-trading--item-right-container {
  flex-direction: column;
  align-items: flex-end;
}

.explore-hot-trading {
  margin-bottom: 24px;
}

.explore-hot-trading-cols {
  display: flex;
  flex-direction: column;
  grid-gap: 8px;
  gap: 8px;
}

/* EarnItem.css */

/* Block */
.explore-earn-list-item {
  border: 1px solid var(--color-Line);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

/* Element: Content Wrapper */
.explore-earn-list-item__content {
  display: flex;
  flex-direction: column;
}

/* Element: Asset Wrapper */
.explore-earn-list-item__asset {
  margin-bottom: 8px;
  flex-direction: column;
}

.explore-earn-list-item__asset-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  border-radius: 50%;
  object-fit: cover;
}

/* Element: Asset Name */
.explore-earn-list-item__asset-name {
  color: var(--color-PrimaryText);
}

/* Element: APR Wrapper */
.explore-earn-list-item__apr {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: start;
}

/* Element: APR Label */
.explore-earn-list-item__apr-label {
  margin-right: 4px;
  color: var(--color-TertiaryText);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

/* Element: APR Value */
.explore-earn-list-item__apr-value {
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}
.explore-earn-list {
  padding: 0 16px;
}

.explore-earn-list-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 8px;
  gap: 8px;
}

.explore-deposite-recomd {
  padding: 16px 16px 0px 16px;
  grid-gap: 8px;
  gap: 8px;
  margin-bottom: 24px;
}

.explore-deposite-recomd__item {
  max-width: 50%;
  display: flex;
  border-radius: 12px;
  border: 1px solid var(--color-Line);
  padding: 16px 14px;
  justify-content: start;
  align-items: start;
  height: auto;
  flex: 1 1;
  cursor: pointer;
  box-sizing: border-box;
}

.explore-deposite-recomd__item--single {
  max-width: 100%;
  height: auto;
}

.explore-deposite-recomd__item--single .explore-deposite-recomd__content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

.explore-deposite-recomd__item--single .explore-deposite-recomd__icon {
  margin-bottom: 0;
  margin-right: 10px;
}

.explore-deposite-recomd__icon {
  margin-bottom: 8px;
  width: 20px;
  height: 20px;
}

.explore-deposite-recomd__title {
  color: var(--color-PrimaryText);
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
}
.common-widget-image-with-chain-icon-wrap {
  position: relative;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--color-Line);
}

.common-widget-image-with-chain-icon-wrap > .icon-img {
  width: 24px;
  height: 24px;
}

.common-widget-image-with-chain-icon-wrap .icon-txt {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--color-Input);
  color: var(--color-TertiaryText);
  text-align: center;
  font-size: 12px;
  line-height: 24px;
  font-weight: 500;
}
.common-widget-image-with-chain-icon-wrap .chain-icon-wrap {
  position: absolute;
  bottom: -1px;
  right: -1px;
  display: flex;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background-color: var(--color-BasicBg);
  padding: 1px;
}

.common-widget-image-with-chain-icon-wrap .chain-icon {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.explore-suggest-result-panel {
  flex-direction: column;
  padding: 0px 15px;
  align-items: flex-start;
  align-self: stretch;
  height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  --scroll-size: 8px !important;
  overscroll-behavior: contain;
}

.explore-suggest-result-panel__item {
  cursor: pointer;
  display: flex;
  align-items: center;
  margin: 8px;
  padding: 9px 0;
  border-radius: 4px;
}

.explore-suggest-result-panel__icon {
  margin-right: 8px;
}

.explore-suggest-result-panel__custom-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.explore-suggest-result-panel__text {
  font-size: 16px;
  color: var(--color-PrimaryText);
  margin-right: 4px;
}

.explore-suggest-result-panel__text_sub {
  color: var(--color-SecondaryText);
  font-size: 12px;
}

.explore-content {
  width: 368px;
}

.data-size-full .explore-content {
  width: 100%;
}

.initdata {
  padding: 16px 0;
  color: var(--color-PrimaryText);
  box-sizing: border-box;
}

.initdata-content {
  max-height: 566px;
  --scroll-size: 0 !important;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

@media screen and (max-width: 768px) {
  .initdata-content {
    height: unset;
    max-height: unset;
  }
}

.initdata-text {
  padding: 4px 8px;
  color: var(--color-PrimaryText);
  background: var(--color-bg3);
  border-radius: 2px;
  cursor: pointer;
  -webkit-margin-end: 8px;
          margin-inline-end: 8px;
  margin-bottom: 24px;
  font-weight: 500;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.initdata-text + .initdata-text {
  -webkit-margin-start: 8px;
          margin-inline-start: 8px;
}

.initdata-text:hover {
  background: var(--color-Line);
}

.initdata-link {
  padding: 12px 16px;
  background: var(--color-invBg);
  cursor: pointer;
  border-radius: 4px;
}

.initdata-link p {
  max-width: calc(100% - 48px);
}

.text-overflow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mul-icon {
  width: 16px;
  height: 16px;
  font-size: 16px;
  color: var(--color-TextLink);
}
.initdata-delete-icon {
  font-size: 16px;
  color: var(--color-IconNormal);
  cursor: pointer;
}

.initdata-delete-icon:hover {
  color: var(--color-PrimaryText);
}

.flex-center-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-img {
  width: 20px;
  height: 20px;
  -webkit-margin-end: 8px;
          margin-inline-end: 8px;
}

.hot-function-group {
  display: flex;
  flex-wrap: wrap;
  grid-gap: 16px;
  gap: 16px;
}

.hot-function-item {
  width: calc(50% - 8px);
}

.hot-function-item .initdata-link {
  display: flex;
  padding: 12px 16px;
  border: 1px solid var(--color-bg3);
  border-radius: 10px;
  color: var(--color-PrimaryText);
  align-items: center;
}

.hot-function-item .initdata-link:hover {
  border: 1px solid var(--color-BtnBg);
}

.nodata-wrap {
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.explore-component .nodata-wrap .bn-svg {
  font-size: 96px;
  width: 96px;
  height: 96px;
  cursor: unset;
}

.common-item {
  display: flex;
  align-items: center;
  color: var(--color-PrimaryText);
  padding: 12px 16px;
  cursor: pointer;
}

.common-item.align-top {
  align-items: flex-start;
}

.explore-common-item {
  display: flex;
  align-items: center;
  color: var(--color-PrimaryText);
  padding: 12px 16px;
  cursor: pointer;
}

.explore-common-item-icon-wrap {
  display: flex;
  align-items: center;
  justify-items: center;
  border-radius: 10px;
  padding: 8px;
  background-color: var(--color-Line);
  margin-right: 8px;
}

.explore-earn-item,
.explore-options-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-PrimaryText);
  padding: 12px 16px;
  cursor: pointer;
}

.explore-futures-item,
.explore-alpha-item,
.explore-web3-wallet-item,
.explore-tradfi-item,
.explore-spot-item {
  display: flex;
  justify-content: space-between;
  color: var(--color-PrimaryText);
  padding: 12px 16px;
  cursor: pointer;
}

.common-item:hover,
.explore-earn-item:hover,
.explore-alpha-item:hover,
.explore-web3-wallet-item:hover,
.explore-common-item:hover,
.explore-futures-item:hover,
.explore-options-item:hover,
.explore-tradfi-item:hover,
.explore-spot-item:hover {
  background: var(--color-SecondaryBg);
}

.explore-spot-item-img {
  height: 24px;
  width: 24px;
  -webkit-margin-end: 8px;
          margin-inline-end: 8px;
}

.explore-tradfi-item-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  -webkit-margin-end: 8px;
          margin-inline-end: 8px;
  border: 1px solid var(--color-Line);
  border-radius: 50%;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-Input);
}

.explore-tradfi-item-icon__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.explore-tradfi-item-icon__fallback {
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-TertiaryText);
  text-transform: uppercase;
}

.explore-tradfi-item-info {
  flex: 1 1;
  min-width: 0;
  -webkit-margin-start: 0;
          margin-inline-start: 0;
  overflow: hidden;
}

.explore-tradfi-item-main {
  flex: 1 1;
  min-width: 0;
}

.explore-tradfi-item-info .bn-tooltips-wrap {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.explore-tradfi-item-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Keep the price / change% column from being squeezed by a long TradFi name,
 * and guarantee a gap so the name's ellipsis never touches the price (COM-24392). */
.explore-tradfi-item .text-right {
  flex-shrink: 0;
  -webkit-margin-start: 16px;
          margin-inline-start: 16px;
}

.explore-tradfi-item-name-tooltip {
  max-width: 240px;
  word-break: break-word;
}

.common-item-img {
  width: 20px;
  height: 20px;
  max-width: unset;
}

.common-item-img_feed {
  width: 36px;
  height: 36px;
  -webkit-margin-end: 14px;
          margin-inline-end: 14px;
  border-radius: 12px;
}

.explore-common-item .typography-Subtitle2 {
  flex: 1 1;
}

.font-weight-400 {
  font-weight: 400;
}

.font-weight-500 {
  font-weight: 500;
}

.theme-root .search-result-tabs {
  width: 368px;
  padding: 8px 16px 0px 16px;
  font-weight: 500;
  overflow: auto;
  --scroll-pad: 0 !important;
  --scroll-size: 0 !important;
  border-bottom: 1px solid var(--color-Line);
}

.search-result-tabs .bn-tab-list {
  --scroll-pad: 0 !important;
  --scroll-size: 0 !important;
}

.search-result-tab {
  padding: 0 8px;
  -webkit-margin-end: 16px;
          margin-inline-end: 16px;
  color: var(--color-TertiaryText);
  font-size: 14px;
}

.search-result-tab.active {
  color: var(--color-PrimaryText);
  font-weight: 500;
}

.search-result-content {
  width: 368px;
  max-width: 100%;
  max-height: 483px;
  overflow: auto;
  padding-bottom: 12px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.explore-dropdown.bn-tooltips-wrap {
  width: 100%;
}

.explore-dropdown .bn-textField {
  width: 100%;
}

.search-result-content-allitem {
  display: flex;
  align-items: center;
  padding: 0 16px;
  margin-top: 16px;
  margin-bottom: 4px;
  justify-content: space-between;
}

.search-result-content-allitem-icon {
  cursor: pointer;
  color: var(--color-IconNormal);
}

.search-result-content-allitem-icon:hover {
  color: var(--color-PrimaryText);
}

.have-subcategory {
  padding: 0 16px;
  margin-bottom: 4px;
  margin-top: 24px;
}

.search-group {
  display: flex;
  align-items: center;
  padding: 16px 16px 8px 16px;
  justify-content: space-between;
  width: 368px;
  color: var(--color-PrimaryText);
}

.search-group .bn-textField-input {
  font-size: 14px;
}

.search-group .bn-textField-suffix .bn-svg {
  width: 16px;
  height: 16px;
  font-size: 16px;
}

.search-group .hover-pointer {
  -webkit-margin-start: 8px;
          margin-inline-start: 8px;
  white-space: nowrap;
}

.search-group_textfield.bn-textField .bn-textField-input {
  font-size: 14px;
  font-weight: 400;
}

.search-group_suffix_icon_wrap {
  box-sizing: border-box;
  display: flex;
  padding: 6px;
  border-radius: 50%;
  background-color: var(--color-BtnBg);
  align-items: center;
  justify-content: center;
}

.search-group_suffix_icon_wrap .search-icon {
  color: var(--color-TextOnYellow) !important;
}

.explore-dropdown .bn-bubble {
  width: 100%;
}

.explore-dropdown .bn-bubble-content {
  width: 100%;
}

.explore-dropdown .search-result-content {
  width: 100%;
}

.bn-drawer-wrap .search-group,
.bn-drawer-wrap .search-result-content {
  width: 100%;
}

.bn-drawer-wrap .search-group .bn-textField {
  flex: 1 1;
}

.search-group .bn-textField {
  height: 40px;
}

.search-group .typography-Subtitle2 {
  -webkit-margin-start: 8px;
          margin-inline-start: 8px;
}

.bn-drawer-wrap .search-result-content {
  max-height: calc(100vh - 117px);
}

.explore-content .bn-tab__default {
  background-color: transparent;
  border-bottom: 2px solid transparent;
  border-top: 2px solid transparent;
}

.explore-content .search-result-tabs .bn-tab {
  font-size: 14px;
  font-weight: 500;
}

.common-item-img {
  border-radius: 50%;
}

.explore-alpha-item .explore-alpha-item-gap,
.explore-web3-wallet-item .explore-web3-wallet-item-gap {
  -webkit-margin-start: 8px;
          margin-inline-start: 8px;
}

.expolre-times-tag{
  padding: 0 4px;
  border-radius: 2px;
}
.explore-alpha-item .explore-alpha-item-split-line,
.explore-web3-wallet-item .explore-web3-wallet-item-split-line {
  display: inline-block;
  height: 16px;
  translate: 0 3px;
  border-left: 1px solid var(--color-line);
}

.explore-alpha-item .explore-alpha-item-subtitle,
.explore-web3-wallet-item .explore-web3-wallet-item-subtitle {
  font-weight: 400;
  font-size: 12px;
  color: var(--color-DisabledText);
}

.combine-trade-dropdown .bn-bubble-content {
    border-radius: 12px;
}

/* The bubble portals to <body> at --zindex-tooltip (1400); hosts such as the
   Token Conversion modal sit above drawers (9999), so lift it over both (COM-27575).
   The wrapper itself carries `_CWC` and has no `._CWC` ancestor, so the selector must
   be a compound starting with the namespace — the build keeps it as-is (COM-27925). */
._CWC.bn-tooltips-trans.combine-trade-dropdown-wrap {
    z-index: calc(var(--zindex-drawer) + 2);
}

.combine-trade-container {
    width: 360px;
    padding: 10px;
}

.bn-drawer .combine-trade-container {
    width: 100%;
    padding: 15px;
}

.combine-trade-close {
    position: absolute;
    top: 28px;
    right: 15px;
    font-size: 20px;
    display: none;
}

.bn-drawer .combine-trade-close {
    display: block;
}

.combine-trade-title {
    padding: 8px 0;
}

.combine-trade-wallet-item {
    display: grid;
    grid-template-columns: 20px auto;
    grid-gap: 10px;
    gap: 10px;
    height: 54px;
}

.bn-drawer .combine-trade-wallet-item {
    border: 1px solid var(--color-Line);
    border-radius: 12px;
    margin-top: 12px;
    height: 84px;
    padding: 20px 15px;
}


.combine-trade-tip {
    prefix: '*';
    border-top: 1px solid var(--color-Line);
    padding: 8px 0;
    white-space: break-spaces;
}

.bn-drawer .combine-trade-tip {
    border-top: 0;
    margin-top: 12px;
}

.combine-trade-tip::before {
    content: '*';
    -webkit-margin-end: 4px;
            margin-inline-end: 4px;
}
.transfer-wallet_content {
    display: flex;
    justify-content: space-between;
    padding: 16px 12px;
    border-radius: 10px;
    margin-bottom: 32px;
    width: 100%;
    border: 1px solid var(--color-InputLine);
    /* background-color: var(--color-Line); */
    cursor: pointer;
}

.transfer-warp .data-size-full .transfer-wallet_content {
    border-radius: 12px;
}

@media screen and (max-width: 768px) {

    .transfer-wallet_content {
        border: none;
        background-color: var(--color-Input);
    }
}

.transfer-wallet_content__select {
    width: 100%;
}

.transfer-wallet_content__select .bn-select-field.data-size-tiny .bn-select-field-arrow {
    font-size: 20px;
}

.transfer-wallet_convert-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    -webkit-margin-start: 12px;
            margin-inline-start: 12px;
    margin-top: 22px;
}

.transfer-wallet_convert-icon.isolate {
    margin-top: 54px;
}

.transfer-wallet_content__select_label {
    display: inline-block;
    color: var(--color-TertiaryText);
    width: 40px;
    -webkit-margin-end: 8px;
            margin-inline-end: 8px;
}

.transfer-warp .data-size-full .transfer-wallet_content__select_label {
    color: var(--color-SecondaryText);
}

.transfer-wallet_content__selectSpaceBetweenGroup {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


@media only screen and (min-width: 768px) {
    .transfer-wallet_isolated__select .bn-select-overlay-options {
        max-height: 300px;
    }

}

.transfer-wallet_content__selectSpaceBetweenGroup.icon-padding {
    width: calc(100% - 24px);
    height: 24px;
    line-height: 24px;
}

.transfer-wallet_content__selectInactiveBrand {
    height: 24px;
    line-height: 24px !important;
    border-radius: 4px;
    padding: 0 6px;
    color: var(--color-PrimaryText);
    background-color: var(--color-Input);
}

.bn-drawer-wrap .transfer-wallet_content__selectInactiveBrand {
    height: 20px;
    line-height: 20px !important;
}

.transfer-wallet_choice__optionDropdown .bn-select-overlay {
    padding: 16px 0 0;
}

.transfer-wallet_choice__optionDropdown .bn-select-overlay-search {
    padding: 0 16px 10px;
}

.transfer-wallet_choice__optionDropdown .bn-select-option {
    padding: 8px 16px;
}

.transfer-wallet_choice__optionDropdown .bn-select-option.icon svg {
    font-size: 20px;
}

@media only screen and (min-width: 768px) {
    .transfer-wallet_choice__optionDropdown .bn-select-overlay-options {
        max-height: 290px;
    }
}
.bn-drawer .bn-modal-content.transfer-content {
    padding-top: 16px;
}

.bn-modal-content.transfer-content {
    padding-top: 8px;
    padding-bottom: 0px;
}

@media screen and (max-width: 768px) {

    .bn-drawer .transfer-header.bn-modal-header {
        padding: 9px 16px;
    }
}

.transfer-header .bn-modal-header-next,
.transfer-header .bn-modal-header-prev {
    color: var(--color-PrimaryText);
}

/* next 容器里并排放着「历史记录」和「关闭」两个 icon，hover 高亮必须落到被
   悬停的那一个 svg 上；若把 :hover 挂在容器 .bn-modal-header-next 上，
   hover 任意一处都会同时点亮两个 icon（COM-24951）。prev 是移动端单个返回键，
   容器即 icon，保持整体 hover。 */
.transfer-header .bn-modal-header-next svg:hover,
.transfer-header .bn-modal-header-prev:hover {
    color: var(--color-SecondaryText);
}

.transfer-content.bn-modal-content {
    max-height: 584px;
}

/* DS 规范：桌面弹窗整体最高 640px（PM 账户下 footer 免责声明很长，弹窗会被撑得过高）。
   弹窗改为纵向 flex，header/footer 保持原高，超出部分由内容区滚动
   （.bn-modal-content 自带 overflow-y: auto）。
   COM-27315：小屏下弹窗高度自适应，上下各保留 24px 安全间距（设计稿「小屏幕」），
   否则视口矮于 640px 时 footer 里的阻断性提示和 Confirm 会被裁到屏幕外。
   移动端走 Drawer（.bn-drawer-wrap），选择器不匹配，不受影响。 */
.transfer-warp.bn-modal > .bn-modal-wrap {
    display: flex;
    flex-direction: column;
    max-height: min(640px, calc(100vh - 48px));
}

.transfer-warp.bn-modal > .bn-modal-wrap > .bn-modal-header,
.transfer-warp.bn-modal > .bn-modal-wrap > .bn-modal-footer {
    flex: none;
}

.transfer-warp.bn-modal > .bn-modal-wrap > .transfer-content.bn-modal-content {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
}

.transfer-warp .data-size-full .transfer-content.bn-modal-content {
    max-height: calc(100vh - 104px);
}
.transfer-content .bn-tooltips-wrap{
    width: 100%;
}
/* COM-27315 — 设计稿非阻断式提示的前缀为 12px「•」，与正文间距 4px */
.transfer-warning-tips::before {
    content: "•";
    font-size: 12px;
    -webkit-margin-end: 4px;
            margin-inline-end: 4px;
}

.transfer-warp .data-size-full .transfer-warning-tips {
    margin-bottom: 20px;
}

.transfer-warning-tips {
    display: flex;
    align-self: end;
    margin-bottom: 24px;
}

.bn-modal-confirm {
    padding: var(--space-xl) 0 0;
}

.transfer-warp .data-size-full .bn-modal-footer {
    padding: 0 15px 24px;
    grid-gap: 0;
    gap: 0;
}

/* 设计稿 Dialoglfooter 恒为 96px = 24 + 48(按钮) + 24。
   说明文案移进可滚动的 Content 后，这 24px 上边距同时充当滚动区与按钮之间的留白，
   否则内容滚到一半时文字会紧贴按钮顶边。 */
.transfer-warp .bn-modal-footer {
    padding: 24px 24px;
}

/* COM-27315 — 阻断性提示固定在 Footer：设计稿桌面 padding 24 / 间距 16，移动端 padding 12 15 / 间距 12。
   无提示时不挂 modifier，footer 与原先完全一致。 */
.transfer-warp .bn-modal-footer.transfer-footer--with-tips {
    grid-gap: 16px;
    gap: 16px;
}

.transfer-warp .data-size-full .bn-modal-footer.transfer-footer--with-tips {
    padding-top: 12px;
    grid-gap: 12px;
    gap: 12px;
}

.transfer-footer-tips {
    display: flex;
    flex-direction: column;
    grid-gap: 16px;
    gap: 16px;
}

.transfer-warp .data-size-full .transfer-footer-tips {
    grid-gap: 12px;
    gap: 12px;
}

.transfer-footer-tip {
    display: flex;
    align-items: flex-start;
    grid-gap: 4px;
    gap: 4px;
}

/* 行高跟随正文（t-body5 桌面 22px / 移动 18px），「•」才能对齐首行 */
.transfer-footer-tip .transfer-footer-tip-dot {
    flex: none;
    font-size: 12px;
    line-height: 18px;
}

@media only screen and (min-width: 768px) {
    .transfer-footer-tip .transfer-footer-tip-dot {
        line-height: 22px;
    }
}

.transfer-footer-tip-text {
    flex: 1 1;
    min-width: 0;
    word-break: break-word;
}
.transfer-coin_choice {
    display: flex;
    align-items: center;
}

.transfer-coin_choice__option {
    display: flex;
    justify-content: space-between;
}

.transfer-coin_choice__option_head {
    display: flex;
}

.transfer-coin_single-formItem {
    height: 106px;
}

.transfer-coin_isolated__group.two {
    height: 134px;
}

.transfer-coin_isolated__group.one {
    height: 114px;
}

.transfer-coin_isolated__item {
    display: flex;
    flex: 1 1;
    height: 74px;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid var(--color-InputLine);
    max-width: calc(50% - 8px);
}

.transfer-overflow-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 90px;
}

.transfer-warp .data-size-full .transfer-overflow-text {
    width: calc(50vw - 180px);
}

.transfer-warp .data-size-full .transfer-coin_isolated__item {
    border-radius: 12px;
    height: 66px;
}

.transfer-coin_isolated__item.single {
    height: 48px;
}

.transfer-coin_isolated__item+.transfer-coin_isolated__item {
    -webkit-margin-start: 16px;
            margin-inline-start: 16px;
}

.transfer-coin_isolated__item:hover,
.transfer-coin_isolated__item.active {
    border: 1.5px solid var(--color-PrimaryText);
}

.transfer-coin_choice__icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.transfer-coin_choice__optionDropdown {
    background-color: transparent !important;
}

.transfer-coin_choice__optionDropdown .bn-select-overlay-search {
    padding: 0 16px 16px;
}

.transfer-coin_choice__optionDropdown .bn-select-overlay {
    padding: 16px 0 0;
}

.transfer-coin_choice__optionDropdown .bn-select-option {
    padding: 12px 16px;
}

@media only screen and (min-width: 768px) {
    .transfer-coin_choice__optionDropdown .bn-select-overlay-options {
        max-height: 290px;
    }
}
.transfer-amount-input {
  width: 100% !important;
}

.transfer-fundcollection-wrap {
  flex-shrink: 0;
}

.transfer-fundcollection {
  white-space: nowrap;
}

.transfer-fundcollection:hover {
  color: var(--color-BtnBg);
}

.transfer-amount-input-formitem {
  min-height: 212px;
}

.transfer-um-residual-tip {
  margin-top: 4px;
}

.transfer-available-label {
  cursor: default;
}

.transfer-available-label--dashed {
  border-bottom: 1px dashed currentColor;
}

.bn-tooltips-wrap.transfer-available-tooltips-wrap {
  flex: none;
  width: auto;
}

/* 设计稿气泡为 320×130（uikit .bn-bubble-content 默认 max-width 320px），
   此处不再收窄到 240px，否则文案多折一行、气泡比设计稿高 */
.transfer-um-tip-content {
  word-break: break-word;
}

.transfer-um-tip-content__link {
  text-decoration: none;
}

.transfer-um-tip-content__link:hover {
  text-decoration: underline;
}

.transfer-fund_info-icon {
  font-size: 16px;
  margin-left: 4px;
}

.transfer-allocate-tips {
  border-radius: 8px;
  opacity: 0.95;
}

.transfer-tips_success {
  color: var(--color-Success);
}

.transfer-tips_error {
  color: var(--color-Error);
}

.bn-modal-confirm-actions {
  margin-top: 0px;
}

/* COM-23998 — Stock 冻结提示条 & 冻结详情浮层样式 */

/* 提示条（inline，位于 Amount 输入框下方）。整段为流式文本，自然折行。
   UI 校对：无灰色背景，作为纯文本挂在输入框下方。 */
.transfer-stock-freeze-tip {
  margin-top: 8px;
  cursor: pointer;
}

/* 文案 + 金额 + 法币 + View Details 全部 inline 连排，统一字号、随宽度折行 */
.transfer-stock-freeze-tip__text {
  word-break: break-word;
}

/* View Details：body4 / medium（区别于提示正文的 body5 / regular） */
.transfer-stock-freeze-tip__link {
  font-weight: 500;
  text-decoration: none;
}

.transfer-stock-freeze-tip__link:hover {
  text-decoration: underline;
}

/* 冻结详情浮层（已移除底部按钮，底部留白由 Content 承担）。
   间距调整以 .transfer-freeze-modal（本弹窗根节点独有类）为前缀，只作用于本弹窗，
   绝不影响主 Transfer / ClawAccountTransfer 等共用 header 的其它弹窗。

   Header 高度保持 uikit 组件库默认（不覆盖 header padding，标题栏 ~50px）。
   uikit .bn-modal-content 默认上内边距 24px 偏大，这里在本弹窗内收紧 Header→总量区间距。 */
.transfer-freeze-modal .bn-modal-content.transfer-freeze-content {
  padding-top: 8px;
  padding-bottom: 24px;
}

/* H5（drawer）：className 与 .bn-drawer 落在同一节点，故两类连写（无空格）。
   Header→总量区 12px */
.transfer-freeze-modal.bn-drawer .bn-modal-content.transfer-freeze-content {
  padding-top: 12px;
}

/* 顶部总量区（整块居中，对齐 Figma） */
.transfer-freeze-summary {
  text-align: center;
}

.transfer-freeze-total-label {
  font-size: 14px;
  line-height: 20px;
}

.transfer-freeze-total {
  margin-top: 4px;
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
}

.transfer-freeze-total-fiat {
  margin-top: 4px;
  font-size: 14px;
  line-height: 20px;
}

.transfer-freeze-total-desc {
  margin-top: 8px;
  font-size: 12px;
  line-height: 18px;
}

.transfer-freeze-list {
  display: flex;
  flex-direction: column;
  grid-gap: 12px;
  gap: 12px;
  margin-top: 16px;
}

.transfer-freeze-item {
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border: 1px solid var(--color-Line, rgba(0, 0, 0, 0.06));
  border-radius: 12px;
}

.transfer-freeze-item__amount-row {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.transfer-freeze-item__amount {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.transfer-freeze-item__fiat {
  margin-left: 6px;
  font-size: 12px;
  line-height: 18px;
}

/* 冻结项标题：body4 / 14px / regular（UI 校对，非 medium） */
.transfer-freeze-item__title {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.transfer-freeze-item__desc {
  margin-top: 4px;
  font-size: 12px;
  line-height: 18px;
}

.transfer-freeze-item__link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}

.transfer-freeze-item__link:hover {
  text-decoration: underline;
}

.transfer-earn-agreement_tips {
    display: flex;
    border-radius: 12px;
    padding: 12px;
    background-color: var(--color-Input);
    grid-gap: 4px;
    gap: 4px;
}

/* COM-27315 — 设计稿移动端提示块圆角 10px（桌面 12px） */
.transfer-warp .data-size-full .transfer-earn-agreement_tips {
    border-radius: 10px;
}

.transfer-earn-agreement_tips-icon {
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: var(--color-PrimaryText);
    flex: 0 0 20px;
}
.transfer-coin_choice {
    display: flex;
    align-items: center;
}

.transfer-coin_choice__option {
    display: flex;
    justify-content: space-between;
}

.transfer-coin_choice__option_head {
    display: flex;
}

.transfer-coin_single-formItem {
    height: 106px;
}

.transfer-coin_isolated__group.two {
    height: 134px;
}

.transfer-coin_isolated__group.one {
    height: 114px;
}

.transfer-coin_isolated__item {
    display: flex;
    flex: 1 1;
    height: 74px;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid var(--color-InputLine);
    max-width: calc(50% - 8px);
}

.transfer-overflow-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 90px;
}

.transfer-warp .data-size-full .transfer-overflow-text {
    width: calc(50vw - 180px);
}

.transfer-warp .data-size-full .transfer-coin_isolated__item {
    border-radius: 12px;
    height: 66px;
}

.transfer-coin_isolated__item.single {
    height: 48px;
}

.transfer-coin_isolated__item+.transfer-coin_isolated__item {
    -webkit-margin-start: 16px;
            margin-inline-start: 16px;
}

.transfer-coin_isolated__item:hover,
.transfer-coin_isolated__item.active {
    border: 1.5px solid var(--color-PrimaryText);
}

.transfer-coin_choice__icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.transfer-coin_choice__optionDropdown {
    background-color: transparent !important;
}

.transfer-coin_choice__optionDropdown .bn-select-overlay-search {
    padding: 0 16px 16px;
}

.transfer-coin_choice__optionDropdown .bn-select-overlay {
    padding: 16px 0 0;
}

.transfer-coin_choice__optionDropdown .bn-select-option {
    padding: 12px 16px;
}

@media only screen and (min-width: 768px) {
    .transfer-coin_choice__optionDropdown .bn-select-overlay-options {
        max-height: 290px;
    }
}
.transfer-amount-input {
  width: 100% !important;
}

.transfer-fundcollection:hover {
  color: var(--color-BtnBg);
}

.transfer-amount-input-formitem {
  height: 212px;
}

.transfer-fund_info-icon {
  font-size: 16px;
  margin-left: 4px;
}

.transfer-allocate-tips {
  border-radius: 8px;
  opacity: 0.95;
}

.transfer-tips_success {
  color: var(--color-Success);
}

.transfer-tips_error {
  color: var(--color-Error);
}

.bn-modal-confirm-actions {
  margin-top: 0px;
}

.common-widget-css_wrap .mt-16 {
  margin-top: 16px;
}

.common-widget-css_wrap .mt-14 {
  margin-top: 14px;
}

.common-widget-css_wrap .mr-8 {
  -webkit-margin-end: 8px;
          margin-inline-end: 8px;
}

.common-widget-css_wrap .mr-4 {
  -webkit-margin-end: 4px;
          margin-inline-end: 4px;
}

.common-widget-css_wrap .mt-40 {
  margin-top: 40px;
}

.common-widget-css_wrap .mt-48 {
  margin-top: 48px;
}

/* css gap */
.common-widget-css_wrap .gap-4 {
  grid-gap: 16px;
  gap: 16px;
}

.common-widget-css_wrap .gap-6 {
  grid-gap: 24px;
  gap: 24px;
}

.common-widget-css_wrap .block {
  display: block;
}

.common-widget-css_wrap .width-100 {
  width: 100%;
}

.common-widget-css_wrap .maxw-300 {
  max-width: 300px;
}

.common-widget-css_wrap .flex-col {
  flex-direction: column;
}

.common-widget-css_wrap .text-body2 {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  font-weight: 400;
  color: var(--color-SecondaryText);
}

.common-widget-css_wrap .color-error {
  color: var(--color-Error);
}

.common-widget-css_wrap .color-secondary_t {
  color: var(--color-SecondaryText);
}

.common-widget-css_wrap .color-inputline {
  color: var(--color-InputLine);
}

.common-widget-css_wrap .color-t_third {
  color: var(--color-TertiaryText);
}

.common-widget-css_wrap .color-t_primary {
  color: var(--color-PrimaryText);
}

.common-widget-css_wrap .color-t_buy {
  color: var(--color-TextBuy);
}

.common-widget-css_wrap .color-t_yellow {
  color: var(--color-TextLink);
}

.common-widget-css_wrap .color-t_primaryYellow {
  color: var(--color-PrimaryYellow);
}

.common-widget-css_wrap .color-badgeBg {
  color: var(--color-BadgeBg);
}

.common-widget-css_wrap .color-t_sell {
  color: var(--color-TextSell);
}

.common-widget-css_wrap .color-t_secondary {
  color: var(--color-SecondaryText);
}

.common-widget-css_wrap .color-t_TertiaryText {
  color: var(--color-TertiaryText);
}

.common-widget-css_wrap .color-t_disabled {
  color: var(--color-DisableText);
}

.common-widget-css_wrap .color-IconNormal {
  color: var(--color-IconNormal);
}

.common-widget-css_wrap .color-textLink {
  color: var(--color-TextLink);
}

.common-widget-css_wrap .mt-4 {
  margin-top: 4px;
}

.common-widget-css_wrap .mb-4 {
  margin-bottom: 4px;
}

.common-widget-css_wrap .mt-12 {
  margin-top: 12px;
}

.common-widget-css_wrap .mt-16 {
  margin-top: 16px;
}

.common-widget-css_wrap .ml-8 {
  -webkit-margin-start: 8px;
          margin-inline-start: 8px;
}

.common-widget-css_wrap .mb-24 {
  margin-bottom: 24px;
}

.common-widget-css_wrap .mb-16 {
  margin-bottom: 16px;
}

.common-widget-css_wrap .mb-32 {
  margin-bottom: 32px;
}

.common-widget-css_wrap .mt-8 {
  margin-top: 8px;
}

.common-widget-css_wrap .mt-80 {
  margin-top: 80px;
}

.common-widget-css_wrap .flex {
  display: flex;
}

.common-widget-css_wrap .flex-1 {
  flex: 1 1;
}

.common-widget-css_wrap .direction-ltr {
  direction: ltr;
}

.common-widget-css_wrap .ml-4 {
  -webkit-margin-start: 4px;
          margin-inline-start: 4px;
}

.common-widget-css_wrap .ml-16 {
  -webkit-margin-start: 16px;
          margin-inline-start: 16px;
}

.common-widget-css_wrap .mt-24 {
  margin-top: 24px;
}

.common-widget-css_wrap .mb-12 {
  margin-bottom: 12px;
}

.common-widget-css_wrap .mb-16 {
  margin-bottom: 16px;
}

.common-widget-css_wrap .text-right {
  text-align: right;
}

.common-widget-css_wrap .flex-wrap {
  display: flex;
  flex-wrap: wrap;
}

.common-widget-css_wrap .align-center {
  display: flex;
  align-items: center;
}

.common-widget-css_wrap .flex-align {
  display: flex;
  align-items: center;
}

.common-widget-css_wrap .flex-space-between-center {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.common-widget-css_wrap .flex-center {
  display: flex;
  justify-content: center;
}

.common-widget-css_wrap .flex-center-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.common-widget-css_wrap .bn-mask .bn-mask {
  background-color: rgba(0, 0, 0, 0);
}

.common-widget-css_wrap .data-dir-right {
  width: 375px;
}

.common-widget-css_wrap ul {
  list-style: none;
  -webkit-padding-start: 0;
          padding-inline-start: 0;
  -webkit-margin-before: 0;
          margin-block-start: 0;
  -webkit-margin-after: 0;
          margin-block-end: 0;
}

.common-widget-css_wrap .flex-column {
  display: flex;
  flex-direction: column;
}

.common-widget-css_wrap .flex-column_justcenter {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.common-widget-css_wrap .flex-column_center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.common-widget-css_wrap .gap-8 {
  grid-gap: 8px;
  gap: 8px;
}

.common-widget-css_wrap .dialog-split-line {
  background-color: var(--color-Line);
  height: 1px;
  width: 100%;
}

.common-widget-css_wrap .flex-wrap {
  flex-wrap: wrap;
}

.common-widget-css_wrap .inline-flex {
  display: inline-flex;
}

.common-widget-css_wrap .cursor-pointer {
  cursor: pointer;
}

.common-widget-css_wrap .dropdownAndDraw-dropdown .bn-bubble.shadow .bn-bubble-content {
  border-radius: 0px 0px 8px 8px;
  background: var(--color-CardBg);
  box-shadow: 0px 8px 8px 0px rgba(24, 26, 32, 0.08);
  margin-top: 0px !important;
}

.common-widget-css_wrap .twitter-icon-color {
  color: #1d9bf0;
}

.common-widget-css_wrap .underline {
  text-decoration: underline;
}

.common-widget-css_wrap .clear-decoration {
  text-decoration: none;
}

.common-widget-css_wrap .bn-trans.data-show.display-none {
  visibility: hidden;
}

.common-widget-css_wrap a,
.common-widget-css_wrap a:active,
.common-widget-css_wrap a:visited {
  text-decoration: none;
}

.top-corner-traight>.bn-bubble-content{
  border-radius: 0px 0px var(--radii-m) var(--radii-m)!important;
}

.theme-root.bn-mask {
    background-color: rgba(0, 0, 0, 0.3) !important;
}
.theme-root.light {
  --color-BasicBg: #FFFFFF;
  --color-SecondaryBg: #FAFAFA;
  --color-Input: #F5F5F5;
  --color-InputLine: #DDDDDD;
  --color-CardBg: #FFFFFF;
  --color-Vessel: #FAFAFA;
  --color-Line: #EDEDED;
  --color-DisableBtn: #DDDDDD;
  --color-DisableText: #BFBFBF;
  --color-TertiaryText: #9C9C9C;
  --color-SecondaryText: #757575;
  --color-PrimaryText: #000000;
  --color-RedGreenBgText: #FFFFFF;
  --color-EmphasizeText: #FF693D;
  --color-TextOnGray: #EDEDED;
  --color-TextOnYellow: #000000;
  --color-IconNormal: #9C9C9C;
  --color-LiteBg1: #FFFFFF;
  --color-LiteBg2: #FAFAFA;
  --color-TwoColorIcon: #4F4F4F;
  --color-TradeBg: #F5F5F5;
  --color-BadgeBg: rgba(240,185,11,0.1);
  --color-BtnBg: #FCD535;
  --color-PrimaryYellow: #F0B90B;
  --color-TextLink: #D89F00;
  --color-TextToast: #F0B90B;
  --color-DepthSellBg: #FEF1F2;
  --color-SellHover: #F6465D;
  --color-Sell: #F6465D;
  --color-TextSell: #F6465D;
  --color-DepthBuyBg: #E6FFF1;
  --color-BuyHover: #2EBD85;
  --color-Buy: #2EBD85;
  --color-TextBuy: #2EBD85;
  --color-ErrorBg: rgba(246, 70, 93, 0.1);
  --color-Error: #F6465D;
  --color-SuccessBg: #E6FFF1;
  --color-Success: #2EBD85;
  --color-TagBg: #EDEDED;
  --color-Grid: #EDEDED;
  --color-Placeholder: #BFBFBF;
  --color-ToastBg: #4F4F4F;
  --color-Popup: #FFFFFF;
  --color-SecondaryBtn: #E6E6E6;
  --color-Mask: rgba(0, 0, 0, 0.6);
  --color-WidgetSecondaryBg: rgba(0, 0, 0, 0.04);
  --color-WidgetSurface: rgba(0, 0, 0, 0.04);
  --color-WidgetSurface2: #FFFFFF;
  --color-ContainerBg: #FAFAFA;
  --color-YellowAlpha01: rgba(252, 213, 53, 0.1);
  --color-YellowAlpha02: rgba(252, 213, 53, 0.2);
  --color-RedAlpha01: rgba(246, 70, 93, 0.1);
  --color-RedAlpha02: rgba(246, 70, 93, 0.2);
  --color-GreenAlpha01: rgba(46, 189, 133, 0.1);
  --color-GreenAlpha02: rgba(46, 189, 133, 0.2);
  --color-ChatBg: #F3F3F3;
  --color-LineAlpha: rgba(0, 0, 0, 0.08);
  --color-WidgetPrimaryBg: #FFFFFF;
  --color-ChatBubble: #FFFFFF;
  --color-ChatBubble2: #E1E1E1;
  --color-ChatInput: rgba(255, 255, 255, 0.95);
  --color-ChatName: #D89F00;
  --color-ChatSysMsg: #EDEDED;
  --color-ChatCard: #F5F5F5;
  --color-ChatCard2: #FFFFFF;
  --color-ChatRed: #F3E2E4;
  --color-ParagraphText: #282828;
  --color-CheckboxFillDefault: #262626;
  --color-CheckboxBorder: rgba(0, 0, 0, 0.2);
  --color-CardSurface: #FAFAFA;
  --color-BasicBg2: #F5F5F5;
  --color-TabBg: #F5F5F5;
  --color-MacroInsightTagFill: rgba(0, 0, 0, 0.04);
  --color-CardFill: rgba(0, 0, 0, 0.04);
  --color-CardInnerShadow: rgba(0, 0, 0, 0.04);
}
.theme-root.midnight {
  --color-BasicBg: #000000;
  --color-SecondaryBg: #1F1F1F;
  --color-Input: #222222;
  --color-InputLine: #4F4F4F;
  --color-CardBg: #1A1A1A;
  --color-Vessel: #333333;
  --color-Line: #3D3D3D;
  --color-DisableBtn: #333333;
  --color-DisableText: #5B5B5B;
  --color-TertiaryText: #7D7D7D;
  --color-SecondaryText: #9C9C9C;
  --color-PrimaryText: #FFFFFF;
  --color-RedGreenBgText: #FFFFFF;
  --color-TextOnGray: #EDEDED;
  --color-TextOnYellow: #000000;
  --color-IconNormal: #7D7D7D;
  --color-LiteBg1: #282828;
  --color-LiteBg2: #1F1F1F;
  --color-TwoColorIcon: #4F4F4F;
  --color-TradeBg: #111111;
  --color-BadgeBg: rgba(240, 185, 11, 0.1);
  --color-BtnBg: #FCD535;
  --color-PrimaryYellow: #F0B90B;
  --color-TextLink: #F0B90B;
  --color-TextToast: #F0B90B;
  --color-DepthSellBg: #35141D;
  --color-SellHover: #F6465D;
  --color-Sell: #F63C55;
  --color-TextSell: #F63C55;
  --color-DepthBuyBg: #102821;
  --color-BuyHover: #2EBD85;
  --color-Buy: #28A473;
  --color-TextBuy: #28A473;
  --color-ErrorBg: rgba(246, 70, 93, 0.1);
  --color-Error: #F63C55;
  --color-SuccessBg: #102821;
  --color-Success: #28A473;
  --color-EmphasizeText: #FF693D;
  --color-ToastBg: #4F4F4F;
  --color-TagBg: #4F4F4F;
  --color-Grid: #3D3D3D;
  --color-Placeholder: #4F4F4F;
  --color-Popup: #333333;
  --color-SecondaryBtn: #3D3D3D;
  --color-Mask: rgba(0, 0, 0, 0.6);
  --color-WidgetSecondaryBg: rgba(255, 255, 255, 0.06);
  --color-WidgetSurface: rgba(255, 255, 255, 0.04);
  --color-WidgetSurface2: rgba(255, 255, 255, 0.06);
  --color-ContainerBg: #1A1A1A;
  --color-YellowAlpha01: rgba(252, 213, 53, 0.15);
  --color-YellowAlpha02: rgba(252, 213, 53, 0.2);
  --color-RedAlpha01: rgba(246, 60, 85, 0.2);
  --color-RedAlpha02: rgba(246, 60, 85, 0.2);
  --color-GreenAlpha01: rgba(40, 164, 115, 0.2);
  --color-GreenAlpha02: rgba(40, 164, 115, 0.2);
  --color-ChatBg: #121212;
  --color-LineAlpha: rgba(255, 255, 255, 0.08);
  --color-WidgetPrimaryBg: rgba(255, 255, 255, 0.08);
  --color-ChatBubble: #282828;
  --color-ChatBubble2: #3E434B;
  --color-ChatInput: rgba(40, 40, 40, 0.95);
  --color-ChatName: #F0B90B;
  --color-ChatSysMsg: #161616;
  --color-ChatCard: #181818;
  --color-ChatCard2: #2E2D2D;
  --color-ChatRed: #2A171A;
  --color-ParagraphText: #DDDDDD;
  --color-CheckboxFillDefault: #DFDFDF;
  --color-CheckboxBorder: rgba(255, 255, 255, 0.3);
  --color-CardSurface: #202020;
  --color-BasicBg2: #000000;
  --color-TabBg: #282828;
  --color-MacroInsightTagFill: rgba(255, 255, 255, 0.1);
  --color-CardFill: rgba(255, 255, 255, 0.08);
  --color-CardInnerShadow: rgba(255, 255, 255, 0.12);
}
.theme-root.dark {
  --color-BasicBg: #202630;
  --color-SecondaryBg: #191A1F;
  --color-Input: #29313D;
  --color-InputLine: #434C5A;
  --color-CardBg: #202630;
  --color-Vessel: #29313D;
  --color-Line: #333B47;
  --color-DisableBtn: #29313D;
  --color-DisableText: #4F5867;
  --color-TertiaryText: #707A8A;
  --color-SecondaryText: #929AA5;
  --color-PrimaryText: #EAECEF;
  --color-RedGreenBgText: #FFFFFF;
  --color-EmphasizeText: #FF693D;
  --color-TextOnGray: #EAECEF;
  --color-TextOnYellow: #202630;
  --color-IconNormal: #707A8A;
  --color-LiteBg1: #202630;
  --color-LiteBg2: #191A1F;
  --color-BtnBg: #FCD535;
  --color-PrimaryYellow: #F0B90B;
  --color-TextLink: #F0B90B;
  --color-TradeBg: #0B0E11;
  --color-TextToast: #F0B90B;
  --color-DepthSellBg: #35141D;
  --color-SellHover: #F6465D;
  --color-Sell: #F6465D;
  --color-TextSell: #F6465D;
  --color-DepthBuyBg: #102821;
  --color-BuyHover: #2EBD85;
  --color-Buy: #2EBD85;
  --color-TextBuy: #2EBD85;
  --color-Error: #F6465D;
  --color-SuccessBg: #102821;
  --color-Success: #2EBD85;
  --color-TagBg: #434C5A;
  --color-Grid: #333B47;
  --color-Placeholder: #434C5A;
  --color-ToastBg: #4F5867;
  --color-TwoColorIcon: #4F5867;
  --color-ErrorBg: rgba(246, 70, 93, 0.1);
  --color-BadgeBg: rgba(240,185,11,0.1);
  --color-Popup: #333B47;
  --color-SecondaryBtn: #333B47;
  --color-Mask: rgba(11, 14, 17, 0.6);
  --color-WidgetSecondaryBg: rgba(195, 207, 240, 0.08);
  --color-WidgetSurface: rgba(195, 207, 240, 0.06);
  --color-WidgetSurface2: rgba(122, 148, 178, 0.12);
  --color-ContainerBg: #29313D;
  --color-YellowAlpha01: rgba(252, 213, 53, 0.1);
  --color-YellowAlpha02: rgba(252, 213, 53, 0.2);
  --color-RedAlpha01: rgba(246, 70, 93, 0.1);
  --color-RedAlpha02: rgba(246, 70, 93, 0.2);
  --color-GreenAlpha01: rgba(46, 189, 133, 0.1);
  --color-GreenAlpha02: rgba(46, 189, 133, 0.2);
  --color-ChatBg: #1A1E25;
  --color-LineAlpha: rgba(193, 204, 219, 0.08);
  --color-WidgetPrimaryBg: rgba(122, 148, 178, 0.08);
  --color-ChatBubble: #29313D;
  --color-ChatBubble2: #2D3E59;
  --color-ChatInput: rgba(41, 49, 61, 0.95);
  --color-ChatName: #F0B90B;
  --color-ChatSysMsg: #1C2229;
  --color-ChatCard: #212731;
  --color-ChatCard2: #243042;
  --color-ChatRed: #30222B;
  --color-ParagraphText: #EAECEF;
  --color-CheckboxFillDefault: #DFDFDF;
  --color-CheckboxBorder: rgba(255, 255, 255, 0.3);
  --color-CardSurface: #252C37;
  --color-BasicBg2: #202630;
  --color-TabBg: #29313D;
  --color-MacroInsightTagFill: rgba(122, 148, 178, 0.08);
  --color-CardFill: rgba(122, 148, 178, 0.08);
  --color-CardInnerShadow: rgba(255, 255, 255, 0.12);
}
@media only screen and (min-width: 768px) {
  .theme-root.midnight {
    --color-SecondaryBg: #000000;
    --color-LiteBg1: #222222;
    --color-LiteBg2: #111111;
    --color-TwoColorIcon: #CFCFCF;
    --color-TradeBg: #000000;
    --color-ChatBubble: #222222;
  }
  .theme-root.dark {
    --color-BasicBg: #181A20;
    --color-SecondaryBg: #0B0E11;
    --color-TwoColorIcon: #CACED3;
  }
}

.theme-root.light.buu-red-up {
  --color-DepthBuyBg: #FEF1F2;
  --color-BuyHover: #F6465D;
  --color-Buy: #F6465D;
  --color-TextBuy: #F6465D;
  --color-DepthSellBg: #E6FFF1;
  --color-SellHover: #2EBD85;
  --color-Sell: #2EBD85;
  --color-TextSell: #2EBD85;
  --color-RedAlpha01: rgba(46, 189, 133, 0.1);
  --color-RedAlpha02: rgba(46, 189, 133, 0.2);
  --color-GreenAlpha01: rgba(246, 70, 93, 0.1);
  --color-GreenAlpha02: rgba(246, 70, 93, 0.2);
}
.theme-root.light.buu-cvd {
  --color-Sell: #DD7A2B;
  --color-TextSell: #DD7A2B;
  --color-SellHover: #DD7A2B;
  --color-DepthSellBg: #FFEFE2;
  --color-Buy: #1F8DF9;
  --color-TextBuy: #1F8DF9;
  --color-BuyHover: #1F8DF9;
  --color-DepthBuyBg: #E6F3FF;
  --color-Error: #DD7A2B;
  --color-ErrorBg: #FFEFE2;
  --color-Success: #1F8DF9;
  --color-SuccessBg: #E6F3FF;
  --color-RedAlpha01: rgba(221, 122, 43, 0.1);
  --color-RedAlpha02: rgba(221, 122, 43, 0.2);
  --color-GreenAlpha01: rgba(31, 141, 249, 0.1);
  --color-GreenAlpha02: rgba(31, 141, 249, 0.2);
}
.theme-root.light.buu-cvd.buu-red-up {
  --color-Sell: #1F8DF9;
  --color-TextSell: #1F8DF9;
  --color-SellHover: #1F8DF9;
  --color-DepthSellBg: #E6F3FF;
  --color-Buy: #DD7A2B;
  --color-TextBuy: #DD7A2B;
  --color-BuyHover: #DD7A2B;
  --color-DepthBuyBg: #FFEFE2;
  --color-Error: #DD7A2B;
  --color-ErrorBg: #FFEFE2;
  --color-Success: #1F8DF9;
  --color-SuccessBg: #E6F3FF;
  --color-RedAlpha01: rgba(31, 141, 249, 0.1);
  --color-RedAlpha02: rgba(31, 141, 249, 0.2);
  --color-GreenAlpha01: rgba(221, 122, 43, 0.1);
  --color-GreenAlpha02: rgba(221, 122, 43, 0.2);
}
.theme-root.light.buu-traditional {
  --color-Sell: #EA0070;
  --color-TextSell: #EA0070;
  --color-SellHover: #EE358D;
  --color-DepthSellBg: #FFD9EB;
  --color-Buy: #74A700;
  --color-TextBuy: #74A700;
  --color-BuyHover: #9BCB2F;
  --color-DepthBuyBg: #F6FFE1;
  --color-Error: #EA0070;
  --color-ErrorBg: #FFD9EB;
  --color-Success: #74A700;
  --color-SuccessBg: #F6FFE1;
  --color-RedAlpha01: rgba(234, 0, 112, 0.1);
  --color-RedAlpha02: rgba(234, 0, 112, 0.2);
  --color-GreenAlpha01: rgba(116, 167, 0, 0.1);
  --color-GreenAlpha02: rgba(116, 167, 0, 0.2);
}
.theme-root.light.buu-traditional.buu-red-up {
  --color-Buy: #EA0070;
  --color-TextBuy: #EA0070;
  --color-BuyHover: #EE358D;
  --color-DepthBuyBg: #FFD9EB;
  --color-Sell: #74A700;
  --color-TextSell: #74A700;
  --color-SellHover: #9BCB2F;
  --color-DepthSellBg: #F6FFE1;
  --color-Error: #EA0070;
  --color-ErrorBg: #FFD9EB;
  --color-Success: #74A700;
  --color-SuccessBg: #F6FFE1;
  --color-RedAlpha01: rgba(116, 167, 0, 0.1);
  --color-RedAlpha02: rgba(116, 167, 0, 0.2);
  --color-GreenAlpha01: rgba(234, 0, 112, 0.1);
  --color-GreenAlpha02: rgba(234, 0, 112, 0.2);
}
.theme-root.midnight.buu-red-up {
  --color-DepthBuyBg: #35141D;
  --color-BuyHover: #F6465D;
  --color-Buy: #F63C55;
  --color-TextBuy: #F63C55;
  --color-DepthSellBg: #102821;
  --color-SellHover: #2EBD85;
  --color-Sell: #28A473;
  --color-TextSell: #28A473;
  --color-RedAlpha01: rgba(40, 164, 115, 0.2);
  --color-RedAlpha02: rgba(40, 164, 115, 0.2);
  --color-GreenAlpha01: rgba(246, 60, 85, 0.2);
  --color-GreenAlpha02: rgba(246, 60, 85, 0.2);
}
.theme-root.midnight.buu-cvd {
  --color-Sell: #D4762B;
  --color-TextSell: #DD7A2B;
  --color-SellHover: #DD7A2B;
  --color-DepthSellBg: #553821;
  --color-Buy: #1F8DF9;
  --color-TextBuy: #1F8DF9;
  --color-BuyHover: #1F8DF9;
  --color-DepthBuyBg: #22384E;
  --color-Error: #D4762B;
  --color-ErrorBg: #553821;
  --color-Success: #1F8DF9;
  --color-SuccessBg: #22384E;
  --color-RedAlpha01: rgba(212, 118, 43, 0.2);
  --color-RedAlpha02: rgba(212, 118, 43, 0.2);
  --color-GreenAlpha01: rgba(31, 141, 249, 0.2);
  --color-GreenAlpha02: rgba(31, 141, 249, 0.2);
}
.theme-root.midnight.buu-cvd.buu-red-up {
  --color-Sell: #1F8DF9;
  --color-TextSell: #1F8DF9;
  --color-SellHover: #1F8DF9;
  --color-DepthSellBg: #22384E;
  --color-Buy: #D4762B;
  --color-TextBuy: #DD7A2B;
  --color-BuyHover: #DD7A2B;
  --color-DepthBuyBg: #553821;
  --color-Error: #D4762B;
  --color-ErrorBg: #553821;
  --color-Success: #1F8DF9;
  --color-SuccessBg: #22384E;
  --color-RedAlpha01: rgba(31, 141, 249, 0.2);
  --color-RedAlpha02: rgba(31, 141, 249, 0.2);
  --color-GreenAlpha01: rgba(212, 118, 43, 0.2);
  --color-GreenAlpha02: rgba(212, 118, 43, 0.2);
}
.theme-root.midnight.buu-traditional {
  --color-Sell: #EA0070;
  --color-TextSell: #EA0070;
  --color-SellHover: #EE358D;
  --color-DepthSellBg: #40172B;
  --color-Buy: #709B0D;
  --color-TextBuy: #74A700;
  --color-BuyHover: #9BCB2F;
  --color-DepthBuyBg: #2A3315;
  --color-Error: #EA0070;
  --color-ErrorBg: #40172B;
  --color-Success: #709B0D;
  --color-SuccessBg: #2A3315;
  --color-RedAlpha01: rgba(234, 0, 112, 0.2);
  --color-RedAlpha02: rgba(234, 0, 112, 0.2);
  --color-GreenAlpha01: rgba(112, 155, 13, 0.2);
  --color-GreenAlpha02: rgba(112, 155, 13, 0.2);
}
.theme-root.midnight.buu-traditional.buu-red-up {
  --color-Buy: #EA0070;
  --color-TextBuy: #EA0070;
  --color-BuyHover: #EE358D;
  --color-DepthBuyBg: #40172B;
  --color-Sell: #709B0D;
  --color-TextSell: #74A700;
  --color-SellHover: #9BCB2F;
  --color-DepthSellBg: #2A3315;
  --color-Error: #EA0070;
  --color-ErrorBg: #40172B;
  --color-Success: #709B0D;
  --color-SuccessBg: #2A3315;
  --color-RedAlpha01: rgba(112, 155, 13, 0.2);
  --color-RedAlpha02: rgba(112, 155, 13, 0.2);
  --color-GreenAlpha01: rgba(234, 0, 112, 0.2);
  --color-GreenAlpha02: rgba(234, 0, 112, 0.2);
}
.theme-root.dark.buu-red-up {
  --color-DepthBuyBg: #35141D;
  --color-BuyHover: #F6465D;
  --color-Buy: #F6465D;
  --color-TextBuy: #F6465D;
  --color-DepthSellBg: #102821;
  --color-SellHover: #2EBD85;
  --color-Sell: #2EBD85;
  --color-TextSell: #2EBD85;
  --color-RedAlpha01: rgba(46, 189, 133, 0.1);
  --color-RedAlpha02: rgba(46, 189, 133, 0.2);
  --color-GreenAlpha01: rgba(246, 70, 93, 0.1);
  --color-GreenAlpha02: rgba(246, 70, 93, 0.2);
}
.theme-root.dark.buu-cvd {
  --color-Sell: #DD7A2B;
  --color-TextSell: #DD7A2B;
  --color-SellHover: #DD7A2B;
  --color-DepthSellBg: #553821;
  --color-Buy: #1F8DF9;
  --color-TextBuy: #1F8DF9;
  --color-BuyHover: #1F8DF9;
  --color-DepthBuyBg: #22384E;
  --color-Error: #EC8D42;
  --color-ErrorBg: #553821;
  --color-Success: #1F8DF9;
  --color-SuccessBg: #22384E;
  --color-RedAlpha01: rgba(221, 122, 43, 0.1);
  --color-RedAlpha02: rgba(221, 122, 43, 0.2);
  --color-GreenAlpha01: rgba(31, 141, 249, 0.1);
  --color-GreenAlpha02: rgba(31, 141, 249, 0.2);
}
.theme-root.dark.buu-cvd.buu-red-up {
  --color-Sell: #1F8DF9;
  --color-TextSell: #1F8DF9;
  --color-SellHover: #1F8DF9;
  --color-DepthSellBg: #22384E;
  --color-Buy: #DD7A2B;
  --color-TextBuy: #DD7A2B;
  --color-BuyHover: #DD7A2B;
  --color-DepthBuyBg: #553821;
  --color-Error: #EC8D42;
  --color-ErrorBg: #553821;
  --color-Success: #1F8DF9;
  --color-SuccessBg: #22384E;
  --color-RedAlpha01: rgba(31, 141, 249, 0.1);
  --color-RedAlpha02: rgba(31, 141, 249, 0.2);
  --color-GreenAlpha01: rgba(221, 122, 43, 0.1);
  --color-GreenAlpha02: rgba(221, 122, 43, 0.2);
}
.theme-root.dark.buu-traditional {
  --color-Sell: #EA0070;
  --color-TextSell: #EA0070;
  --color-SellHover: #EE358D;
  --color-DepthSellBg: #40172B;
  --color-Buy: #74A700;
  --color-TextBuy: #74A700;
  --color-BuyHover: #9BCB2F;
  --color-DepthBuyBg: #2A3315;
  --color-Error: #EA0070;
  --color-ErrorBg: #40172B;
  --color-Success: #74A700;
  --color-SuccessBg: #2A3315;
  --color-RedAlpha01: rgba(234, 0, 112, 0.1);
  --color-RedAlpha02: rgba(234, 0, 112, 0.2);
  --color-GreenAlpha01: rgba(116, 167, 0, 0.1);
  --color-GreenAlpha02: rgba(116, 167, 0, 0.2);
}
.theme-root.dark.buu-traditional.buu-red-up {
  --color-Buy: #EA0070;
  --color-TextBuy: #EA0070;
  --color-BuyHover: #EE358D;
  --color-DepthBuyBg: #40172B;
  --color-Sell: #74A700;
  --color-TextSell: #74A700;
  --color-SellHover: #9BCB2F;
  --color-DepthSellBg: #2A3315;
  --color-Error: #EA0070;
  --color-ErrorBg: #40172B;
  --color-Success: #74A700;
  --color-SuccessBg: #2A3315;
  --color-RedAlpha01: rgba(116, 167, 0, 0.1);
  --color-RedAlpha02: rgba(116, 167, 0, 0.2);
  --color-GreenAlpha01: rgba(234, 0, 112, 0.1);
  --color-GreenAlpha02: rgba(234, 0, 112, 0.2);
}
@media only screen and (min-width: 768px) {
  .theme-root.light.buu-cvd {
    --color-SellHover: #EEA062;
    --color-TextBuy: #297FD4;
    --color-BuyHover: #69B1F8;
  }
  .theme-root.light.buu-cvd.buu-red-up {
    --color-TextSell: #297FD4;
    --color-SellHover: #69B1F8;
    --color-BuyHover: #EEA062;
  }
  .theme-root.midnight.buu-cvd {
    --color-TextSell: #D4762B;
    --color-SellHover: #EEA062;
    --color-BuyHover: #69B1F8;
  }
  .theme-root.midnight.buu-cvd.buu-red-up {
    --color-SellHover: #69B1F8;
    --color-TextBuy: #D4762B;
    --color-BuyHover: #EEA062;
  }
  .theme-root.midnight.buu-traditional {
    --color-TextBuy: #709B0D;
  }
  .theme-root.midnight.buu-traditional.buu-red-up {
    --color-TextSell: #709B0D;
    --color-RedAlpha01: rgba(116, 167, 0, 0.2);
    --color-RedAlpha02: rgba(116, 167, 0, 0.2);
  }
  .theme-root.dark.buu-cvd {
    --color-SellHover: #EEA062;
    --color-BuyHover: #69B1F8;
    --color-Error: #DD7A2B;
  }
  .theme-root.dark.buu-cvd.buu-red-up {
    --color-SellHover: #69B1F8;
    --color-BuyHover: #EEA062;
    --color-Error: #DD7A2B;
  }
}

.language-icon {
  font-size: 16px;
  height: 16px;
  width: 16px;
}
.common-widget-css_wrap .mt-16 {
  margin-top: 16px;
}

.common-widget-css_wrap .color-t_third {
  color: var(--color-TertiaryText);
}

/* ⚠️ 必须用 min() 夹一下：CSS 里 min-width 永远盖过 width，
   全屏抽屉（视口 <= 767，见 ui/common/DrawerRight）面板宽度就等于视口，
   窄于 375px 的机型（360 的安卓机、320 的 SE1）内容会被撑出面板、右侧被切掉。
   视口 > 767 的 size="auto" 那一支面板由内容撑开，仍然需要 375 这个下限。 */
.bn-drawer-wrap .header-lngCur-content {
  width: 100%;
  min-width: min(375px, 100vw);
}

.bn-drawer-wrap .header-lngCur-item {
  height: auto;
}

.bn-drawer-wrap .header-lngCur-item .footer-select-options-group-flat-options {
  height: calc(100vh - 204px);
  overflow: auto;
}

.header-lngCur-content {
  display: grid;
  padding: 24px;
  width: 400px;
  grid-template-columns: 3fr 2fr;
  grid-gap: 24px;
  gap: 24px;
}

.bn-drawer-wrap .header-lngCur-content {
  padding: 0 24px 24px 24px;
}

.header-lngCur-content.onlyone {
  grid-template-columns: 1fr;
}

.header-lngCur-content.onlyone.onlyoneLng {
  width: 180px;
}

.header-lngCur-content.onlyone.onlyoneFiat {
  width: 220px;
}

.header-lngCur-content .header-lngCur-item {
  height: 370px;
  /* keep the 3fr / 2fr split: a long option (e.g. the "Last Used" tag) must not
     push the language track past its share and squeeze the currency track */
  min-width: 0;
  /* overflow: auto; */
  --scroll-bg: transparent;
  --scroll-size: 5px;
  --scroll-color: var(--color-Line);
}

/* header-lngCur-item */
.header-lngCur-item .footer-select-options-group-flat-options {
  height: 300px;
  overflow: auto;
  --scroll-color: var(--color-Line);
}

.header-lngCur-item .bn-textField {
  width: 100%;
}

.header-nav-bar {
  display: flex;
  height: 64px;
  justify-content: flex-end;
  align-items: center;
  -webkit-padding-end: 24px;
          padding-inline-end: 24px;
  color: var(--color-PrimaryText);
}

.header-nav-bar .close-btn-size {
  font-size: 24px;
}
/* ---------- 桌面 Header 语言 / 币种下拉新样式（Figma「其它优化」4722:138542，COM-26794）----------
   卡片 424 宽、8px 内边距，两栏 224 / 160、间距 24；栏标题 14/22 500 三级色，下 12 是 32 高搜索框（比栏窄 32），再下 16 是列表；
   行 8px 16px 内边距、4px 圆角、行间无间距（语言两行 56 高、币种单行 38 高），hover 换底色、当前项 TextLink；3px 滚动条。
   与「更多」面板的语言 / 币种二级页（Header/More/style.css）同一套行样式。
   只作用于桌面气泡（.top-corner-traight，外壳见 Header/MenuGroup/style.css）：Drawer / Footer 的同款列表不受影响。 */
.top-corner-traight .header-lngCur-content {
  box-sizing: border-box;
  width: 424px;
  padding: 8px;
  grid-template-columns: 224px 160px;
}

.top-corner-traight .header-lngCur-content.onlyone {
  width: auto;
  grid-template-columns: 224px;
}

.top-corner-traight .header-lngCur-content .header-lngCur-item {
  display: flex;
  flex-direction: column;
  height: 402px;
}

.top-corner-traight .header-lngCur-item .footer-select-options-group-flat {
  display: flex;
  flex: 1 1;
  flex-direction: column;
  min-height: 0;
}

.top-corner-traight .header-lngCur-item .footer-select-options-group-flat > .typography-Body3 {
  margin-bottom: 12px;
  font-weight: 500;
  line-height: 22px;
}

.top-corner-traight .header-lngCur-item .bn-textField {
  box-sizing: border-box;
  flex-shrink: 0;
  width: calc(100% - 32px);
  border-radius: 8px;
}

.top-corner-traight .header-lngCur-item .footer-select-options-group-flat-options {
  flex: 1 1;
  height: auto;
  min-height: 0;
  margin: 16px 0 0;
  -webkit-padding-end: 7px;
          padding-inline-end: 7px;
  overscroll-behavior: contain;
}

.top-corner-traight .header-lngCur-item .footer-select-options-group-flat-options::-webkit-scrollbar {
  width: 3px;
}

.top-corner-traight .header-lngCur-item .footer-select-options-group-flat-options::-webkit-scrollbar-thumb {
  border-radius: 20px;
  background: var(--color-DisableText);
}

.top-corner-traight .header-lngCur-item .footer-select-options-group-flat-options::-webkit-scrollbar-track {
  background: transparent;
}

.top-corner-traight .header-lngCur-item .footer-select-options {
  padding: 8px 16px;
  border-radius: 4px;
}

.top-corner-traight .header-lngCur-item .footer-select-options + .footer-select-options,
.top-corner-traight .header-lngCur-item .footer-select-options + .footer-select-options.lng-choice-option-two-line {
  margin-top: 0;
}

.top-corner-traight .header-lngCur-item .footer-select-options:hover {
  background: var(--header-dropdown-hover-bg);
  color: var(--color-PrimaryText);
}

.top-corner-traight .header-lngCur-item .footer-select-options.active {
  color: var(--color-TextLink);
}

/* ============================================================================
 * Token Conversion — component styles (BEM, prefix `tc-`)
 * Migrated from Tailwind utility classes (COM-25597).
 * Uses uikit CSS variables (--color-xxx, --space-xxx, --radii-xxx).
 * Typography classes (t-headline5, t-body3, …) are provided by uikit and are
 * kept in className alongside these BEM classes.
 * ========================================================================== */

/* ── Pulse animation (replaces Tailwind animate-pulse) ──────────────────── */
@keyframes tc-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ── Stacking (COM-27575) ───────────────────────────────────────────────── */
/* Desktop renders as `.bn-mask` (--zindex-modal: 1200), but hosts open it from
 * inside a `.bn-drawer` (--zindex-drawer: 9999), e.g. the wallet asset sidebar,
 * which left the modal unclickable under the drawer mask. Mobile renders as a
 * drawer appended after the host's, so `.bn-modal` keeps this desktop-only. */
.bn-mask.bn-modal.tc-modal {
  z-index: calc(var(--zindex-drawer) + 1);
}

/* Desktop error notifications come from this widget's own LayerProvider
 * (--zindex-notification: 1300) and must stay above the lifted modal. */
[data-token-conversion-modal] .bn-layer-notifies {
  z-index: calc(var(--zindex-drawer) + 2);
}

/* ── Shared full-width button ───────────────────────────────────────────── */
.tc-btn-full {
  width: 100%;
}

/* ── 通用 ───────────────────────────────────────────────────────────────── */
.tc-modal-body {
  /* wrapper around the modal content (click target to dismiss tooltip) */
}

.tc-header {
  display: flex;
  align-items: center;
  grid-gap: var(--space-3xs);
  gap: var(--space-3xs);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  background-color: var(--color-CardBg);
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
  padding-top: 18px;
  padding-bottom: 18px;
}

.tc-header__title {
  color: var(--color-PrimaryText);
}

.tc-header__info-btn {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.tc-header__info-btn .tc-header__info-icon {
  height: 20px;
  width: 20px;
  color: var(--color-IconNormal);
}

.tc-header__info-btn:hover .tc-header__info-icon {
  color: var(--color-PrimaryText);
}

.tc-header__close-btn {
  display: flex;
  align-items: center;
  cursor: pointer;
  -webkit-margin-start: auto;
          margin-inline-start: auto;
}

.tc-header__close-icon {
  height: 20px;
  width: 20px;
  color: var(--color-PrimaryText);
}

.tc-tooltip-content {
  max-width: 200px;
}

.tc-tooltip-link {
  cursor: pointer;
  color: var(--color-TextLink);
}

@media screen and (max-width: 768px) {
  .tc-header {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ── AccountCheckSkeleton ───────────────────────────────────────────────── */
.tc-skeleton {
  display: flex;
  flex-direction: column;
  grid-gap: var(--space-l);
  gap: var(--space-l);
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
  padding-bottom: 48px;
  padding-top: var(--space-s);
}

.tc-skeleton__card {
  display: flex;
  align-items: center;
  border-radius: var(--radii-m);
  background-color: var(--color-Vessel);
  padding-left: var(--space-l);
  padding-right: var(--space-l);
  padding-top: var(--space-l);
  padding-bottom: var(--space-l);
}

.tc-skeleton__logo {
  height: 32px;
  width: 32px;
  border-radius: 100px;
  background-color: var(--color-Input);
  animation: tc-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.tc-skeleton__line {
  height: 24px;
  width: 100%;
  border-radius: var(--radii-s);
  background-color: var(--color-Input);
  animation: tc-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.tc-skeleton__line--short {
  width: 200px;
}

@media screen and (max-width: 768px) {
  .tc-skeleton {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ── CoinLogoWithFallback ───────────────────────────────────────────────── */
.tc-coin-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  background-color: var(--color-Input);
  overflow: hidden;
}

.tc-coin-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tc-coin-logo__fallback {
  color: var(--color-SecondaryText);
}

/* ── AccountReminderView ────────────────────────────────────────────────── */
.tc-reminder {
  display: flex;
  flex-direction: column;
  grid-gap: var(--space-xl);
  gap: var(--space-xl);
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
  padding-bottom: var(--space-xl);
  padding-top: var(--space-s);
}

.tc-reminder__direction-card {
  border-radius: var(--radii-m);
  background-color: var(--color-Vessel);
  padding-left: var(--space-s);
  padding-right: var(--space-s);
  padding-top: var(--space-l);
  padding-bottom: var(--space-l);
}

.tc-reminder__logos {
  display: flex;
  align-items: center;
  grid-gap: var(--space-2xs);
  gap: var(--space-2xs);
}

.tc-reminder__logo-wrapper {
  height: 32px;
  width: 32px;
  overflow: hidden;
  border-radius: 100px;
  border-width: 2px;
  border-style: solid;
  border-color: var(--color-Vessel);
}

.tc-reminder__logo-wrapper--paired {
  position: relative;
  z-index: 1;
  margin-left: -4px;
}

.tc-reminder__logos-inner {
  display: flex;
  align-items: center;
}

.tc-reminder__symbol-row {
  display: flex;
  align-items: center;
  grid-gap: var(--space-3xs);
  gap: var(--space-3xs);
  color: var(--color-PrimaryText);
}

.tc-reminder__arrow {
  height: 16px;
  width: 16px;
  color: var(--color-PrimaryText);
}

.tc-reminder__rate-wrap {
  flex: 1 1;
  text-align: right;
}

.tc-reminder__rate-badge {
  border-radius: 2px;
  background-color: var(--color-GreenAlpha01);
  padding-left: var(--space-4xs);
  padding-right: var(--space-4xs);
  color: var(--color-Success);
}

.tc-reminder__text {
  display: flex;
  flex-direction: column;
  grid-gap: var(--space-5xs);
  gap: var(--space-5xs);
}

.tc-reminder__title {
  color: var(--color-PrimaryText);
}

.tc-reminder__desc {
  color: var(--color-PrimaryText);
}

@media screen and (max-width: 768px) {
  .tc-reminder {
    grid-gap: var(--space-m);
    gap: var(--space-m);
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ── SuspendedView ──────────────────────────────────────────────────────── */
.tc-suspended {
  display: flex;
  flex-direction: column;
  grid-gap: var(--space-xl);
  gap: var(--space-xl);
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
  padding-top: var(--space-s);
}

.tc-suspended__cards {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-gap: var(--space-2xs);
  gap: var(--space-2xs);
}

.tc-suspended__from-card {
  position: relative;
  border-radius: var(--radii-m);
  background-color: var(--color-Vessel);
  padding-left: var(--space-s);
  padding-right: var(--space-s);
  padding-top: var(--space-l);
  padding-bottom: var(--space-l);
}

.tc-suspended__badge {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  height: 24px;
  align-items: center;
  justify-content: center;
  overflow: clip;
  border-bottom-left-radius: 8px;
  border-top-right-radius: 12px;
  background-color: var(--color-RedAlpha01);
  padding-left: var(--space-2xs);
  padding-right: var(--space-2xs);
}

.tc-suspended__badge-text {
  color: var(--color-Error);
}

.tc-suspended__swap-knob {
  position: absolute;
  bottom: 70px;
  left: 50%;
  z-index: 10;
  width: 36px;
  transform: translateX(-50%);
}

.tc-suspended__swap-knob-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  background-color: var(--color-CardBg);
  padding: 8px;
}

.tc-suspended__swap-icon {
  height: 20px;
  width: 20px;
  color: var(--color-DisableBtn);
}

.tc-suspended__to-card {
  border-radius: var(--radii-m);
  background-color: var(--color-Vessel);
  padding-left: var(--space-s);
  padding-right: var(--space-s);
  padding-top: var(--space-l);
  padding-bottom: var(--space-l);
}

.tc-suspended__card-row {
  display: flex;
  align-items: center;
  grid-gap: var(--space-2xs);
  gap: var(--space-2xs);
}

.tc-suspended__logo {
  height: 32px;
  width: 32px;
}

.tc-suspended__symbol {
  color: var(--color-DisableText);
}

.tc-suspended__amount {
  flex: 1 1;
  text-align: right;
  color: var(--color-DisableText);
}

.tc-suspended__card-right {
  display: flex;
  flex: 1 1;
  flex-direction: column;
  align-items: flex-end;
  grid-gap: var(--space-5xs);
  gap: var(--space-5xs);
}

.tc-suspended__to-amount {
  color: var(--color-DisableText);
}

.tc-suspended__rate-badge {
  border-radius: 2px;
  background-color: var(--color-WidgetSecondaryBg);
  padding-left: var(--space-4xs);
  padding-right: var(--space-4xs);
  color: var(--color-SecondaryText);
}

.tc-suspended__desc {
  color: var(--color-PrimaryText);
}

.tc-suspended__desc-inline {
  display: inline;
}

.tc-suspended__desc-link {
  display: inline;
  cursor: pointer;
  color: var(--color-TextLink);
}

.tc-suspended__recovery {
  margin-top: var(--space-2xs);
}

.tc-suspended__action {
  padding-bottom: var(--space-xl);
}

@media screen and (max-width: 768px) {
  .tc-suspended {
    grid-gap: var(--space-m);
    gap: var(--space-m);
    padding-left: 15px;
    padding-right: 15px;
  }

  .tc-suspended__action {
    padding-top: var(--space-xs);
  }
}

/* ── ResultView ─────────────────────────────────────────────────────────── */
.tc-result {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
}

.tc-result__top {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
  padding-top: var(--space-xl);
}

.tc-result__top-inner {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  grid-gap: var(--space-m);
  gap: var(--space-m);
}

.tc-result__icon {
  height: 96px !important;
  width: 96px !important;
}

.tc-result__text {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  grid-gap: var(--space-2xs);
  gap: var(--space-2xs);
  text-align: center;
}

.tc-result__title {
  width: 100%;
  color: var(--color-PrimaryText);
}

.tc-result__amount {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  overflow-wrap: break-word;
  color: var(--color-PrimaryText);
}

.tc-result__desc {
  width: 100%;
  color: var(--color-SecondaryText);
}

.tc-result__action {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: clip;
  padding: var(--space-xl);
}

@media screen and (max-width: 768px) {
  .tc-result__top {
    padding-left: 15px;
    padding-right: 15px;
  }

  .tc-result__action {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ── FormView ───────────────────────────────────────────────────────────── */
.tc-form {
  display: flex;
  flex-direction: column;
  grid-gap: var(--space-xl);
  gap: var(--space-xl);
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
  padding-top: var(--space-s);
}

.tc-form__cards {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-gap: var(--space-2xs);
  gap: var(--space-2xs);
}

.tc-form__from-card {
  position: relative;
  border-radius: var(--radii-m);
  background-color: var(--color-Vessel);
  padding-left: var(--space-s);
  padding-right: var(--space-s);
  padding-top: var(--space-l);
  padding-bottom: var(--space-l);
}

.tc-form__card-row {
  display: flex;
  align-items: center;
  grid-gap: var(--space-2xs);
  gap: var(--space-2xs);
}

.tc-form__coin-logo {
  height: 32px;
  width: 32px;
}

.tc-form__symbol {
  color: var(--color-PrimaryText);
}

.tc-form__input-wrap {
  flex: 1 1;
  text-align: right;
}

.tc-form__input {
  color: var(--color-PrimaryText);
}

.tc-form__input::placeholder {
  color: var(--color-IconNormal);
}

.tc-form__available-row {
  margin-top: var(--space-xs);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  grid-gap: 10px;
  gap: 10px;
}

.tc-form__available-label {
  color: var(--color-SecondaryText);
}

.tc-form__available-label--dashed {
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom-width: 1px;
  border-bottom-style: dashed;
  border-color: var(--color-SecondaryText);
}

.tc-form__divider {
  height: 12px;
  width: 1px;
  background-color: var(--color-Line);
}

.tc-form__max-btn {
  cursor: pointer;
  color: var(--color-TextLink);
}

.tc-form__error {
  margin-top: var(--space-2xs);
  color: var(--color-Error);
}

.tc-form__swap-knob {
  position: absolute;
  bottom: -4px;
  left: 50%;
  z-index: 10;
  display: flex;
  height: 36px;
  width: 36px;
  transform: translate(-50%, 50%);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  background-color: var(--color-CardBg);
}

.tc-form__swap-icon {
  height: 20px;
  width: 20px;
  color: var(--color-PrimaryText);
}

.tc-form__to-card {
  border-radius: var(--radii-m);
  background-color: var(--color-Vessel);
  padding-left: var(--space-s);
  padding-right: var(--space-s);
  padding-top: var(--space-l);
  padding-bottom: var(--space-l);
}

.tc-form__to-symbol {
  color: var(--color-DisableText);
}

.tc-form__to-right {
  display: flex;
  flex: 1 1;
  flex-direction: column;
  align-items: flex-end;
  grid-gap: var(--space-5xs);
  gap: var(--space-5xs);
}

.tc-form__to-amount {
  color: var(--color-DisableText);
}

.tc-form__rate-badge {
  border-radius: 2px;
  background-color: var(--color-GreenAlpha01);
  padding-left: var(--space-4xs);
  padding-right: var(--space-4xs);
  color: var(--color-Success);
}

.tc-form__desc {
  color: var(--color-PrimaryText);
}

.tc-form__terms {
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-top-width: 1px;
  border-top-style: solid;
  border-color: var(--color-Line);
  padding-top: var(--space-l);
  color: var(--color-SecondaryText);
}

.tc-form__terms-link {
  display: inline;
  cursor: pointer;
  color: var(--color-TextLink);
}

.tc-form__action {
  padding-bottom: var(--space-xl);
}

@media screen and (max-width: 768px) {
  .tc-form {
    grid-gap: var(--space-m);
    gap: var(--space-m);
    padding-left: 15px;
    padding-right: 15px;
  }

  .tc-form__available-label--dashed {
    border-bottom-width: 0.5px;
  }

  .tc-form__action {
    padding-top: var(--space-xs);
  }
}

.footer-community .typography-Subtitle1 {
    font-weight: 600;
}

/* 社媒图标：默认次要文字色、hover 主文字色（COM-26794 Footer 改版，与原来相反） */
.footer-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--color-SecondaryText)
}

.footer-icon:hover {
    color: var(--color-PrimaryText);
}

/* Preferences 标题只在 ≥1024 的左列布局里出现（768 / 375 的设计稿没有）。
   多一层 .footer-community：FooterNav 的 .footer-navlist-title { margin: 0 } 同优先级、打包顺序在后会盖掉 */
.footer-community .footer-preferences-title {
    margin-top: 48px;
}

.footer-preferences-title + .lngAndCurrency-selectgroup {
    margin-top: 24px !important;
}

@media screen and (max-width: 1023px) {
    .footer-community .footer-preferences-title {
        display: none;
    }

    .footer-preferences-title + .lngAndCurrency-selectgroup {
        margin-top: 48px !important;
    }
}

/* 图标链接默认是 inline（FooterNav: footer a { display: inline }），会带出行高、每格比 24 高 ⇒ 3 行多 15px */
.footer-icongroup > a {
    display: flex;
}

.footer-icongroup {
    display: grid;
    grid-template-columns: repeat(4, 24px);
    grid-gap: 24px;
    margin-top: 24px;
    /* width: 168px; */
}

@media screen and (max-width: 1023px) {
    .footer-community{
        margin-top: 48px;
    }
    .footer-icongroup{
        grid-template-columns: repeat(auto-fill, 24px);
        margin-top: 18px;
    }
    
}
 
@media screen and (max-width: 767px) {
  .footer-currency-img {
    height: 20px;
    -webkit-margin-end: 8px;
            margin-inline-end: 8px;
  }
}

.footer-copyright {
  max-width: 1200px;
  margin: 64px auto 0;
}

.footer-copyright .typography-Btn_link3 {
  color: var(--color-TextLink);
}

.footer-copyright .footer-copyright-legal .typography-Btn_link3 {
  font-size: 12px;
}

/* .footer-copyright .typography-Body3 {
  font-weight: 300;
} */
.footer-copyright-line {
  width: 100%;
  height: 1px;
  background-color: var(--color-Line);
}

.footer-copyright-text {
  margin-top: 16px;
  color: var(--color-SecondaryText);
}

.text-center {
  text-align: center;
}

.footer-copyright-enterprise .opreation {
  cursor: pointer;
}

.no-wrap {
  white-space: nowrap;
}

.footer-copyright-cookieprefrence {
  cursor: pointer;
  -webkit-margin-start: 24px;
          margin-inline-start: 24px;
  white-space: nowrap;
}

.footer-copyright-cookieprefrence:hover {
  color: var(--color-PrimaryText);
}
@media screen and (max-width: 1023px) {
    .footer-copyright{
        margin-top: 48px;
    }
    
}

@media screen and (max-width: 767px) {
    .footer-copyright .typography-Body3 {
        font-size: 12px;
        line-height: 16px;
    }
    .footer-copyright-cookieprefrence{
        display: block;
        margin-left: 0;
    }
}

footer a {
  display: inline;
}

.footer-navlist {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 24px;
  column-gap: 24px;
}

.footer-navlist-sub {
  page-break-inside: avoid;
  break-inside: avoid;
}

.footer-navlist-sub+.footer-navlist-sub {
  margin-top: 40px;
}

.footer-navlist .footer-navlist-item-list {
  list-style: none;
  margin-top: 16px;
}

.footer-navlist-item+.footer-navlist-item {
  margin-top: 8px;
}

/* Footer 改版（COM-26794，Figma「8/24 Web header / Footer 优化」Footer 4779:31193）：
   链接默认次要文字色，hover 变主文字色（原来是黄色 TextLink） */
.footer-navlist .footer-navlist-item .color-textprimary {
  color: var(--color-SecondaryText);
}

.footer-navlist .footer-navlist-item .color-textprimary:hover {
  color: var(--color-PrimaryText);
}

.footer-navlist-title {
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  margin: 0;
}

/* Figma 链接行 28 高 = 8 间距 + 20 行高（原来每行 32）：行高要设在 li 上，a 是 inline、行盒由 li 的继承行高决定 */
@media screen and (min-width: 768px) {
  /* li 的字号也要跟链接一致（14），否则继承的 16px 支柱与 14px 链接基线错开、每行再多 1px */
  .footer-navlist .footer-navlist-item,
  .footer-navlist .footer-navlist-item a,
  .footer-navlist .footer-navlist-item span {
    font-size: 14px;
    line-height: 20px;
  }
}

/* 组内 hover：标题文字下方 2px 线（Figma 标题 24 高、线在 26–28），伪元素绘制，不改变布局 */
.footer-navlist-title-text {
  position: relative;
}

@media screen and (min-width: 768px) {
  .footer-navlist-sub:hover .footer-navlist-title-text::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background-color: var(--color-PrimaryText);
  }
}

.footer-navlist-expand-icon {
  display: none;
}
@media screen and (max-width: 767px) {
  .footer-navlist {
    display: block;
  }

  .footer-navlist-item-list {
    display: none;
    margin-top: 24px;
    list-style-type: none;
  }

  .footer-navlist-item-list.active {
    display: block;
  }

  .footer-navlist-title {
    display: flex;
    font-weight: 500;
    font-size: 16px;
    line-height: 32px;
    height: 32px;
    justify-content: space-between;
  }

  .footer-navlist-title .bn-svg {
    font-size: 20px;
  }

  .footer-navlist-expand-icon {
    display: inline-block;
    padding: 8px;
  }

  .footer-navlist-expand-icon .bn-svg {
    font-size: 16px !important;
    color: var(--color-PrimaryText);
  }

  .footer-navlist-item {
    padding: 0 24px;
  }

  .footer-navlist-item+.footer-navlist-item {
    margin-top: 16px;
  }

  .footer-navlist-group {
    width: auto;
  }

  .footer-navlist-group+.footer-navlist-group {
    margin-top: 16px;
  }

  .footer-navlist-sub+.footer-navlist-sub {
    margin-top: 16px;
  }
}
@media screen and (max-width: 1023px) {
  .footer-navlist-group {
    width: auto;
  }
}

footer.footer-wrapper {
  background-color: var(--color-BasicBg);
  padding: 64px 24px 64px;
}

.footer-wrapper.onlyCopyRight {
  padding: 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 4fr;
  grid-column-gap: 24px;
  width: 1200px;
  justify-content: space-between;
  margin: 0 auto;
}


@media screen and (max-width: 1200px) {
  .footer-content {
    width: auto;
  }

}
@media screen and (max-width: 1023px) {
    .footer-content {
        display: flex;
        flex-direction: column-reverse;
        width: 100%;
    }
}



@media screen and (max-width: 767px) {
  footer.footer-wrapper {
    padding: 48px 16px 48px;
  }
  .footer-navlist {
    display: block;
  }
  .footer-wrapper.onlyCopyRight {
    padding: 16px;
  }
}

/* ==========================================================================
   1024 适配的「更多」入口与面板（COM-26794，Figma「1024屏幕下 header适配方案」）
   卡片 token（--header-dropdown-*）与左侧下拉共用，定义在 MenuGroup/style.css
   ========================================================================== */

/* 触发器：无条件渲染，显隐只靠 CSS（见 More/index.tsx 注释）。
   选择器带 .header-rightside：.header-menu-rightItem 自带 display:flex，同优先级时会按打包顺序把这里盖掉 */
.header-rightside .header-more-trigger {
  display: none;
  position: relative;
  align-items: center;
  height: 100%;
}

@media screen and (min-width: 768px) and (max-width: 1200px) {
  .header-rightside .header-more-trigger {
    display: flex;
  }
}

/* >1200：有菜单被收起（header 根上的 data-menus-overflow，hooks/useMenusOverflow 写）才出现 */
@media screen and (min-width: 768px) {
  .header-container[data-menus-overflow] .header-rightside .header-more-trigger {
    display: flex;
  }
}

.header-more-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

/* 打开态：面板 portal 在 header 根下（More/index.tsx），不在触发器上写 class */
.header-container:has(> .header-more-layer) .header-rightside .header-more-icon {
  color: var(--color-PrimaryYellow);
}

/* 一次只展示一个弹层（COM-27281）：面板开着时压住顶栏其它下拉 —— 左侧菜单（含 TradFi 行情面板）、右侧 CSS 下拉，
   以及 portal 到 body 的右侧气泡（下载 / 通知 / 头像，bubbleClassName 都带 top-corner-traight）。
   鼠标移出面板 150ms 后面板收起（More/index.tsx），鼠标所在菜单的下拉随即按原有 :hover / 激活态显示。
   这些下拉都是 :hover 或极短延迟就出现的，不压的话面板收起前会叠在一起。!important：与各自的显示规则同优先级、打包顺序不定 */
.header-container:has(> .header-more-layer) .header-leftside .header-menu-subgrid,
.header-container:has(> .header-more-layer) .header-rightside .header-menu-subgrid,
.header-container:has(> .header-more-layer) .header-rightside .header-menu-sublist,
body:has(.header-more-layer) .top-corner-traight {
  display: none !important;
}

/* 面板层：挂在 header 根下，右缘对齐 header 内容区右缘（≥768 左右内边距 24；触发器是右侧最后一项） */
.header-more-layer {
  position: absolute;
  z-index: 1300;
  top: 100%;
  inset-inline-end: 24px;
}

/* 面板 */
.dark-color .header-more-panel,
.dark_classic-color .header-more-panel,
.dark_midnight-color .header-more-panel {
  --header-more-divider: var(--color-InputLine);
}

.header-more-panel {
  /* 面板内分隔线：深色下 --color-Line 与面板底（Popup）同色，看不见，改用 InputLine */
  --header-more-divider: var(--color-Line);
  position: relative;
  box-sizing: border-box;
  width: 350px;
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  background: var(--header-dropdown-bg);
  box-shadow: var(--header-dropdown-shadow);
  color: var(--color-PrimaryText);
  cursor: default;
}

.header-more-body {
  flex: 1 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
}

.header-more-section + .header-more-section {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--color-Line);
}

.header-more-row {
  display: flex;
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
  height: 48px;
  padding: 0 16px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-PrimaryText);
  cursor: pointer;
}

/* 设置行（下载 / 语言 / 币种 / 主题）：Figma 左 16 右 8、上下 12，行高 46 */
.header-more-setting {
  height: auto;
  padding: 12px 8px 12px 16px;
  font-weight: 500;
}

.header-more-row:hover {
  background: var(--header-dropdown-hover-bg);
}

.header-more-row svg {
  flex-shrink: 0;
  /* 图标组件不认 size，uikit 的 .bn-svg 会撑到 24（设置行因此高出 2px） */
  width: 20px !important;
  height: 20px !important;
}

/* 图标与文字的视觉对齐：几何居中时，BinancePlex 的字面比图标低约 1.1–1.25px（实测大写字母与图标笔画中心；
   Figma 用 Binance Nova，两者中心差 0）⇒ 图标下移 1px。用 top 不用 transform：下拉箭头展开时要 rotate。
   换字体后需重新量 */
.header-more-row svg,
.header-more-subitem-icon,
.header-more-subpage-head svg,
.header-more-panel_deposit .deposit-drawer-back-icon {
  position: relative;
  top: 1px;
}

.header-more-menu {
  grid-gap: 0;
  gap: 0;
  font-weight: 500;
}

.header-more-menu_open {
  color: var(--color-PrimaryYellow);
}

.header-more-chevron {
  width: 16px !important;
  height: 16px !important;
  transition: transform 0.2s;
}

.header-more-menu_open .header-more-chevron {
  transform: rotate(180deg);
}

.header-more-group-items {
  padding-bottom: 4px;
}

.header-more-subtitle {
  padding: 12px 16px 4px;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-SecondaryText);
}

.header-more-subitem {
  display: flex;
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-PrimaryText);
}

.header-more-subitem:hover {
  background: var(--header-dropdown-hover-bg);
}

.header-more-subitem-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  font-size: 20px;
}

.header-more-subitem .header-suffix {
  -webkit-margin-start: 0;
          margin-inline-start: 0;
}

/* 收起菜单区与下方设置区的分隔线挂在菜单区自己身上：菜单区被 CSS 隐藏时分隔线一起消失
   （写成 `section + section` 的话，前一个 display:none 时后一个仍会带上边线） */
.header-more-menus + .header-more-section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

@media screen and (min-width: 768px) and (max-width: 1200px) {
  .header-more-menus {
    /* 16 + 1px 线 + 11 = Figma 的 28px 分隔块（线在 16） */
    margin-bottom: 11px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--header-more-divider);
  }
}

/* 仅 768–1200：>1200 这些入口仍在顶栏 */
.header-more-pad-only {
  display: none;
}

@media screen and (min-width: 768px) and (max-width: 1200px) {
  .header-more-pad-only {
    display: block;
  }
}

/* 底部按钮区：分隔线在面板 8px 内边距以内（Figma 宽 333），线上下各 12（body 自带 8 + 这里 4） */
.header-more-footer {
  margin: 4px 8px 0;
  padding: 12px 0 8px;
  border-top: 1px solid var(--header-more-divider);
}

@media screen and (min-width: 768px) and (max-width: 1200px) {
  .header-more-footer {
    display: flex;
    grid-gap: 10px;
    gap: 10px;
  }
}

/* 按钮本身用 uikit Button（与顶栏 Log In / Sign Up 同一套 secondary / primary），这里只管等分 */
.header-more-btn {
  flex: 1 1;
  min-width: 0;
}

/* 深色下 uikit secondary 的底色与面板底（Popup）相同，按钮会「消失」；换成与 hover 同一档的 Placeholder */
.dark-color .header-more-btn_secondary,
.dark_classic-color .header-more-btn_secondary,
.dark_midnight-color .header-more-btn_secondary {
  background: var(--color-Placeholder);
}

/* 二级页（语言 / 币种），Figma「1024_已登录_多语言」5292:115240 /「1024_已登录_币种选择」5298:115753：
   面板定高 436；头部（返回 + 标题）与搜索框固定，只有列表在面板内滚动 */
.header-more-panel_sub {
  height: 436px;
}

.header-more-subpage {
  box-sizing: border-box;
  display: flex;
  flex: 1 1;
  flex-direction: column;
  min-height: 0;
  padding: 8px;
}

.header-more-subpage-head {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  cursor: pointer;
}

/* 图标组件不认 size 属性，uikit 的 .bn-svg 会撑到 24 */
.header-more-subpage-head svg {
  flex-shrink: 0;
  width: 20px !important;
  height: 20px !important;
}

/* SelectFlat 自带标题（与二级页头重复） */
.header-more-subpage .footer-select-options-group-flat > .typography-Body3 {
  display: none;
}

.header-more-subpage .footer-select-options-group-flat {
  display: flex;
  flex: 1 1;
  flex-direction: column;
  min-height: 0;
}

/* SelectFlat 的搜索框是 content-box 的 100% 宽，加上自身 padding 会撑出面板 */
.header-more-subpage .footer-select-options-group-flat .bn-textField {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 100%;
  margin: 0;
}

/* 列表：选择器多一层，压过 SelectFlat 的 mt-16 / mb-32 工具类（.common-widget-css_wrap .mb-32）。
   列表伸进面板右侧 8px 留白，滚动条贴着面板边（Figma 3px、DisableText、圆角），行与滚动条之间留 8 */
.header-more-subpage .footer-select-options-group-flat .footer-select-options-group-flat-options {
  flex: 1 1;
  min-height: 0;
  margin: 16px 0 0;
  -webkit-margin-end: -8px;
          margin-inline-end: -8px;
  -webkit-padding-end: 8px;
          padding-inline-end: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.header-more-subpage .footer-select-options-group-flat-options::-webkit-scrollbar {
  width: 3px;
}

.header-more-subpage .footer-select-options-group-flat-options::-webkit-scrollbar-thumb {
  border-radius: 20px;
  background: var(--color-DisableText);
}

.header-more-subpage .footer-select-options-group-flat-options::-webkit-scrollbar-track {
  background: transparent;
}

/* 只给不认 ::-webkit-scrollbar 的浏览器（Firefox）：Chrome 121+ 里标准属性会让上面的定制失效 */
@supports not selector(::-webkit-scrollbar) {
  .header-more-subpage .footer-select-options-group-flat-options {
    scrollbar-width: thin;
    scrollbar-color: var(--color-DisableText) transparent;
  }
}

/* 行：16/8 内边距、4px 圆角、行间无间距（语言两行 56 高、币种单行 38 高）；
   hover 换底色、文字不变色，当前项黄字（SelectFlat 默认 hover 也变黄，这里改掉） */
.header-more-subpage .footer-select-options {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.header-more-subpage .footer-select-options + .footer-select-options,
.header-more-subpage .footer-select-options + .footer-select-options.lng-choice-option-two-line {
  margin-top: 0;
}

.header-more-subpage .footer-select-options:hover {
  background: var(--header-dropdown-hover-bg);
  color: var(--color-PrimaryText);
}

.header-more-subpage .footer-select-options.active {
  color: var(--color-TextLink);
}

/* 入金二级页：DepositPanelContent 自带头部；抽屉内容区自带 0 24px 的 padding，面板里收窄到 Figma 的留白 */
.header-more-panel_deposit {
  height: 436px;
  padding: 8px;
  overflow-y: auto;
}

/* 返回头：Figma 32 高，箭头 20 + 8 + 标题（图标组件不认 size，.bn-svg 会撑到 24） */
.header-more-panel_deposit .deposit-drawer-back-icon {
  width: 20px !important;
  height: 20px !important;
}

.header-more-panel_deposit .deposit-drawer-contentitem {
  padding: 0;
}

/* ---- 入金二级页按 Figma「1024_已登录_入金」(5298:116387) 的面板样式；只作用于面板，抽屉（DepositGuideDrawer）不受影响 ---- */

/* 头部 ← Deposit / 法币选择：与列表间隔 16 */
.header-more-panel_deposit .deposit-drawer-header_back {
  padding: 0;
  margin-bottom: 16px;
}

/* 两组之间 24（沿用 .deposit-drawer-scrollable 的 gap-6）；组内：标题 → 列表 16，列表项之间无间隔 */
.header-more-panel_deposit .deposit-drawer-scrollable > .flex-col {
  grid-gap: 0;
  gap: 0;
}

.header-more-panel_deposit .deposit-drawer-scrollable .typography-subtitle6 {
  margin: 0 0 16px;
  -webkit-padding-start: 4px;
          padding-inline-start: 4px;
  font-size: 16px;
  line-height: 24px;
}

/* 列表项：无边框行，12px 内边距 + 4px 圆角，hover 换底色（抽屉里是 16px 圆角描边卡片） */
.header-more-panel_deposit .deposit-drawer-fundItem-wrap {
  padding: 12px;
  border: none;
  border-radius: 4px;
}

.header-more-panel_deposit .deposit-drawer-fundItem-wrap:hover {
  background: var(--header-dropdown-hover-bg);
}

.header-more-panel_deposit .deposit-drawer-fundItem {
  grid-gap: 8px;
  gap: 8px;
}

.header-more-panel_deposit .deposit-drawer-funditem_icon {
  width: 24px;
  height: 24px;
}

.header-more-panel_deposit .deposit-drawer-fundItem .typography-subtitle2 {
  font-size: 14px;
  line-height: 22px;
}

.header-more-panel_deposit .deposit-drawer-fundItem .typography-caption1 {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-SecondaryText);
}

/* Figma 面板里没有 Tutorial 链接与新手教程区块 */
.header-more-panel_deposit .deposit-drawer-primary-link,
.header-more-panel_deposit .beginner-deposit-tutorial {
  display: none;
}

/* ==========================================================================
   768–1200 顶栏：按设计稿把 Log In / Sign Up、Deposit 收进面板，钱包 / 消息留在顶栏。
   ⚠️ 全部用既有 id / 结构选择器，不给这些元素加新 class —— 它们在右侧快照里，
   改 className 会与旧快照 hydrate 属性不一致（React 18 生产环境不修正属性）
   ========================================================================== */
@media screen and (min-width: 768px) and (max-width: 1200px) {
  .header-rightside #toLoginPage,
  .header-rightside #toRegisterPage,
  .header-rightside .header-menu-item:has(.deposit-btn) {
    display: none !important;
  }

  /* 钱包 / 订单（loggedMenu.outerMenus）与站内信原本 ≤1200 隐藏 */
  .header-rightside > .header-dropdown-menu.rwd-1200-hide-flex,
  .header-rightside .header-menu-rightItem.rwd-1200-hide-flex:has(#header_menu_in-mail) {
    display: flex !important;
  }
}

/* 移动端抽屉（PickUpGroup）只留给 <768；768 起由「更多」面板接管。
   PickUpGroup 自带 rwd-1200-visi-flex（≤1200 display:flex !important），这里用更高优先级的 !important 压掉 */
@media screen and (min-width: 768px) {
  .header-rightside .header-menu-rightItem.header-menu-right-pickup {
    display: none !important;
  }
}

.header-logo {
  height: 24px;
  color: var(--color-PrimaryYellow);
}

.logo-link {
  cursor: pointer;
  font-size: 0;
  display: inline-flex;
  -webkit-padding-end: 12px;
          padding-inline-end: 12px;
}

.logo-link img {
  height: 64px;
}
.header-nav-subitem {
  display: flex;
  box-sizing: border-box;
  align-items: flex-start;
}

.header-nav-subview.between {
  justify-content: space-between;
}

.header-nav-subicon_warp {
  display: flex;
  justify-content: center;
  -webkit-margin-end: 8px;
          margin-inline-end: 8px;
  margin-top: 1px;
}

.header-nav-subicon_icon {
  width: 20px;
  height: 20px;
  font-size: 20px;
}

.header-nav-subitemtext {
  width: 240px;
}

.header-nav-subitem .header-nav-subarrow, .header-rightnav-subview .header-nav-subarrow {
  font-size: 18px;
  color: var(--color-PrimaryYellow);
  opacity: 0;
}

.header-nav-subitem:hover .header-nav-subarrow, .header-rightnav-subview:hover .header-nav-subarrow {
  display: block;
  -webkit-margin-start: 8px;
          margin-inline-start: 8px;
  opacity: 1;
  transition: all 0.3s ease-in-out;
}

.header-nav-subtitle {
  display: flex;
  color: var(--color-PrimaryText);
  align-items: center;
}

.header-nav-subtitle>.typography-Subtitle4 {
  margin: 0;
}

.header-nav-subdesc {
  color: var(--color-TertiaryText);
}

.header-rightnav-subitem {
  color: var(--color-PrimaryText);
  border-radius: 0px;
}

.header-rightnav-subview {
  -webkit-padding-start: 16px;
          padding-inline-start: 16px;
}

.header-rightnav-subview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  width: 100%;
  color: var(--color-PrimaryText);
}

.split-line-user-info{
  border-top: 1px solid var(--color-Line);
  margin: 12px 24px;
}


.header-rightnav-subitem.bottom-item {
  padding: 12px 24px;
  height: auto;
  cursor: pointer;
}

.header-rightnav-subitem.bottom-item .header-rightnav-subview{
  height: auto;
  padding: 0 12px;
}
.header-rightnav-subview:hover {
  background-color: var(--color-bg3);
}

.header-rightnav-subicon {
  width: 20px !important;
  height: 20px !important;
  font-size: 20px !important;
  -webkit-margin-end: 8px;
          margin-inline-end: 8px;
  color: var(--color-PrimaryText);
}

.header-account-icon {
  width: 24px;
  height: 24px;
  font-size: 24px;
}

.active.dropdownAndDraw-dropdown .header-account-icon {
  color: var(--color-PrimaryYellow);
}

/* .header-rightnav-subview:hover .header-rightnav-subicon {
  color: var(--color-PrimaryText);
} */

.header-nav-subtitle_text {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.header-drawer .header-nav-subtitle_text,
.dropdownAndDraw-m-content .header-nav-subtitle_text {
  font-size: 16px;
  line-height: 24px;
}
.header-suffix {
  box-sizing: border-box;
  margin: 0;
  -webkit-margin-start: 6px;
          margin-inline-start: 6px;
  min-width: 0px;
  display: flex;
  position: relative;
  border-radius: 4px;
  -webkit-padding-start: 4px;
          padding-inline-start: 4px;
  -webkit-padding-end: 4px;
          padding-inline-end: 4px;
  font-size: 12px;
  line-height: 16px;
  background-color: var(--color-Line);
  color: var(--color-PrimaryText);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  height: 16px;
  align-items: center
}

.header-suffix::before {
  content: "";
  position: absolute;
  width: 0px;
  height: 0px;
  inset-inline-start: -3px;
  top: 2px;
  border-width: 6px;
  border-inline-start-style: initial;
  border-inline-start-color: initial;
  border-top-style: solid;
  border-top-color: transparent;
  border-bottom-style: solid;
  border-bottom-color: transparent;
  border-inline-end-style: solid;
  border-inline-end-color: var(--color-Line);
}

.header-suffix.header-suffix_yellow {
  background-color: var(--color-BtnBg);
  color: var(--color-TextOnYellow);
}

.header-suffix.header-suffix_yellow::before {
  border-inline-end-color: var(--color-BtnBg);
}
.header-dropdown-menu {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-PrimaryText);
}

.header-dropdown-menu .dropdown-icon {
  width: 18px;
  height: 18px;
  color: var(--color-PrimaryText);
}

.header-dropdown-menu-avatar {
  border-radius: 50%;
}

.header-dropdown-menu .menus-icon {
  width: 24px;
  height: 24px;
}

.header-dropdown-menu:hover .header-right-dropdown-icon {
  color: var(--color-PrimaryYellow);
}

.header-menu-item {
  display: flex;
  align-items: center;
  height: 64px;
  position: relative;
  -webkit-padding-start: 12px;
          padding-inline-start: 12px;
  -webkit-padding-end: 12px;
          padding-inline-end: 12px;
}

.header-rightside .header-menu-item {
  -webkit-margin-start: 0px;
          margin-inline-start: 0px;
  padding: 0 8px;
  position: relative;
}

.header-dropdown-menu.header-menu-align_frist {
  position: static;
}

.header-dropdown-menu.header-menu-align_frist .header-menu-subgrid {
  inset-inline-start: 160px;
}

.header-dropdown-menu.header-menu-align_frist .header-menu-subgrid.header-menu-item_zh-CN {
  inset-inline-start: 100px;
}

.header-menu-item.center .header-menu-subgridsmall,
.header-menu-item.center .header-menu-subgrid,
.header-menu-item.center .header-menu-sublist {
  inset-inline-start: 50%;
  transform: translate(-50%, 0);
}

[dir='rtl'] .header-menu-item.center .header-menu-subgridsmall,
[dir='rtl'] .header-menu-item.center .header-menu-subgrid,
[dir='rtl'] .header-menu-item.center .header-menu-sublist {
  transform: translate(50%, 0);
}

.header-menu-subgrid,
.header-menu-sublist,
.header-menu-subgridsmall {
  display: none;
  position: absolute;
  z-index: 1300;
  top: 64px;
  inset-inline-start: 0;
  padding: 24px;
  border-radius: 0px 0px 8px 8px;
  background: #fff;
  background: var(--color-CardBg, #fff);
  box-shadow: 0px 8px 8px 0px rgba(24, 26, 32, 0.08);
}

.header-menu-item_icon {
  padding: 0 24px;
  -webkit-margin-start: 0px;
          margin-inline-start: 0px;
}

.header-menu-item_icon + .header-menu-item {
  -webkit-margin-start: 0;
          margin-inline-start: 0;
}

.header-menu-item_icon:hover {
  color: var(--color-PrimaryYellow);
}

.header-leftside .header-menu-item:not(.header-menu-item_icon) > .typography-Subtitle4:hover {
  color: var(--color-TextLink);
}

.header-menu-item:hover .header-menu-subgrid,
.header-menu-item.header-menu-item-active .header-menu-subgrid {
  display: grid;
  grid-gap: 24px;
  box-sizing: border-box;
}

.header-menu-item .header-menu-item_hightLight {
  line-height: 28px;
  padding: 0px 8px;
  border-radius: 4px;
  background-color: var(--color-BadgeBg);
  color: var(--color-TextLink);
}

.header-menu-subgrid-1 {
  grid-template-columns: repeat(1, 1fr);
}

.header-menu-subgrid-2 {
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 24px;
  gap: 24px;
}

.header-menu-subgrid-3 {
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 24px;
  gap: 24px;
}

.header-menu-subgrid-group {
  list-style: none;
}

.header-menu-subgrid-group-li + .header-menu-subgrid-group-li {
  margin-top: 24px;
}

h4.header-menu-subgrid-group-li {
  margin-bottom: -8px;
}

.header-menu-item:hover .header-menu-subgridsmall,
.header-menu-item.header-menu-item-active .header-menu-subgridsmall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 16px;
  box-sizing: border-box;
}

.header-menu-item a {
  color: var(--color-PrimaryText);
}

.header-menu-item_dropdown-icon {
  font-size: 16px !important;
}

.header-menu-item:hover .header-menu-item_dropdown-icon {
  transform: rotate(180deg);
}

.header-menu-item:hover .header-menu-sublist,
.header-menu-item.header-menu-item-active .header-menu-sublist {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-gap: 16px;
  box-sizing: border-box;
}

.header-rightside .header-menu-item:hover .header-menu-sublist {
  grid-gap: 0;
}

/* .header-menu-link {
  color: var(--color-PrimaryText);
  text-decoration: none;
} */

.header-menu-item_view {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--color-PrimaryText);
  text-decoration: none;
  height: 100%;
}

.header-menu-item:hover .dropdown-icon {
  transform: rotate(180deg);
}

.header-rightside .header-menu-sublist {
  padding: 0px;
  min-width: 220px;
  border-radius: 0 0 8px 8px;
}

.header-rightside .header-menu-subgrid,
.header-rightside .header-menu-sublist,
.header-rightside .header-menu-subgridsmall {
  right: 0;
  left: auto;
  left: initial;
}

.deposit-icon {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.header-nav-bar {
  display: flex;
  height: 64px;
  justify-content: flex-end;
  align-items: center;
  -webkit-padding-end: 24px;
          padding-inline-end: 24px;
  color: var(--color-PrimaryText);
}

.header-nav-bar .close-btn-size {
  font-size: 24px;
}

.bn-drawer .header-nav-itemview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 24px;
  color: var(--color-PrimaryText);
}

.bn-drawer .header-nav-itemnosub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 24px;
  color: var(--color-PrimaryText);
  cursor: pointer;
}

.bn-drawer .header-rightnav-subview {
  height: 56px;
  padding: 0 24px;
  color: var(--color-PrimaryText);
}

.bn-drawer .header-nav-itemicon {
  width: 24px;
  height: 24px;
  -webkit-margin-end: 8px;
          margin-inline-end: 8px;
  color: var(--color-IconNormal);
}

.header-nav-collapse-view {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.header-nav-subgroup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  -webkit-padding-start: 64px;
          padding-inline-start: 64px;
}

.header-nav-subgroup-item .typography-Body3 {
  color: var(--color-PrimaryText);
}

.header-nav-subgroup-item:hover {
  background: var(--color-bg3);
}

.header-nav-subgroup-item.nohover:hover {
  background: none;
}

.header-nav-subgroup {
  transition: all 0.3s;
  overflow: hidden;
}

.header-rightside .bn-svg.header-nav-collapseicon {
  width: 16px;
  height: 16px;
  font-size: 16px;
  color: var(--color-IconNormal);
  transition: all 0.3s;
}

.header-nav-collapseicon.expand {
  transform: rotate(180deg);
}

.header-nav-itemnosub:hover {
  background: var(--color-bg3);
}

.header-nav-itemnosub.no-hover-color:hover {
  background: transparent;
}

.header-rightnav-subview:hover .header-nav-collapseicon,
.header-rightnav-subview:hover .header-nav-itemicon,
.header-nav-itemnosub:hover .header-nav-itemicon {
  color: var(--color-PrimaryText);
}

.bn-drawer .header-nav-scroll {
  max-height: calc(100vh - 84px);
  overflow: auto;
}

.header-userinfo-inmail-num {
  min-width: 16px;
  padding: 0 2px;
  height: 16px;
  line-height: 16px;
  font-size: 12px;
  background-color: var(--color-BtnBg);
  border-radius: 100%;
  color: var(--color-TextOnYellow);
  text-align: center;
}

.bn-button.deposit-btn.data-size-small {
  grid-gap: 4px;
  gap: 4px;
  max-width: 160px; /* desktop */
}

@media screen and (max-width: 768px) {
  .bn-button.deposit-btn.data-size-small {
    max-width: 100px;
  }
}

.deposit-btn-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* ==========================================================================
   左侧顶层下拉的新视觉规范（COM-26794 / PRD「Homepage Header Improvement」1b，
   Figma 8/24 Web header 优化 Section 1：node 4537:6864）。
   只作用于 .header-leftside：右侧用户菜单（钱包 / 订单等）也用 .header-menu-subgrid，保持原样。
   ========================================================================== */
/* 浅色 / 深色两套设计 token 不同（不只是同一变量换值），用一组局部变量承接，
   下拉、TradFi 行情面板（MarketPanelMenu/style.css）与「更多」面板（More/style.css，portal 在 .header-more-layer）共用：
   - 浅色（Figma Light）：BasicBg + 1px rgba(0,0,0,.08) 描边 + 0 8px 4px 投影，hover 用 Input
   - 深色（Figma Classic，Web_Dark/Shadow02）：Popup 底、无描边，两层外投影 + 2px 白色内阴影勾边，hover 用 Placeholder
     ⚠️ 深色下 BasicBg 就是页面底色（#181a20），套浅色写法会变成「黑底方框 + 灰边」
   描边统一用 inset 阴影画：与 Figma 的内描边一致、不占盒子尺寸（border 会让宽高各多 2px）。 */
.header-leftside,
.header-rightside,
.header-more-layer {
  --header-dropdown-bg: var(--color-BasicBg, #fff);
  --header-dropdown-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.08), 0px 8px 4px 0px rgba(24, 26, 32, 0.08);
  --header-dropdown-hover-bg: var(--color-Input);
  /* 容器内部的分隔线（TradFi 面板左右两栏之间） */
  --header-dropdown-divider: 1px solid rgba(0, 0, 0, 0.08);
}

.dark-color .header-leftside,
.dark_classic-color .header-leftside,
.dark_midnight-color .header-leftside,
.dark-color .header-rightside,
.dark_classic-color .header-rightside,
.dark_midnight-color .header-rightside,
.dark-color .header-more-layer,
.dark_classic-color .header-more-layer,
.dark_midnight-color .header-more-layer {
  --header-dropdown-bg: var(--color-Popup);
  --header-dropdown-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.2), -2px 0px 14px 0px rgba(0, 0, 0, 0.4),
    inset 0px 0px 2px 0px rgba(255, 255, 255, 0.2);
  --header-dropdown-hover-bg: var(--color-Placeholder);
  --header-dropdown-divider: none;
}

.header-leftside .header-menu-subgrid {
  padding: 8px;
  border-radius: 8px;
  background: var(--header-dropdown-bg);
  box-shadow: var(--header-dropdown-shadow);
}

/* 列之间、item 之间不再留白：间距全部由 item 自身 padding 提供 */
.header-leftside .header-menu-item:hover .header-menu-subgrid,
.header-leftside .header-menu-item.header-menu-item-active .header-menu-subgrid,
.header-leftside .header-menu-subgrid-2,
.header-leftside .header-menu-subgrid-3 {
  grid-gap: 0;
  grid-gap: 0;
  gap: 0;
}

/* 第一个菜单：下拉左边缘与菜单文字对齐（.header-menu-item 左右各 12px padding）。class 在下拉层上，见 MenuGroupGrid */
.header-leftside .header-menu-item .header-menu-subgrid.header-menu-subgrid_align-label {
  inset-inline-start: 12px;
  transform: none;
}

.header-leftside .header-menu-subgrid-group-li + .header-menu-subgrid-group-li {
  margin-top: 0;
}

/* 分组小标题：14px medium 次要色；第一个 8px 内边距，后续分组上方多留 8px */
.header-leftside .header-menu-subgrid-subtitle {
  padding: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  color: var(--color-SecondaryText);
}

.header-leftside .header-menu-subgrid-group-li + .header-menu-subgrid-subtitle {
  padding-top: 16px;
}

/* item：12px 16px 内边距 + 4px 圆角，hover 换底色（取代原来的黄色箭头） */
.header-leftside .header-nav-subitem {
  align-items: center;
  padding: 12px 16px;
  border-radius: 4px;
}

.header-leftside .header-nav-subitem:hover {
  background: var(--header-dropdown-hover-bg);
}

/* 与 MenuItem/style.css 里 `.header-nav-subitem:hover .header-nav-subarrow` 同优先级时取决于打包顺序，这里多带 :hover 压过它 */
.header-leftside .header-nav-subitem .header-nav-subarrow,
.header-leftside .header-nav-subitem:hover .header-nav-subarrow {
  display: none;
}

.header-leftside .header-nav-subicon_warp {
  margin-top: 0;
  -webkit-margin-end: 8px;
          margin-inline-end: 8px;
}

.header-leftside .header-nav-subicon_icon {
  width: 24px;
  height: 24px;
  font-size: 24px;
}

.header-leftside .header-nav-subitemtext {
  width: 240px;
}

/* 无描述的 item（AI & More 两列）：文字区 160px，行高 48px */
.header-leftside .header-nav-subitem_nodesc .header-nav-subitemtext {
  width: 160px;
}

.header-leftside .header-nav-subtitle > .typography-Subtitle4 {
  font-size: 14px;
  line-height: 22px;
}

/* 描述：12px 次要色，最多两行（PRD 1b #2：超长时省略号兜底） */
.header-leftside .header-nav-subdesc {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-SecondaryText);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 极端场景：子项过多时屏内滚动（Figma「极端场景补充 · 超过 10 个，屏内滚动」4633:9798，COM-26794）----------
   下拉从顶栏下方开始、到视口底部留 24（64 + 24）；超出部分在下拉内部滚动，3px 圆角细滚动条。
   TradFi 行情面板（.header-menu-marketpanel）只让左列滚动，右侧行情区高度由自身决定 */
.header-leftside .header-menu-subgrid:not(.header-menu-marketpanel),
.header-leftside .header-menu-marketpanel .header-marketpanel-left {
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.header-leftside .header-menu-subgrid:not(.header-menu-marketpanel)::-webkit-scrollbar,
.header-leftside .header-menu-marketpanel .header-marketpanel-left::-webkit-scrollbar {
  width: 3px;
}

.header-leftside .header-menu-subgrid:not(.header-menu-marketpanel)::-webkit-scrollbar-thumb,
.header-leftside .header-menu-marketpanel .header-marketpanel-left::-webkit-scrollbar-thumb {
  border-radius: 20px;
  background: var(--color-DisableText);
}

.header-leftside .header-menu-subgrid:not(.header-menu-marketpanel)::-webkit-scrollbar-track,
.header-leftside .header-menu-marketpanel .header-marketpanel-left::-webkit-scrollbar-track {
  background: transparent;
}

/* 只给不认 ::-webkit-scrollbar 的浏览器（Firefox）：Chrome 121+ 里标准属性会让上面的定制失效 */
@supports not selector(::-webkit-scrollbar) {
  .header-leftside .header-menu-subgrid:not(.header-menu-marketpanel),
  .header-leftside .header-menu-marketpanel .header-marketpanel-left {
    scrollbar-width: thin;
    scrollbar-color: var(--color-DisableText) transparent;
  }
}

/* ==========================================================================
   右侧下拉的新视觉（Figma「其它优化」4712:99547，COM-26794）：
   头像 4712:99373 / 资产 4715:136829 / 通知 4715:137004 / 语言币种 4722:138542 / 下载 4724:143485。
   与左侧下拉同一套卡片：8px 内边距、四角 8px 圆角、浅色描边 + 投影 / 深色 Popup 底；
   行 12px 16px 内边距（46 高）、4px 圆角、hover 换底色，不再有黄色箭头。
   ⚠️ 头像 / 通知 / 语言币种 / 下载是 uikit Dropdown，portal 到 body 下（不在 .header-rightside 里），
   主题 class（useTheme 的 light / dark / dark_classic / dark_midnight）挂在气泡 .top-corner-traight 自身上；资产下拉是 .header-rightside 里的普通节点。
   只认这四种内容（:has），搜索等其它用 .top-corner-traight 的气泡保持原样；
   <1200 走 Drawer（.dropdownAndDraw-m-content，没有 .top-corner-traight），不受影响。
   ========================================================================== */
.top-corner-traight {
  --header-dropdown-bg: var(--color-BasicBg, #fff);
  --header-dropdown-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.08), 0px 8px 4px 0px rgba(24, 26, 32, 0.08);
  --header-dropdown-hover-bg: var(--color-Input);
  --header-dropdown-line: var(--color-Line);
}

.top-corner-traight.dark,
.top-corner-traight.dark_classic,
.top-corner-traight.dark_midnight {
  --header-dropdown-bg: var(--color-Popup);
  --header-dropdown-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.2), -2px 0px 14px 0px rgba(0, 0, 0, 0.4),
    inset 0px 0px 2px 0px rgba(255, 255, 255, 0.2);
  --header-dropdown-hover-bg: var(--color-Placeholder);
  /* 深色下 Line 与 Popup 同色（#333b47），分隔线改用 InputLine */
  --header-dropdown-line: var(--color-InputLine);
}

.header-rightside {
  --header-dropdown-line: var(--color-Line);
}

.dark-color .header-rightside,
.dark_classic-color .header-rightside,
.dark_midnight-color .header-rightside {
  --header-dropdown-line: var(--color-InputLine);
}

/* 多一层 .bn-bubble-content 选择器压过 common/style.css 的 `.top-corner-traight>.bn-bubble-content { border-radius: 0 0 8 8 !important }` */
.top-corner-traight
  > .bn-bubble-content:has(> .header-userinfo-group, > .header-inmall, > .header-lngCur-content, > .QRCode-wrap) {
  border-radius: 8px !important;
  background: var(--header-dropdown-bg);
  box-shadow: var(--header-dropdown-shadow);
}

/* 资产下拉 */
.header-rightside .header-menu-sublist {
  min-width: 228px;
  padding: 8px;
  border-radius: 8px;
  background: var(--header-dropdown-bg);
  box-shadow: var(--header-dropdown-shadow);
}

/* 行：资产下拉 + 头像下拉（含退出登录） */
.header-rightside .header-menu-sublist .header-rightnav-subview,
.top-corner-traight .header-userinfo-group .header-rightnav-subview {
  box-sizing: border-box;
  height: auto;
  padding: 12px 16px;
  border-radius: 4px;
}

.top-corner-traight .header-userinfo-group .header-rightnav-subview {
  -webkit-padding-end: 8px;
          padding-inline-end: 8px;
}

.header-rightside .header-menu-sublist .header-rightnav-subview:hover,
.top-corner-traight .header-userinfo-group .header-rightnav-subview:hover {
  background-color: var(--header-dropdown-hover-bg);
}

.header-rightside .header-menu-sublist .header-rightnav-subitem.height-48,
.top-corner-traight .header-userinfo-group .header-rightnav-subitem.height-48 {
  height: auto;
}

.header-rightside .header-menu-sublist .header-nav-subtitle_text,
.top-corner-traight .header-userinfo-group .header-nav-subtitle_text {
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.header-rightside .header-menu-sublist .header-nav-subarrow,
.top-corner-traight .header-userinfo-group .header-nav-subarrow {
  display: none;
}

/* ---------- 下拉容器：左列子菜单 + 右侧行情面板（Figma 二级交易菜单 709×468） ---------- */
.header-menu-marketpanel {
  display: none;
  position: absolute;
  z-index: 1300;
  top: 64px;
  inset-inline-start: 0;
  /* 与左侧其它下拉同一套卡片规范（MenuGroup/style.css 末尾） */
  border-radius: 8px;
  background: var(--header-dropdown-bg);
  box-shadow: var(--header-dropdown-shadow);
  cursor: default;
}

.header-menu-item.center .header-menu-marketpanel {
  inset-inline-start: 50%;
  transform: translate(-50%, 0);
}

[dir='rtl'] .header-menu-item.center .header-menu-marketpanel {
  transform: translate(50%, 0);
}

.header-menu-item:hover .header-menu-marketpanel,
.header-menu-item.header-menu-item-active .header-menu-marketpanel {
  display: flex;
  align-items: stretch;
}

/* ---------- 左列 ---------- */
.header-marketpanel-left {
  box-sizing: border-box;
  width: 334px;
  padding: 8px;
  display: flex;
  flex-direction: column;
}

.header-marketpanel-subtitle {
  padding: 12px 16px 4px;
  color: var(--color-TertiaryText);
}

.header-marketpanel-subitem {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 4px;
  color: var(--color-PrimaryText);
}

.header-marketpanel-subitem:hover,
.header-marketpanel-subitem-active {
  background: var(--header-dropdown-hover-bg);
}

.header-marketpanel-subitem .header-nav-subicon_warp {
  margin-top: 0;
}

.header-marketpanel-subitem-text {
  flex: 1 1;
  min-width: 0;
}

.header-marketpanel-subitem-text .header-nav-subdesc {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.header-marketpanel-subitem-arrow {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  /* Figma：文字区 240 紧接箭头，item = 16 + 24 + 8 + 240 + 14 + 16 = 318 */
  color: var(--color-IconNormal);
}

[dir='rtl'] .header-marketpanel-subitem-arrow {
  transform: scaleX(-1);
}

/* ---------- 右侧面板 ---------- */
.header-marketpanel-right {
  box-sizing: border-box;
  width: 376px;
  /* Figma 面板高 477（含 8px padding）：5 行行情下方留有余量，不随行数收缩 */
  min-height: 477px;
  padding: 8px;
  -webkit-border-start: var(--header-dropdown-divider);
          border-inline-start: var(--header-dropdown-divider);
}

.header-marketpanel-tabs {
  display: flex;
  /* Figma：上方 4px 留白 + 36px tab 行（共 40），不是把 4px 算进 36 里 */
  box-sizing: content-box;
  height: 36px;
  padding-top: 4px;
  -webkit-padding-start: 8px;
          padding-inline-start: 8px;
}

.header-marketpanel-tab {
  display: flex;
  align-items: center;
  height: 35px;
  margin: 0 8px;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  white-space: nowrap;
  color: var(--color-TertiaryText);
  cursor: pointer;
}

.header-marketpanel-tab:hover {
  color: var(--color-PrimaryText);
}

.header-marketpanel-tab-active {
  color: var(--color-PrimaryText);
  border-bottom-color: var(--color-PrimaryYellow);
}

.header-marketpanel-search {
  display: flex;
  align-items: center;
  height: 40px;
  margin: 12px 16px 0;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--color-Input);
}

.header-marketpanel-search-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  -webkit-margin-end: 8px;
          margin-inline-end: 8px;
  color: var(--color-IconNormal);
}

.header-marketpanel-search input {
  flex: 1 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-PrimaryText);
}

.header-marketpanel-search input::placeholder {
  color: var(--color-IconNormal);
}

.header-marketpanel-thead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 24px;
  margin-top: 12px;
  padding: 0 16px 0 15px;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-SecondaryText);
}

/* 列表固定最多 5 行（行高 64）：默认 Top 5 正好放下；搜索结果 / 收藏超出时在列表内滚动，
   面板高度与搜索前一致（COM-27282 设计走查：原来 384 = 6 行，一搜索面板就长高一行） */
.header-marketpanel-list {
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.header-marketpanel-row {
  display: flex;
  align-items: center;
  grid-gap: 4px;
  gap: 4px;
  padding: 12px 16px 12px 12px;
  border-radius: 4px;
  color: var(--color-PrimaryText);
}

.header-marketpanel-row:hover {
  background: var(--header-dropdown-hover-bg);
}

.header-marketpanel-row-main {
  display: flex;
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
  flex: 1 1;
  min-width: 0;
}

.header-marketpanel-row-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  object-fit: cover;
}

.header-marketpanel-row-icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  background: var(--color-Input);
  color: var(--color-SecondaryText);
}

.header-marketpanel-row-info {
  min-width: 0;
}

.header-marketpanel-row-title {
  display: flex;
  align-items: center;
  grid-gap: 4px;
  gap: 4px;
  white-space: nowrap;
}

.header-marketpanel-row-symbol {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.header-marketpanel-row-quote {
  font-size: 12px;
  line-height: 16px;
}

.header-marketpanel-row-badge {
  display: flex;
  align-items: center;
  height: 16px;
  padding: 0 4px;
  border-radius: 2px;
  font-size: 10px;
  background: var(--color-Line);
  background: var(--color-LineAlpha, var(--color-Line));
}

.header-marketpanel-row-sub {
  display: flex;
  grid-gap: 2px;
  gap: 2px;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  color: var(--color-SecondaryText);
}

.header-marketpanel-row-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-marketpanel-row-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  white-space: nowrap;
}

.header-marketpanel-row-last {
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.header-marketpanel-row-change {
  font-size: 12px;
  line-height: 18px;
}

.header-marketpanel-empty {
  padding: 48px 16px;
  text-align: center;
  font-size: 14px;
  line-height: 22px;
  color: var(--color-TertiaryText);
}

/* 面板根节点同时带 .header-menu-subgrid（给 SW 快照归一化剥离用，见 index.tsx）。
   把 subgrid 系列规则在这里压回面板自己的布局：flex 两栏、无外层 padding */
.header-leftside .header-menu-subgrid.header-menu-marketpanel {
  padding: 0;
}

.header-menu-item:hover .header-menu-subgrid.header-menu-marketpanel,
.header-menu-item.header-menu-item-active .header-menu-subgrid.header-menu-marketpanel {
  display: flex;
  align-items: stretch;
}

.menu-aim-enabled .header-menu-item:not(.header-menu-item-active):hover .header-menu-subgrid {
  display: none;
}
.menu-aim-enabled .header-menu-item:not(.header-menu-item-active):hover .header-menu-sublist {
  display: none;
}
.menu-aim-enabled .header-menu-item:not(.header-menu-item-active):hover .header-menu-subgridsmall {
  display: none;
}

#header_menu_search {
  font-size: 0;
}
#header_menu_search .search-icon {
  font-size: 24px;
  width: 24px;
  height: 24px;
}

.hover-pointer {
  cursor: pointer;
}

.header-search-input .bn-textField-input {
  font-size: 14px;
}

.right-sub-drawer {
  z-index: 10000 !important;
}

.explore-content .search-input-icon {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.header-global-js-top-alert {
  color: var(--color-PrimaryText);
  background-color: #FEF1F2;
  transition: all 1s;
}

.header-global-js-top-alert__inner {
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 24px;
  max-width: 1248px;
}
.header-container {
  max-width: 100vw;
  height: 64px;
  position: relative;
  display: flex;
  padding: 0 24px;
  justify-content: space-between;
  background-color: var(--color-BasicBg);
}

.header-menu-rightItem {
  display: flex;
  position: relative;
  padding: 20px 8px;
  align-items: center;
}

.header-menu-rightItem.header-menu-right-pickup {
  padding: 20px 0 20px 8px;
}

.header-leftside {
  display: flex;
  align-items: center;
}

.header-rightside {
  display: flex;
}

.header-rightside .bn-svg {
  width: 24px;
  height: 24px;
  font-size: 24px;
  cursor: pointer;
}

.header-menu-rightItem:hover {
  color: var(--color-TextLink);
}

#toRegisterPage {
  padding-left: 0;
}

.header-rightside .header-menu-rightItem:hover .hover-color {
  color: var(--color-PrimaryYellow);
}

.right-sub-drawer.bn-drawer>.bn-drawer-wrap.data-dir-right {
  max-width: 100%;
}

.height-100 {
  height: 100%;
}

.height-48 {
  height: 48px;
}

.no-border-radius.bn-drawer>.bn-drawer-wrap.data-dir-right {
  border-radius: 0;
}

.rwd-1440-visi-flex,
.rwd-1280-visi-flex,
.rwd-1200-visi-block,
.rwd-1200-visi-flex,
.rwd-1024-visi-block,
.rwd-768-show,
.rwd-768-flex {
  display: none !important;
}

.header-rightside .bn-svg.register-gift-icon {
  font-size: 16px;
  width: 16px;
  height: 16px;
  color: var(--color-TextOnYellow) !important;
}

.bn-button.data-size-small.header-menu-registerbtn {
  grid-gap: 4px;
  gap: 4px;
  font-weight: 500;
}

@media screen and (max-width: 1440px) {
  .rwd-1440-hide-flex {
    display: none;
  }

  .rwd-1440-visi-flex {
    display: flex;
  }
}

@media screen and (max-width: 1023px) {
  .rwd-1024-hide-flex {
    display: none !important;
  }

  .rwd-1024-visi-block {
    display: block !important;
  }

  .rwd-1024-visi-flex {
    display: flex !important;
  }
}

@media screen and (max-width: 1200px) {
  .rwd-1200-hide-flex {
    display: none !important;
  }

  .rwd-1200-visi-block {
    display: block !important;
  }

  .rwd-1200-visi-flex {
    display: flex !important;
  }
}

@media screen and (max-width: 767px) {
  .header-container {
    padding: 0 16px;
  }

  .rwd-768-hide {
    display: none !important;
  }

  .rwd-768-show {
    display: block !important;
  }

  .rwd-768-flex {
    display: flex !important;
  }
}
/* ==========================================================================
   1024 适配（COM-26794，Figma「1024屏幕下 header适配方案」）
   顶层菜单不换行、不压缩；放不下的收进右侧「更多」面板（≥768，hooks/useMenusOverflow 按实际宽度判断）
   ========================================================================== */
.header-leftside > .header-menu-item {
  flex-shrink: 0;
}

.header-leftside .header-menu-item_view {
  white-space: nowrap;
}

/* 768–1023：左侧菜单原本被 rwd-1024-hide-flex 整排隐藏（走移动端抽屉），pad 方案下改为放得下几个显示几个。
   用 CSS 覆盖而不是改 LeftMenuGroup 的 className —— 触发器在 SW 快照里（快照 key 不含组件版本，改 class 会 hydrate 不一致） */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .header-leftside > .header-menu-item.rwd-1024-hide-flex {
    display: flex !important;
  }
}

/* 边界：右侧区域宽度 + 24px 固定，左侧占满剩下的空间（basis 0 + min-width 0：宽度只由兄弟决定、不随菜单内容变，
   useMenusOverflow 直接拿它的宽度当可用空间） */
@media screen and (min-width: 768px) {
  .header-leftside {
    flex: 1 1;
    min-width: 0;
    -webkit-margin-end: 24px;
            margin-inline-end: 24px;
  }

  .header-rightside {
    flex-shrink: 0;
  }

  /* 首帧（SSR / SW 快照 → 首次测量前）：放不下的整项换到第二行、被 64px 高度裁掉 —— 不截断、不估算，
     与 useMenusOverflow 用同一条边界，接管时菜单不变。接管后必须去掉裁切，否则下拉会被裁掉 */
  .header-container:not([data-menus-measured]) .header-leftside {
    flex-wrap: wrap;
    height: 64px;
    overflow: hidden;
  }

  /* 接管后按测量结果隐藏（data 属性不用 class：className 归 React 管，hover 时会被整串重写）；
     快照里带来的旧 data-overflow 在接管前不生效 */
  .header-container[data-menus-measured] .header-leftside > .header-menu-item[data-overflow] {
    display: none !important;
  }
}

.richtext-image-drawer.bn-drawer .bn-drawer-wrap{transform:none !important;background-color:transparent}.richtext-image-drawer img{max-width:90vw !important;max-height:80vh !important}@media(max-width: 767px){.richtext-image-drawer img{max-width:100% !important}}
.multicode{background-color:var(--color-bg1);border-radius:8px;border:1px solid var(--color-line);overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.05)}.multicode-header{background-color:var(--color-bg2);padding:.75rem 1rem;display:flex;justify-content:space-between;align-items:center}.multicode-title{color:var(--color-textPrimary);font-size:14px;font-weight:600}.multicode-controls{display:flex;grid-gap:8px;gap:8px}.multicode-select{background-color:var(--color-bg1);color:var(--color-textPrimary);border:1px solid var(--color-line);min-width:120px;padding-left:5px;border-radius:4px}.multicode-pre{margin:0;padding:16px;background-color:var(--color-bg1);overflow-x:auto;font-family:SFMono-Regular,Consolas,Menlo,monospace;border-top:1px solid var(--color-line);font-size:14px;white-space:pre;color:var(--color-textPrimary)}.multicode-copy{background-color:var(--color-primary);border-radius:4px;border:none}code[data-theme=light] pre code.hljs{display:block;overflow-x:auto;padding:1em}code[data-theme=light] code.hljs{padding:3px 5px}code[data-theme=light] .hljs{color:#383a42;background:#fafafa}code[data-theme=light] .hljs-comment,code[data-theme=light] .hljs-quote{color:#a0a1a7;font-style:italic}code[data-theme=light] .hljs-doctag,code[data-theme=light] .hljs-keyword,code[data-theme=light] .hljs-formula{color:#a626a4}code[data-theme=light] .hljs-section,code[data-theme=light] .hljs-name,code[data-theme=light] .hljs-selector-tag,code[data-theme=light] .hljs-deletion,code[data-theme=light] .hljs-subst{color:#e45649}code[data-theme=light] .hljs-literal{color:#0184bb}code[data-theme=light] .hljs-string,code[data-theme=light] .hljs-regexp,code[data-theme=light] .hljs-addition,code[data-theme=light] .hljs-attribute,code[data-theme=light] .hljs-meta .hljs-string{color:#50a14f}code[data-theme=light] .hljs-attr,code[data-theme=light] .hljs-variable,code[data-theme=light] .hljs-template-variable,code[data-theme=light] .hljs-type,code[data-theme=light] .hljs-selector-class,code[data-theme=light] .hljs-selector-attr,code[data-theme=light] .hljs-selector-pseudo,code[data-theme=light] .hljs-number{color:#986801}code[data-theme=light] .hljs-symbol,code[data-theme=light] .hljs-bullet,code[data-theme=light] .hljs-link,code[data-theme=light] .hljs-meta,code[data-theme=light] .hljs-selector-id,code[data-theme=light] .hljs-title{color:#4078f2}code[data-theme=light] .hljs-built_in,code[data-theme=light] .hljs-title.class_,code[data-theme=light] .hljs-class .hljs-title{color:#c18401}code[data-theme=light] .hljs-emphasis{font-style:italic}code[data-theme=light] .hljs-strong{font-weight:bold}code[data-theme=light] .hljs-link{text-decoration:underline}code[data-theme=dark] pre code.hljs{display:block;overflow-x:auto;padding:1em}code[data-theme=dark] code.hljs{padding:3px 5px}code[data-theme=dark] .hljs{color:#abb2bf;background:#282c34}code[data-theme=dark] .hljs-comment,code[data-theme=dark] .hljs-quote{color:#5c6370;font-style:italic}code[data-theme=dark] .hljs-doctag,code[data-theme=dark] .hljs-keyword,code[data-theme=dark] .hljs-formula{color:#c678dd}code[data-theme=dark] .hljs-section,code[data-theme=dark] .hljs-name,code[data-theme=dark] .hljs-selector-tag,code[data-theme=dark] .hljs-deletion,code[data-theme=dark] .hljs-subst{color:#e06c75}code[data-theme=dark] .hljs-literal{color:#56b6c2}code[data-theme=dark] .hljs-string,code[data-theme=dark] .hljs-regexp,code[data-theme=dark] .hljs-addition,code[data-theme=dark] .hljs-attribute,code[data-theme=dark] .hljs-meta .hljs-string{color:#98c379}code[data-theme=dark] .hljs-attr,code[data-theme=dark] .hljs-variable,code[data-theme=dark] .hljs-template-variable,code[data-theme=dark] .hljs-type,code[data-theme=dark] .hljs-selector-class,code[data-theme=dark] .hljs-selector-attr,code[data-theme=dark] .hljs-selector-pseudo,code[data-theme=dark] .hljs-number{color:#d19a66}code[data-theme=dark] .hljs-symbol,code[data-theme=dark] .hljs-bullet,code[data-theme=dark] .hljs-link,code[data-theme=dark] .hljs-meta,code[data-theme=dark] .hljs-selector-id,code[data-theme=dark] .hljs-title{color:#61aeee}code[data-theme=dark] .hljs-built_in,code[data-theme=dark] .hljs-title.class_,code[data-theme=dark] .hljs-class .hljs-title{color:#e6c07b}code[data-theme=dark] .hljs-emphasis{font-style:italic}code[data-theme=dark] .hljs-strong{font-weight:bold}code[data-theme=dark] .hljs-link{text-decoration:underline}
.download-icon-pc{color:var(--color-textPrimary);font-size:40px}
.kline-container {
  position: relative;
  height: 100%;
  flex: 1 1;
  z-index: 0;
}
.pointer:hover {
  cursor: pointer;
}
.kline-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  line-height: 1;
  z-index: 0;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.kline-wrap .kline-draw-menu-divider {
  margin: 4px 0;
  border-top: 1px solid #ddd;
}
.kline-wrap .kline-wrap-mask {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 201;
}
.kline-wrap .kline-title-wrap {
  color: #76808F;
}
.kline-wrap .kline-title-wrap .default-label-box {
  font-weight: 400;
  font-size: 12px;
  color: var(--color-TertiaryText);
}
.kline-wrap .indicator-title-toolbox svg path {
  fill: #848E9C;
  fill-opacity: 0.8;
}
.kline-wrap .kline-title-wrap .indicator-title-toolbox svg:hover > path {
  fill: #848E9C;
}
.kline-title-wrap .tooltip-wrap {
  position: absolute;
  z-index: 10;
}
.tooltip-wrap.up {
  left: 50%;
  top: -6px;
  transform: translate(-50%, -100%);
}
.tooltip-wrap.right {
  left: 100%;
  top: -6px;
  transform: translate(0%, 0%);
}
.kline-title-wrap .tooltip-arrow {
  position: absolute;
  width: 6px;
  height: 6px;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.kline-title-wrap .tooltip-text {
  padding: 8px 12px;
  white-space: nowrap;
}
.right .tooltip-text {
  margin-left: 6px;
}
.right .tooltip-arrow {
  top: 50%;
  left: 0;
  transform: translate(50%, 0%) rotate(45deg);
}
.kline-wrap .tooltip-wrap {
  background: var(--color-PrimaryText);
  color: var(--color-SecondaryBg);
  border-radius: 8px;
}
.kline-wrap .tooltip-arrow {
  background: var(--color-PrimaryText);
}
.kline-wrap .title-wrapper-container {
  height: 0;
}
.kline-wrap .chart-title-row {
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  font-size: 12px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  width: -moz-max-content;
  line-height: 14px;
  margin-left: 4px;
  padding: 4px 4px;
  min-height: 24px;
}
.kline-wrap .chart-title-row:hover {
  border: 1px solid var(--color-Line);
  border-radius: 4px;
  cursor: pointer;
}
.kline-wrap .chart-title-row .chart-title-indicator-container {
  display: inline-flex;
  flex-wrap: wrap;
  line-height: 16px;
}
.kline-wrap .chart-title-row .icon-box {
  display: inline-flex;
  position: relative;
  font-size: 12px;
  line-height: 14px;
  cursor: pointer;
}
.kline-wrap .chart-title-row .icon-box {
  margin-right: 2px;
}
.kline-wrap .chart-title-row .indicator-title-toolbox .icon-box:not(:last-child) {
  margin-right: 8px;
}
.kline-wrap .chart-title-row .indicator-title-toolbox .icon-box:last-child {
  margin-right: 0;
}
div.chart-title-row:nth-child(2) ~ div > .chart-title-indicator-container {
  margin-left: 18px;
}
div.chart-title-row.fold:nth-child(2) ~ div {
  display: none;
}
.chart-title-row.fold > .chart-title-indicator-container, .chart-title-row.fold > .indicator-title-toolbox{
  display: none;
}
.icon-box svg {
  transition: transform 0.5s ease-out;
}
.chart-title-row.fold svg {
  transform: rotate(-90deg);
}
.indicator-title-toolbox {
  display: none;
}
.chart-title-row.active:not(.fold) .indicator-title-toolbox {
  display: flex;
  align-items: center;
  height: 16px;
}
.kline-wrap .text-area-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 80px;
  z-index: 10001;
  background: #ddd;
  outline: none;
  padding: 4px;
  border-radius: 4px;
  border: 1px solid #328DFD;
}
.kline-wrap.dark .text-area-wrap {
  color: #E6E8EA;
  background: rgb(0, 0, 0);
}
.kline-wrap.light .text-area-wrap {
  color: #1E2026;
  background: rgba(0, 0, 0, 0.2);
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.cta-treemap-wrapper{overflow:hidden;width:100%;position:relative;height:288px !important}@media screen and (max-width: 820px){.cta-treemap-wrapper{overflow:hidden;width:420px;height:264px !important}}@media screen and (max-width: 768px){.cta-treemap-wrapper{overflow:hidden;width:100%;min-width:362px;height:264px !important}}@media screen and (max-width: 375px){.cta-treemap-wrapper{overflow:hidden;width:100%;min-width:100%;height:288px !important}}
.treemap-wrapper{position:relative;max-height:288px;height:100%;width:100%;overflow:hidden}.treemap-wrapper .treemap-img-ssr{overflow:hidden;position:absolute;top:0;left:0;width:420px;height:288px}@media screen and (max-width: 820px){.treemap-wrapper .treemap-img-ssr{height:264px !important}}@media screen and (max-width: 768px){.treemap-wrapper .treemap-img-ssr{width:100%;min-width:362px;height:264px !important}}@media screen and (max-width: 375px){.treemap-wrapper .treemap-img-ssr{min-width:100%;width:343px;height:288px !important}}.treemap-wrapper .treemap-img-ssr svg{width:100%;height:100%}.treemap-wrapper .echarts-for-react{height:288px !important}@media screen and (max-width: 820px){.treemap-wrapper .echarts-for-react{height:264px !important}}@media screen and (max-width: 768px){.treemap-wrapper .echarts-for-react{width:100%;min-width:362px;height:264px !important}}@media screen and (max-width: 375px){.treemap-wrapper .echarts-for-react{width:100%;min-width:100%;height:288px !important}}
@-webkit-keyframes moveMobile{0%{left:0;transform:translate3d(0, 0, 0)}20%{left:0;transform:translate3d(0, 0, 0)}70%{left:100%;transform:translate3d(-100%, 0, 0)}100%{left:100%;transform:translate3d(-100%, 0, 0)}}@keyframes moveMobile{0%{left:0;transform:translate3d(0, 0, 0)}20%{left:0;transform:translate3d(0, 0, 0)}70%{left:100%;transform:translate3d(-100%, 0, 0)}100%{left:100%;transform:translate3d(-100%, 0, 0)}}@-webkit-keyframes movePC{0%{transform:translate3d(0, 0, 0)}15%{transform:translate3d(0, 0, 0)}75%{transform:translate3d(calc(-100% + 492px), 0, 0)}100%{transform:translate3d(calc(-100% + 492px), 0, 0)}}@keyframes movePC{0%{transform:translate3d(0, 0, 0)}15%{transform:translate3d(0, 0, 0)}75%{transform:translate3d(calc(-100% + 492px), 0, 0)}100%{transform:translate3d(calc(-100% + 492px), 0, 0)}}.announcement-title-date{justify-content:space-between;position:relative}
