/* H5 QA Mobile Polish (390px viewport clipping & modal spacing fixes) */
.notice-popup-content .notice-popup-title {
  padding-left: 36px !important;
  padding-right: 36px !important;
  line-height: 1.4 !important;
  word-break: break-word !important;
}
.notice-popup-content .notice-popup-body {
  text-align: left !important;
}

/* /#/trade top tabs (Delivery contract / Spot / U-standard contract) fit cleanly within 390px */
.headerChoose .theme-tabs .van-tabs__nav {
  padding-left: 4px !important;
  padding-right: 4px !important;
  justify-content: space-between !important;
}
.headerChoose .theme-tabs .van-tab {
  padding: 0 5px !important;
  margin-right: 0 !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
}
.headerChoose .theme-tabs .van-tab__text {
  font-size: 12px !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

/* /#/trade Spot & U-Contract OrderListBox tabs: preserve right clearance for eye + refresh icons */
.orderBox .theme-tabs .van-tabs__nav {
  padding-left: 8px !important;
  padding-right: 92px !important;
  justify-content: flex-start !important;
  gap: 4px !important;
}
.orderBox .theme-tabs .van-tab {
  flex: 0 0 auto !important;
  padding: 0 10px !important;
  margin-right: 0 !important;
}
.orderBox .theme-tabs .van-tab__text {
  font-size: 13px !important;
  white-space: nowrap !important;
}

/* /#/trade U-Contract order tabs (Stop profit and stop loss) compact spacing */
.order-tabs .van-tab,
.u-order-tabs .van-tab,
.trade-order .van-tab,
.tab-list .van-tab {
  padding: 0 7px !important;
  margin-right: 2px !important;
}
.order-tabs .van-tab__text,
.u-order-tabs .van-tab__text,
.trade-order .van-tab__text,
.tab-list .van-tab__text {
  font-size: 12px !important;
  white-space: nowrap !important;
}

/* /#/tradeU position card buttons (Rapid closing / Adjust margin / Stop profit / Stop loss) */
.hisToryList .bottomList {
  flex-wrap: wrap !important;
  gap: 8px !important;
}
.hisToryList .bottomList .itemBotton,
.hisToryList .bottomList .share-btn {
  flex: 1 1 calc(50% - 8px) !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 36px !important;
  padding: 7px 8px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: break-word !important;
}

/* /#/plug teamInfo labels ("Number of second-generation people") do not overlap count underneath */
.banner .teamInfo > div {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  box-sizing: border-box !important;
}
.banner .teamInfo > div p {
  height: auto !important;
  min-height: 36px !important;
  line-height: 1.3 !important;
  margin-bottom: 10px !important;
  word-break: break-word !important;
  font-size: 12px !important;
}

/* /#/assets account tabs (Overview / Wealth management assets / Contract assets) fit within 390px */
.account-page .account-tabs .van-tabs__nav {
  padding: 0 8px !important;
  justify-content: space-between !important;
}
.account-page .account-tabs .van-tab {
  padding: 0 6px !important;
  margin-right: 0 !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
}
.account-page .account-tabs .van-tab__text {
  font-size: 12.5px !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

/* /#/loan repayment method row: prevent horizontal overflow */
.loan-page .detail-row {
  gap: 12px !important;
  align-items: flex-start !important;
}
.loan-page .detail-label {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  font-size: 13px !important;
}
.loan-page .detail-value {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-align: right !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

/* /#/pledge & /#/defi bottom-sheet rules popup dark contrast */
.van-popup.van-popup--bottom:not(.van-toast) {
  background: var(--ex-default-background-color, #131926) !important;
  color: var(--ex-default-font-color, #e6ecf5) !important;
}
.van-popup.van-popup--bottom .popup-content,
.van-popup.van-popup--bottom .content,
.van-popup.van-popup--bottom .title,
.van-popup.van-popup--bottom p,
.van-popup.van-popup--bottom div {
  color: var(--ex-default-font-color, #e6ecf5);
}


/* Batch2 Light & Dark Toast/Notify/Dialog/Popup Contrast Fix */
.van-toast,body[theme="light"] .van-toast,body[theme="dark"] .van-toast{background:rgba(24,27,34,.92)!important;color:#ffffff!important}
.van-toast *,.van-toast__text,.van-toast__icon,.van-toast__loading,.van-toast .van-loading__spinner,.van-toast .van-loading__text{color:#ffffff!important}
.van-notify,.van-notify *{color:#ffffff!important}
.van-overlay .van-loading__text{color:#eaecef!important}
body[theme="light"] .van-dialog{background:#ffffff!important;color:#1E2329!important}
body[theme="light"] .van-dialog__header,body[theme="light"] .van-dialog__content,body[theme="light"] .van-dialog__message{background:#ffffff!important;color:#1E2329!important}
body[theme="light"] .van-dialog__footer,body[theme="light"] .van-dialog__cancel{background:#ffffff!important;color:#707A8A!important}
body[theme="light"] .van-dialog__confirm{background:#ffffff!important;color:#0F9F8A!important}
body[theme="light"] .van-popup.van-popup--bottom:not(.van-toast){background:#ffffff!important;color:#1E2329!important}
body[theme="light"] .van-action-sheet,body[theme="light"] .van-action-sheet__content,body[theme="light"] .van-action-sheet__item,body[theme="light"] .van-action-sheet__cancel{background:#ffffff!important;color:#1E2329!important}
