/* ==========================================================================
   Antigravity Dark Mode (Scoped to html.dark-theme)
   Light mode is completely untouched.
   ========================================================================== */

/* 1. Root & Core Containers */
html.dark-theme,
html.dark-theme body {
  background-color: #121418 !important;
  background: #121418 !important;
  color: #e4e6eb !important;
}

html.dark-theme #app,
html.dark-theme .home,
html.dark-theme .personal,
html.dark-theme .login,
html.dark-theme .market,
html.dark-theme .jihui,
html.dark-theme .privacy,
html.dark-theme .container,
html.dark-theme .tab-content,
html.dark-theme .content-pane,
html.dark-theme .van-swipe,
html.dark-theme .van-swipe-item,
html.dark-theme .dela-preset-2-1,
html.dark-theme .dela-preset-2-2 {
  background-color: #121418 !important;
  background: #121418 !important;
  color: #e4e6eb !important;
}

/* 2. Top Header & Nav */
html.dark-theme .header,
html.dark-theme .van-nav-bar,
html.dark-theme .van-tabs__nav,
html.dark-theme .van-tabs__wrap,
html.dark-theme .nav-tabs2,
html.dark-theme .van-dropdown-menu__bar {
  background-color: #181b22 !important;
  background: #181b22 !important;
  border-color: #262a34 !important;
}

html.dark-theme .header-title,
html.dark-theme .van-nav-bar__title,
html.dark-theme .header i,
html.dark-theme .van-nav-bar i,
html.dark-theme .van-nav-bar__text,
html.dark-theme .van-dropdown-menu__title {
  color: #e4e6eb !important;
}

/* 2.1 Bottom Tabbar Navigation */
html.dark-theme .van-tabbar,
html.dark-theme .van-tabbar--fixed,
html.dark-theme [class*="van-tabbar"],
html.dark-theme .app-bottom-nav {
  background-color: #181b22 !important;
  background: #181b22 !important;
  border: none !important;
  border-top: none !important;
  box-shadow: none !important;
}

html.dark-theme .van-tabbar::before,
html.dark-theme .van-tabbar::after,
html.dark-theme .van-tabbar--fixed::before,
html.dark-theme .van-tabbar--fixed::after,
html.dark-theme [class*="van-tabbar"]::before,
html.dark-theme [class*="van-tabbar"]::after,
html.dark-theme [class*="van-hairline--top-bottom"]::before,
html.dark-theme [class*="van-hairline--top-bottom"]::after {
  display: none !important;
  border: none !important;
  content: none !important;
}

html.dark-theme .van-tabbar-item,
html.dark-theme .app-bottom-nav .van-tabbar-item {
  background-color: transparent !important;
  background: transparent !important;
  color: #8b949e !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html.dark-theme .van-tabbar-item,
html.dark-theme a.van-tabbar-item {
  color: #8b949e !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html.dark-theme .van-tabbar-item--active,
html.dark-theme .van-tabbar-item--active .van-tabbar-item__text,
html.dark-theme a.van-tabbar-item--active,
html.dark-theme a.van-tabbar-item--active .van-tabbar-item__text,
html.dark-theme .app-bottom-nav .van-tabbar-item--active,
html.dark-theme .app-bottom-nav .van-tabbar-item--active .van-tabbar-item__text {
  color: #3b82f6 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html.dark-theme .van-tabbar-item .van-tabbar-item__text {
  color: inherit !important;
  text-shadow: none !important;
}

html.dark-theme .van-tabbar-item__icon,
html.dark-theme .van-tabbar-item__icon i,
html.dark-theme .van-tabbar-item i,
html.dark-theme .van-tabbar-item__icon svg,
html.dark-theme .van-tabbar-item svg {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  background: transparent !important;
}

/* 3. Cards, Boxes, Vant Cells & Lists */
html.dark-theme .user-info-box,
html.dark-theme .personal-amount-box,
html.dark-theme .crypto-contain,
html.dark-theme .van-cell,
html.dark-theme .van-cell-group,
html.dark-theme .chart-box,
html.dark-theme .round-fd,
html.dark-theme .widraw-box,
html.dark-theme .app-logo-box,
html.dark-theme .van-dialog,
html.dark-theme .van-popup,
html.dark-theme .van-action-sheet,
html.dark-theme .van-dropdown-item__content,
html.dark-theme .van-picker,
html.dark-theme .van-picker-column,
html.dark-theme .van-picker__toolbar,
html.dark-theme .buy-coin,
html.dark-theme .buy-header,
html.dark-theme .card,
html.dark-theme .panel {
  background-color: #1a1d24 !important;
  background: #1a1d24 !important;
  color: #e4e6eb !important;
  border-color: #262a34 !important;
}

/* 4. OVERRIDE ANY INLINE WHITE / LIGHT BACKGROUNDS */
html.dark-theme [style*="background: #fff"],
html.dark-theme [style*="background:#fff"],
html.dark-theme [style*="background: #ffffff"],
html.dark-theme [style*="background:#ffffff"],
html.dark-theme [style*="background-color: #fff"],
html.dark-theme [style*="background-color:#fff"],
html.dark-theme [style*="background-color: #ffffff"],
html.dark-theme [style*="background-color:#ffffff"],
html.dark-theme [style*="background: white"],
html.dark-theme [style*="background-color: white"],
html.dark-theme [style*="background-color: rgb(255, 255, 255)"],
html.dark-theme [style*="background-color:rgb(255,255,255)"],
html.dark-theme [style*="background: rgb(255, 255, 255)"],
html.dark-theme [style*="background:rgb(255,255,255)"],
html.dark-theme [style*="background: #f8f8f8"],
html.dark-theme [style*="background-color: #f8f8f8"],
html.dark-theme [style*="background: #f5f5f5"],
html.dark-theme [style*="background-color: #f5f5f5"],
html.dark-theme [style*="background: #f7f7fb"],
html.dark-theme [style*="background-color: #f7f7fb"],
html.dark-theme [style*="background: #f4f5f6"],
html.dark-theme [style*="background-color: #f4f5f6"],
html.dark-theme [style*="background: #f2f2f2"],
html.dark-theme [style*="background-color: #f2f2f2"],
html.dark-theme [style*="background: #f3f3f3"],
html.dark-theme [style*="background-color: #f3f3f3"],
html.dark-theme [style*="background: rgb(245, 245, 245)"],
html.dark-theme [style*="background:rgb(245,245,245)"],
html.dark-theme [style*="background-color: rgb(245, 245, 245)"],
html.dark-theme [style*="background-color:rgb(245,245,245)"],
html.dark-theme [style*="background: rgb(240, 240, 240)"],
html.dark-theme [style*="background:rgb(240,240,240)"],
html.dark-theme [style*="background-color: rgb(240, 240, 240)"],
html.dark-theme [style*="background-color:rgb(240,240,240)"],
html.dark-theme [style*="background: rgb(238, 238, 238)"],
html.dark-theme [style*="background:rgb(238,238,238)"],
html.dark-theme [style*="background-color: rgb(238, 238, 238)"],
html.dark-theme [style*="background-color:rgb(238,238,238)"],
html.dark-theme [style*="background: rgb(221, 221, 221)"],
html.dark-theme [style*="background:rgb(221,221,221)"],
html.dark-theme [style*="background-color: rgb(221, 221, 221)"],
html.dark-theme [style*="background-color:rgb(221,221,221)"],
html.dark-theme [style*="background-color: #c8c7cc"],
html.dark-theme [style*="background-color:#c8c7cc"],
html.dark-theme [style*="background: #c8c7cc"],
html.dark-theme [style*="background:#c8c7cc"],
html.dark-theme .section-spacer {
  background-color: #121418 !important;
  background: #121418 !important;
}

/* 5. OVERRIDE ANY INLINE BLACK / DARK TEXT (High contrast) */
html.dark-theme [style*="color: rgb(0, 0, 0)"],
html.dark-theme [style*="color:rgb(0,0,0)"],
html.dark-theme [style*="color: #000"],
html.dark-theme [style*="color:#000"],
html.dark-theme [style*="color: #000000"],
html.dark-theme [style*="color:#000000"],
html.dark-theme [style*="color: black"],
html.dark-theme [style*="color: rgb(34, 34, 34)"],
html.dark-theme [style*="color:rgb(34,34,34)"],
html.dark-theme [style*="color: #222"],
html.dark-theme [style*="color: rgb(31, 31, 31)"],
html.dark-theme [style*="color:rgb(31,31,31)"],
html.dark-theme [style*="color: rgb(33, 33, 33)"],
html.dark-theme [style*="color:rgb(33,33,33)"],
html.dark-theme [style*="color: #111"],
html.dark-theme [style*="color: rgb(51, 51, 51)"],
html.dark-theme [style*="color:rgb(51,51,51)"],
html.dark-theme [style*="color: #333"] {
  color: #f3f4f6 !important;
}

/* Secondary dark grays */
html.dark-theme [style*="color: rgb(102, 102, 102)"],
html.dark-theme [style*="color: rgb(119, 119, 119)"],
html.dark-theme [style*="color: rgb(136, 136, 136)"],
html.dark-theme [style*="color: rgb(170, 170, 170)"],
html.dark-theme [style*="color: rgb(85, 85, 85)"],
html.dark-theme [style*="color: rgb(88, 88, 88)"],
html.dark-theme [style*="color: rgb(97, 97, 97)"],
html.dark-theme [style*="color: rgb(143, 143, 143)"],
html.dark-theme [style*="color: #666"],
html.dark-theme [style*="color: #777"],
html.dark-theme [style*="color: #888"],
html.dark-theme [style*="color: #999"],
html.dark-theme [style*="color: #666677"] {
  color: #9aa0a6 !important;
}

/* 6. Typography & Text Elements */
html.dark-theme h1,
html.dark-theme h2,
html.dark-theme h3,
html.dark-theme h4,
html.dark-theme h5,
html.dark-theme h6,
html.dark-theme p,
html.dark-theme span:not(.van-tag):not(.change),
html.dark-theme label,
html.dark-theme .van-cell__title,
html.dark-theme .van-cell__value,
html.dark-theme .van-field__label,
html.dark-theme .van-tab__text,
html.dark-theme .personal-amount-hint,
html.dark-theme .default,
html.dark-theme .p-icon-title,
html.dark-theme .symbol,
html.dark-theme .price,
html.dark-theme .app-title,
html.dark-theme .annouce-title,
html.dark-theme .annouce-box-title,
html.dark-theme .input-hint,
html.dark-theme .input-hint div,
html.dark-theme .input-hint .label,
html.dark-theme .type-active,
html.dark-theme .no-account,
html.dark-theme .btn-register,
html.dark-theme .van-dialog__message {
  color: #e4e6eb !important;
}

html.dark-theme a {
  color: #8ab4f8 !important;
}

html.dark-theme .name,
html.dark-theme .volume,
html.dark-theme .tb-color,
html.dark-theme .app-version,
html.dark-theme .annouce-box-date,
html.dark-theme .home-see-all,
html.dark-theme .home-see-all span,
html.dark-theme .home-see-all i,
html.dark-theme .van-tabbar-item__text,
html.dark-theme .van-cell__label {
  color: #9499a6 !important;
}

html.dark-theme .home-see-all:hover,
html.dark-theme .home-see-all:active {
  color: #3b82f6 !important;
}

/* Active tab text */
html.dark-theme .van-tab.van-tab--active a,
html.dark-theme .van-tab.active a,
html.dark-theme .van-tab--active .van-tab__text {
  color: #3b82f6 !important;
  font-weight: 600;
}

/* 7. Borders, Dividers & Outlines */
html.dark-theme .van-cell::after,
html.dark-theme .van-hairline--top-bottom::after,
html.dark-theme .van-hairline--bottom::after,
html.dark-theme .van-hairline--top::after,
html.dark-theme .van-divider,
html.dark-theme [class*="van-hairline"]::after {
  border-color: #262a34 !important;
}

html.dark-theme .user-info-box,
html.dark-theme .personal-amount-box,
html.dark-theme .crypto-box,
html.dark-theme .widraw-box {
  border-color: #262a34 !important;
}

html.dark-theme .round-fd {
  box-shadow: 0 0 0 1px #363c4a !important;
  background-color: #1a1d24 !important;
}

html.dark-theme .input-active {
  box-shadow: 0 0 0 1px #3b82f6 !important;
}

/* 8. Inputs, Textareas, Password Fields */
html.dark-theme input,
html.dark-theme textarea,
html.dark-theme select,
html.dark-theme .van-field__control,
html.dark-theme .Password__field {
  background-color: #1a1d24 !important;
  background: #1a1d24 !important;
  color: #ffffff !important;
  border-color: #363c4a !important;
}

html.dark-theme .Password__field {
  border: 1px solid #363c4a !important;
  border-radius: 5px !important;
}

html.dark-theme .Password__field:focus {
  border-color: #3b82f6 !important;
}

html.dark-theme input::placeholder,
html.dark-theme textarea::placeholder,
html.dark-theme .Password__field::placeholder {
  color: #646b79 !important;
}

/* Auth Primary Submit Buttons */
html.dark-theme .btn-login,
html.dark-theme .btn-login.van-button {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}

/* 10. Buttons & Currency Selectors */
html.dark-theme .popover-btn,
html.dark-theme .popover-btn.van-button {
  background-color: #262b36 !important;
  border-color: #363c4a !important;
  color: #e4e6eb !important;
}

html.dark-theme .widraw-box .p-box {
  background-color: #1a1d24 !important;
}

/* 11. Preserved Status Colors */
html.dark-theme .text-success,
html.dark-theme [style*="color: rgb(7, 193, 96)"],
html.dark-theme [style*="color: #07c160"],
html.dark-theme [style*="color: rgb(22, 199, 132)"] {
  color: #10b981 !important;
}

html.dark-theme .text-danger,
html.dark-theme [style*="color: rgb(234, 57, 67)"],
html.dark-theme [style*="color: rgb(213, 26, 26)"],
html.dark-theme [style*="color: #cc1414"],
html.dark-theme [style*="color: rgb(204, 20, 20)"] {
  color: #ef4444 !important;
}

/* Market & Crypto List Dark Mode */
html.dark-theme .top-contain {
  background-color: #121418 !important;
  background: #121418 !important;
}

html.dark-theme .top-contain-box {
  background-color: #1a1d24 !important;
  background: #1a1d24 !important;
  border-radius: 8px !important;
  border: 1px solid #262a34 !important;
}

html.dark-theme .top-contain-title {
  color: #f3f4f6 !important;
}

html.dark-theme .top-contain-desc {
  color: #8b949e !important;
}

html.dark-theme
  .top-contain
  div[style*="background-color: rgb(238, 238, 238)"] {
  background-color: transparent !important;
}

html.dark-theme .crypto-list-title,
html.dark-theme .crypto-contain,
html.dark-theme .trade-list {
  background-color: #121418 !important;
  background: #121418 !important;
  color: #9ca3af !important;
}

html.dark-theme .crypto-list-title {
  border-bottom: 1px solid #1f242f !important;
}

html.dark-theme .title-name,
html.dark-theme .title-price,
html.dark-theme .title-rate,
html.dark-theme .crypto-list-title div {
  color: #8b949e !important;
}

html.dark-theme .crypto-list-title .sort-arrow svg path {
  fill: #6e7681 !important;
}

html.dark-theme .crypto-box {
  background-color: transparent !important;
  border-bottom: 1px solid #1f242f !important;
}

html.dark-theme .crypto-box:hover {
  background-color: #181b22 !important;
}

html.dark-theme .crypto-text .symbol,
html.dark-theme .price-contain .price {
  color: #f3f4f6 !important;
}

html.dark-theme .crypto-text .name,
html.dark-theme .price-contain .volume {
  color: #8b949e !important;
}

/* Badge buttons (e.g. market & home price change percentage pills) */
.change.green,
.change.red,
.change.background-green,
.change.background-red,
.coin-change-contain .green,
.coin-change-contain .red,
.coin-change-contain .background-green,
.coin-change-contain .background-red,
html.dark-theme .change.green,
html.dark-theme .change.red,
html.dark-theme .change.background-green,
html.dark-theme .change.background-red,
html.dark-theme .coin-change-contain .green,
html.dark-theme .coin-change-contain .red,
html.dark-theme .coin-change-contain .background-green,
html.dark-theme .coin-change-contain .background-red {
  color: #ffffff !important;
}

html.dark-theme .green,
html.dark-theme .background-green {
  background-color: #16c784 !important;
}

html.dark-theme .red,
html.dark-theme .background-red {
  background-color: #ea3943 !important;
}

/* 12. Full Height Popups / Slideouts */
html.dark-theme .van-popup--bottom,
html.dark-theme .van-popup--right,
html.dark-theme .van-popup--left {
  background-color: #181b22 !important;
  background: #181b22 !important;
}

/* 13. "Don't have an account? Sign up" Box */
html.dark-theme .btn-register-box,
html.dark-theme div.btn-register-box {
  background-color: #1a1d24 !important;
  background: #1a1d24 !important;
  border: 1px solid #262a34 !important;
  padding: 0 12px !important;
}

html.dark-theme .btn-register-box .no-account,
html.dark-theme .btn-register-box .btn-register,
html.dark-theme .btn-register-box span {
  color: #e4e6eb !important;
}

html.dark-theme .btn-register-box a,
html.dark-theme .btn-register-box a span {
  color: #3b82f6 !important;
}

/* 14. Theme Switcher */
.theme-switch-slider {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.theme-switch-slider input {
  opacity: 0;
  width: 0;
  height: 0;
}

.theme-switch-slider .slider-track {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 24px;
}

.theme-switch-slider .slider-track:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.theme-switch-slider input:checked + .slider-track {
  background-color: #3b82f6;
}

.theme-switch-slider input:checked + .slider-track:before {
  transform: translateX(20px);
}

/* Auth Theme Toggle Button */
.auth-theme-toggle-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #4b5563;
  transition: all 0.2s ease;
  text-decoration: none;
  outline: none;
  user-select: none;
}

.auth-theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #111827;
}

.auth-theme-toggle-btn .theme-icon-sun,
.header-theme-toggle-btn .theme-icon-sun,
.theme-icon-sun {
  display: none !important;
}

.auth-theme-toggle-btn .theme-icon-moon,
.header-theme-toggle-btn .theme-icon-moon,
.theme-icon-moon {
  display: block !important;
}

.header-theme-toggle-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: none;
  color: rgb(33, 33, 33);
  padding: 0 4px;
  line-height: 1;
  user-select: none;
  vertical-align: middle;
}

.header-theme-toggle-btn:active {
  transform: scale(0.92);
}

html.dark-theme .header-theme-toggle-btn {
  color: #fbbf24 !important;
}

html.dark-theme .auth-theme-toggle-btn {
  background: #1e222d !important;
  border: 1px solid #2d3342 !important;
  color: #fbbf24 !important;
}

html.dark-theme .auth-theme-toggle-btn:hover {
  background: #282e3d !important;
}

html.dark-theme .auth-theme-toggle-btn .theme-icon-sun,
html.dark-theme .header-theme-toggle-btn .theme-icon-sun,
html.dark-theme .theme-icon-sun {
  display: block !important;
}

html.dark-theme .auth-theme-toggle-btn .theme-icon-moon,
html.dark-theme .header-theme-toggle-btn .theme-icon-moon,
html.dark-theme .theme-icon-moon {
  display: none !important;
}

/* The form container itself is transparent - only inputs and cards have background */
html.dark-theme .fd-box,
html.dark-theme .reg-fd-box {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Individual input fields - styled like clean cards with proper padding */
html.dark-theme .round-fd,
html.dark-theme .Password__field {
  background-color: #1a1d24 !important;
  border-radius: 6px !important;
}

html.dark-theme .round-fd .van-cell__value,
html.dark-theme .round-fd input.van-field__control {
  background: transparent !important;
  background-color: transparent !important;
}

html.dark-theme .Password__group {
  background: transparent !important;
}

/* ==========================================================================
   15. Product Trade & Spot Pages (/member/product-trade, /member/product-spot)
   ========================================================================== */

/* Page container & headers */
html.dark-theme .second-contract,
html.dark-theme .second-contract .header,
html.dark-theme .top-box {
  background-color: #121418 !important;
  background: #121418 !important;
  border-color: #262a34 !important;
  color: #e4e6eb !important;
}

html.dark-theme .top-box .line {
  background-color: #262a34 !important;
}

html.dark-theme .top-box .sp-title {
  color: #8b949e !important;
}

html.dark-theme .top-box .sp-value {
  color: #f3f4f6 !important;
}

html.dark-theme .top-box .bprice,
html.dark-theme .top-box .current_price {
  color: #f3f4f6 !important;
}

/* K-line interval tabs bar */
html.dark-theme .van-tabs--line .van-tabs__wrap,
html.dark-theme .van-tabs--line .van-tabs__nav {
  background-color: #181b22 !important;
  background: #181b22 !important;
  border-color: #262a34 !important;
}

html.dark-theme .van-tabs--line .van-tab {
  color: #8b949e !important;
}

html.dark-theme .van-tabs--line .van-tab--active,
html.dark-theme .van-tabs--line .van-tab--active .van-tab__text {
  color: #3b82f6 !important;
}

/* Interval toolbar if present */
html.dark-theme #interval_tool_bar {
  background-color: #181b22 !important;
  border-color: #262a34 !important;
}

html.dark-theme #interval_tool_bar .interval-item {
  color: #8b949e !important;
  background: transparent !important;
}

html.dark-theme #interval_tool_bar .interval-item.active {
  color: #3b82f6 !important;
}

/* Trading order form box */
html.dark-theme .s-buy-box,
html.dark-theme .buy-type-box {
  background-color: #121418 !important;
  background: #121418 !important;
  color: #e4e6eb !important;
}

/* Amount Input Container */
html.dark-theme .sec-contract-input,
html.dark-theme .input-contain {
  background-color: #1a1d24 !important;
  background: #1a1d24 !important;
  border: 1px solid #2d3342 !important;
  border-radius: 6px !important;
}

html.dark-theme .sec-contract-input .van-field,
html.dark-theme .sec-contract-input .van-cell,
html.dark-theme .input-contain .van-cell,
html.dark-theme .input-contain .van-field__value,
html.dark-theme .input-contain .van-field__body {
  background: transparent !important;
  background-color: transparent !important;
}

html.dark-theme .sec-contract-input input.van-field__control,
html.dark-theme .input-contain input.van-field__control {
  background: transparent !important;
  background-color: transparent !important;
  color: #ffffff !important;
}

html.dark-theme .sec-contract-input input.van-field__control::placeholder,
html.dark-theme .input-contain input.van-field__control::placeholder {
  color: #6b7280 !important;
}

html.dark-theme .input-symbol {
  color: #9ca3af !important;
}

html.dark-theme .sec-contract-input button.van-button {
  background: #2d3342 !important;
  border-color: #374151 !important;
  color: #e4e6eb !important;
}

/* Order available balance info */
html.dark-theme .s-buy-box div[style*="text-align: right"] {
  color: #9ca3af !important;
}

/* Positions & History tabs container */
html.dark-theme .horizon-scroll,
html.dark-theme div.horizon-scroll,
html.dark-theme .horizon-scroll[style*="background-color: rgb(255, 255, 255)"],
html.dark-theme div[style*="height: 10px; background-color: rgb(255, 255, 255)"],
html.dark-theme div[style*="height: 10px; background-color: #fff"] {
  background-color: #121418 !important;
  background: #121418 !important;
  border-bottom: 1px solid #1f242f !important;
}

html.dark-theme .horizon-scroll .tablinks,
html.dark-theme .horizon-scroll .btn-rtab {
  color: #8b949e !important;
}

html.dark-theme .horizon-scroll .tablinks.rtab_active,
html.dark-theme .horizon-scroll .rtab_active,
html.dark-theme .rtab_active {
  color: #f3f4f6 !important;
  font-weight: 600 !important;
}

/* Positions / Order list & Empty state */
html.dark-theme .tabcontent,
html.dark-theme .second-contract #open_order,
html.dark-theme .second-contract #history,
html.dark-theme .empty-box {
  background-color: #121418 !important;
  background: #121418 !important;
  color: #e4e6eb !important;
}

html.dark-theme .empty-box div {
  color: #8b949e !important;
}

/* Empty box illustration SVG dark styling */
html.dark-theme .empty-box svg path[fill="white"],
html.dark-theme .empty-box svg rect[fill="white"] {
  fill: #1a1d24 !important;
}

html.dark-theme .empty-box svg path[stroke="#D8DCE5"],
html.dark-theme .empty-box svg path[stroke="#D8DCE6"],
html.dark-theme .empty-box svg path[stroke="#CBD1DD"] {
  stroke: #2e3545 !important;
}

html.dark-theme .empty-box svg path[fill="#D6DCE8"],
html.dark-theme .empty-box svg path[fill="#D8DCE5"],
html.dark-theme .empty-box svg path[fill="#E2E6EF"] {
  fill: #262c3a !important;
}

/* Open order list item in trade */
html.dark-theme .open-Order-Pending,
html.dark-theme .open-modalorder {
  background-color: #181b22 !important;
  border-radius: 8px;
  padding: 8px 0;
  margin-bottom: 8px;
  border: 1px solid #262a34 !important;
}

html.dark-theme .open-Order-Pending div[style*="color: rgb(102, 102, 102)"],
html.dark-theme .open-Order-Pending div[style*="color: rgb(34, 34, 34)"],
html.dark-theme .open-modalorder div[style*="color: rgb(102, 102, 102)"],
html.dark-theme .open-modalorder div[style*="color: rgb(34, 34, 34)"] {
  color: #9ca3af !important;
}

html.dark-theme .open-Order-Pending div[style*="font-size: 14px; font-weight: 500"],
html.dark-theme .open-modalorder div[style*="font-size: 14px; font-weight: 500"] {
  color: #f3f4f6 !important;
}

/* Close action button in open orders / positions */
html.dark-theme .open-Order-Pending .van-button--mini,
html.dark-theme .open-modalorder .van-button--mini,
html.dark-theme span.van-button[style*="background-color: aliceblue"],
html.dark-theme .van-button[style*="background-color: aliceblue"] {
  background-color: #1e293b !important;
  background: #1e293b !important;
  border: 1px solid #3b82f6 !important;
  color: #60a5fa !important;
}

html.dark-theme .open-Order-Pending .van-button--mini:active,
html.dark-theme .open-modalorder .van-button--mini:active {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

/* Symbol selector modal (#ListProductModal) */
html.dark-theme #ListProductModal .modal-content,
html.dark-theme #ListProductModal .charting-cryptos-box,
html.dark-theme .charting-cryptos-box {
  background-color: #181b22 !important;
  background: #181b22 !important;
  border-color: #262a34 !important;
  color: #e4e6eb !important;
}

html.dark-theme #ListProductModal div[style*="color: rgb(34, 34, 34)"],
html.dark-theme .charting-cryptos-box div[style*="color: rgb(34, 34, 34)"] {
  color: #e4e6eb !important;
}

html.dark-theme #ListProductModal .close,
html.dark-theme .charting-cryptos-box .close {
  color: #9ca3af !important;
}

/* Order detail popups / modals */
html.dark-theme .second-order,
html.dark-theme #orderListModal .modal-content,
html.dark-theme #orderListModalPending .modal-content {
  background-color: #181b22 !important;
  background: #181b22 !important;
  color: #e4e6eb !important;
}

html.dark-theme .second-order .van-icon-arrow-left {
  color: #e4e6eb !important;
}

html.dark-theme .second-order .van-cell {
  background-color: transparent !important;
  color: #e4e6eb !important;
}

html.dark-theme .second-order .van-cell__title,
html.dark-theme .second-order .van-cell__value {
  color: #e4e6eb !important;
}

/* =========================================
   15. Product Trade / Spot / Perpetual Page
   ========================================= */
html.dark-theme .top-box {
  background-color: #181b22 !important;
  background: #181b22 !important;
  border-bottom: 1px solid #262a34 !important;
}

html.dark-theme .top-box .sp-title {
  color: #8b949e !important;
}

html.dark-theme .top-box .sp-value {
  color: #e4e6eb !important;
}

html.dark-theme .top-box .line {
  background-color: #262a34 !important;
}

html.dark-theme #chart_container {
  background-color: #121418 !important;
}

html.dark-theme .s-buy-box {
  background-color: #181b22 !important;
  background: #181b22 !important;
  color: #e4e6eb !important;
  border-top: 1px solid #262a34 !important;
}

html.dark-theme .sec-contract-input {
  background-color: #1e222d !important;
  border: 1px solid #2d3342 !important;
  border-radius: 6px !important;
}

html.dark-theme .sec-contract-input .input-field,
html.dark-theme .sec-contract-input .van-cell {
  background-color: transparent !important;
  background: transparent !important;
}

html.dark-theme .sec-contract-input input.van-field__control {
  color: #f3f4f6 !important;
  background-color: transparent !important;
}

html.dark-theme .sec-contract-input .input-symbol {
  color: #8b949e !important;
}

html.dark-theme .contract-period-box {
  background-color: #1e222d !important;
  border: 1px solid #2d3342 !important;
  color: #e4e6eb !important;
}

html.dark-theme .contract-period-box.period-box-selected {
  background-color: #1e3a5f !important;
  border-color: #3b82f6 !important;
  color: #60a5fa !important;
}

html.dark-theme .horizon-scroll {
  background-color: #181b22 !important;
  background: #181b22 !important;
  border-bottom: 1px solid #262a34 !important;
}

html.dark-theme .tabcontent {
  background-color: #121418 !important;
  color: #e4e6eb !important;
}

html.dark-theme .open-Order-Pending,
html.dark-theme .open-modalorder {
  background-color: #181b22 !important;
  border-bottom: 1px solid #262a34 !important;
}

html.dark-theme .rtab_active {
  color: #3b82f6 !important;
  border-bottom: 2px solid #3b82f6 !important;
}

html.dark-theme .btn-rtab,
html.dark-theme .horizon-scroll .tablinks {
  color: #8b949e !important;
}

html.dark-theme .horizon-scroll .tablinks:not(.rtab_active) {
  color: #8b949e !important;
}

html.dark-theme #ListProductModal .modal-content,
html.dark-theme .charting-cryptos-box {
  background-color: #181b22 !important;
  background: #181b22 !important;
  color: #e4e6eb !important;
}

html.dark-theme .crypto-box {
  border-bottom: 1px solid #262a34 !important;
  background-color: transparent !important;
}

html.dark-theme .crypto-box:hover,
html.dark-theme .crypto-box:active {
  background-color: #1e222d !important;
}

html.dark-theme .crypto-text .symbol {
  color: #f3f4f6 !important;
}

html.dark-theme .crypto-text .name {
  color: #8b949e !important;
}

html.dark-theme .buysell-content {
  background-color: #1e222d !important;
  background: #1e222d !important;
  color: #e4e6eb !important;
  border: 1px solid #2d3342 !important;
}

html.dark-theme .buysell-content div[style*="color: rgb(0, 0, 0)"],
html.dark-theme .buysell-content span[style*="color: rgb(0, 0, 0)"] {
  color: #f3f4f6 !important;
}

html.dark-theme .buysell-content div[style*="color: rgb(102, 102, 102)"] {
  color: #8b949e !important;
}

html.dark-theme .van-dialog,
html.dark-theme .modal-dialog .modal-content {
  background-color: #181b22 !important;
  background: #181b22 !important;
  color: #e4e6eb !important;
  border: 1px solid #262a34 !important;
}

html.dark-theme .van-dialog__header,
html.dark-theme .van-dialog__header--isolated {
  color: #f3f4f6 !important;
}

html.dark-theme .van-dialog__message {
  color: #9ca3af !important;
}

html.dark-theme .van-dialog__footer {
  background-color: #181b22 !important;
  border-top: 1px solid #262a34 !important;
}

html.dark-theme .van-dialog .van-hairline--top:after {
  border-top-color: #262a34 !important;
}

html.dark-theme .van-dialog .van-hairline--left:after {
  border-left-color: #262a34 !important;
}

html.dark-theme .van-dialog__cancel,
html.dark-theme .van-dialog__confirm,
html.dark-theme .van-dialog .van-button {
  background-color: #181b22 !important;
  background: #181b22 !important;
  border: none !important;
}

html.dark-theme .van-dialog__cancel,
html.dark-theme .van-dialog__cancel .van-button__text {
  color: #8b949e !important;
}

html.dark-theme .van-dialog__cancel:active {
  background-color: #20242e !important;
}

html.dark-theme .van-dialog__confirm,
html.dark-theme .van-dialog__confirm .van-button__text {
  color: #ef4444 !important;
  font-weight: 500;
}

html.dark-theme .van-dialog__confirm:active {
  background-color: #20242e !important;
}

/* ==========================================================================
   16. Global Dialogs, Modals, Back Buttons (<) and Close Icons (x)
   ========================================================================== */

/* All Bootstrap Modals, Dialogs & Vant Popups */
html.dark-theme .modal,
html.dark-theme .modal-dialog,
html.dark-theme .modal-content,
html.dark-theme .modal-body,
html.dark-theme .modal-header,
html.dark-theme .modal-footer,
html.dark-theme .modal .van-popup,
html.dark-theme .modal-dialog .van-popup,
html.dark-theme .van-popup,
html.dark-theme .van-popup--bottom,
html.dark-theme .van-popup--top,
html.dark-theme .van-popup--round,
html.dark-theme .van-popup--right,
html.dark-theme .modal-depo .modal-content,
html.dark-theme .depo-report .modal-content,
html.dark-theme .modal-withdraw .modal-content,
html.dark-theme .withdraw-report .modal-content,
html.dark-theme .modal-transfer .modal-content,
html.dark-theme .transfer-report .modal-content,
html.dark-theme .modal-history .modal-content,
html.dark-theme .modal-security .modal-content,
html.dark-theme .modal-changepwd .modal-content,
html.dark-theme .modal-identity .modal-content,
html.dark-theme .modal-support .modal-content,
html.dark-theme .modal-about .modal-content,
html.dark-theme .modal-privacy .modal-content,
html.dark-theme .modal-ternService .modal-content,
html.dark-theme .modal-wallet .modal-content,
html.dark-theme .modal-notification .modal-content,
html.dark-theme .modal-currencylist .modal-content,
html.dark-theme .modal-payment-address .modal-content,
html.dark-theme .modal-withdraw-address .modal-content,
html.dark-theme #modalCurrencylist .van-popup,
html.dark-theme #modalDatetime .van-popup,
html.dark-theme #modalNotification .van-popup,
html.dark-theme #modalPrivacy .van-popup,
html.dark-theme #modalTernService .van-popup,
html.dark-theme #modalWallet .van-popup,
html.dark-theme #modaladdress .van-popup,
html.dark-theme #withdrawaddress .van-popup {
  background-color: #181b22 !important;
  background: #181b22 !important;
  color: #e4e6eb !important;
  border-color: #262a34 !important;
}

/* Modal Body Full-view Containers */
html.dark-theme .buy-coin,
html.dark-theme .withdraw,
html.dark-theme .order,
html.dark-theme .safe,
html.dark-theme .login,
html.dark-theme .auth,
html.dark-theme .auth[data-v-3582ab38],
html.dark-theme .help,
html.dark-theme .about,
html.dark-theme .privacy,
html.dark-theme .modal-wallet,
html.dark-theme .wallet-detail,
html.dark-theme .notification-box,
html.dark-theme .depo-report,
html.dark-theme .withdraw-report,
html.dark-theme .transfer-report {
  background-color: #181b22 !important;
  background: #181b22 !important;
  color: #e4e6eb !important;
}

/* Modal and Popup Header Top Bars */
html.dark-theme .order-top-bar,
html.dark-theme .buy-header,
html.dark-theme .login-top-bar,
html.dark-theme .auth-top-bar,
html.dark-theme .safe-top-bar,
html.dark-theme .help-top-bar,
html.dark-theme .about-top-bar,
html.dark-theme .privacy-top-bar,
html.dark-theme .wallet-top-bar,
html.dark-theme .notification-top-bar,
html.dark-theme .currency-top-bar,
html.dark-theme .network-top-bar,
html.dark-theme .picker-toolbar,
html.dark-theme .order-top-bar[data-v-388cbe60],
html.dark-theme .order-top-bar[data-v-340faf4c],
html.dark-theme .order-top-bar[data-v-a4cea78c],
html.dark-theme .picker-toolbar[data-v-290f6e85] {
  background-color: #181b22 !important;
  background: #181b22 !important;
  color: #f3f4f6 !important;
  border-bottom: 1px solid #262a34 !important;
}

html.dark-theme .order-top-bar div,
html.dark-theme .buy-header div,
html.dark-theme .order-top-bar span,
html.dark-theme .buy-header span {
  color: #f3f4f6 !important;
}

/* Header icon wrappers with hardcoded white background */
html.dark-theme .buy-header div[style*="background-color: white"],
html.dark-theme .buy-header div[style*="background-color:white"],
html.dark-theme .buy-header div[style*="background: white"],
html.dark-theme .order-top-bar div[style*="background-color: white"],
html.dark-theme .order-top-bar div[style*="background-color:white"],
html.dark-theme .order-top-bar div[style*="background: white"],
html.dark-theme .modal [style*="background-color: white"],
html.dark-theme .modal [style*="background-color:white"],
html.dark-theme .modal [style*="background: white"],
html.dark-theme .modal [style*="background:white"] {
  background-color: transparent !important;
  background: transparent !important;
}

/* Back Arrow Buttons (<), Balance List and Close Buttons (x) across all dialogs */
html.dark-theme .van-icon-arrow-left,
html.dark-theme .van-icon-cross,
html.dark-theme .van-popup__close-icon,
html.dark-theme .modal .close,
html.dark-theme .modal-header .close,
html.dark-theme [data-dismiss="modal"] i,
html.dark-theme [data-dismiss="modal"].van-icon,
html.dark-theme i[class*="van-icon-arrow-left"],
html.dark-theme i[class*="van-icon-cross"],
html.dark-theme .buy-header i,
html.dark-theme .order-top-bar i,
html.dark-theme .order-top-bar i.close,
html.dark-theme .order-top-bar i[class*="van-icon-arrow-left"],
html.dark-theme .order-top-bar .van-icon-balance-list-o,
html.dark-theme .buy-header .van-icon-balance-list-o,
html.dark-theme .btn-modal-depo-right,
html.dark-theme .btn-modal-withdraw-right,
html.dark-theme .btn-modal-transfer-right,
html.dark-theme .btn-modal-dReport-right,
html.dark-theme .btn-modal-wReport-right,
html.dark-theme .btn-modal-tReport-right {
  color: #e4e6eb !important;
}

html.dark-theme .van-icon-arrow-left:active,
html.dark-theme .van-icon-cross:active,
html.dark-theme .van-popup__close-icon:active,
html.dark-theme .modal .close:active {
  color: #9ca3af !important;
}

/* Security Modal Items */
html.dark-theme .safe-box,
html.dark-theme .safe-item,
html.dark-theme .safe-cell-box,
html.dark-theme .safe-item[data-v-53f2f86c],
html.dark-theme .safe-item[data-v-41277039] {
  background-color: #1e222d !important;
  background: #1e222d !important;
  border: 1px solid #262a34 !important;
  border-radius: 8px !important;
  color: #f3f4f6 !important;
}

html.dark-theme .safe-title,
html.dark-theme .safe-title[data-v-53f2f86c],
html.dark-theme .safe-title[data-v-41277039] {
  color: #f3f4f6 !important;
}

html.dark-theme .safe-value {
  color: #9aa0a6 !important;
}

/* Identity Verification / Auth Modal */
html.dark-theme .auth-box,
html.dark-theme .auth-status-box,
html.dark-theme .auth-cell-box,
html.dark-theme .verify-1,
html.dark-theme .verify-1[data-v-3582ab38],
html.dark-theme .btn-upload-box,
html.dark-theme .upload-main-box,
html.dark-theme .upload .van-field,
html.dark-theme .btn-upload-box[data-v-bc3eb216],
html.dark-theme .btn-upload-box[data-v-0391334a],
html.dark-theme .btn-upload-box[data-v-c391aa9e] {
  background-color: #1e222d !important;
  background: #1e222d !important;
  border-color: #2b313f !important;
  box-shadow: none !important;
  color: #f3f4f6 !important;
}

html.dark-theme .auth-title,
html.dark-theme .auth-value,
html.dark-theme .auth-hint,
html.dark-theme .auth-msg,
html.dark-theme .upload_hint,
html.dark-theme .lv-txt,
html.dark-theme .lv-txt[data-v-3582ab38] {
  color: #f3f4f6 !important;
}

html.dark-theme .auth-msg.verified,
html.dark-theme .verified[data-v-3582ab38] {
  color: #07c160 !important;
}

html.dark-theme .auth-msg:not(.verified),
html.dark-theme .unverified[data-v-3582ab38] {
  color: #ff976a !important;
}

/* Vant Tags (VIP Level, Verification status, etc.) */
html.dark-theme .van-tag {
  color: #f3f4f6 !important;
}

html.dark-theme .van-tag--plain {
  background-color: transparent !important;
  background: transparent !important;
}

html.dark-theme .van-tag--plain.van-tag--success,
html.dark-theme .van-tag--success {
  background-color: rgba(7, 193, 96, 0.15) !important;
  background: rgba(7, 193, 96, 0.15) !important;
  color: #07c160 !important;
  border-color: #07c160 !important;
}

html.dark-theme .van-tag--plain.van-tag--warning,
html.dark-theme .van-tag--warning {
  background-color: rgba(255, 151, 106, 0.15) !important;
  background: rgba(255, 151, 106, 0.15) !important;
  color: #ff976a !important;
  border-color: #ff976a !important;
}

html.dark-theme .van-tag--plain.van-tag--danger,
html.dark-theme .van-tag--danger {
  background-color: rgba(238, 10, 36, 0.15) !important;
  background: rgba(238, 10, 36, 0.15) !important;
  color: #ee0a24 !important;
  border-color: #ee0a24 !important;
}

html.dark-theme .van-tag--plain.van-tag--primary,
html.dark-theme .van-tag--primary {
  background-color: rgba(25, 137, 250, 0.15) !important;
  background: rgba(25, 137, 250, 0.15) !important;
  color: #1989fa !important;
  border-color: #1989fa !important;
}

html.dark-theme .van-tag--plain:before {
  border-color: inherit !important;
}

html.dark-theme .van-uploader__upload,
html.dark-theme .van-uploader__wrapper,
html.dark-theme .buy-coin .van-uploader__upload {
  background-color: #1e222d !important;
  background: #1e222d !important;
  border: 1px dashed #3a4050 !important;
}

html.dark-theme .van-uploader__upload-icon,
html.dark-theme .van-uploader .van-icon-plus {
  color: #9aa0a6 !important;
}

/* Support Center Modal */
html.dark-theme .help-box,
html.dark-theme .contact-item,
html.dark-theme .contact-title,
html.dark-theme .contact-title-2,
html.dark-theme .contact-value {
  background-color: #1e222d !important;
  background: #1e222d !important;
  color: #f3f4f6 !important;
  border-color: #262a34 !important;
}

/* About Modal */
html.dark-theme .about-box,
html.dark-theme .about-logo,
html.dark-theme .app-title,
html.dark-theme .app-version {
  background-color: transparent !important;
  color: #f3f4f6 !important;
}

/* Privacy & Terms Modals */
html.dark-theme .privacy-title,
html.dark-theme .privacy-body,
html.dark-theme .privacy-content,
html.dark-theme .privacy p,
html.dark-theme .privacy h5,
html.dark-theme .privacy h6,
html.dark-theme .privacy-title[data-v-22b65438],
html.dark-theme .privacy-title[data-v-250520c2],
html.dark-theme .privacy[data-v-22b65438],
html.dark-theme .privacy[data-v-250520c2],
html.dark-theme .privacy p[data-v-22b65438],
html.dark-theme .privacy p[data-v-250520c2] {
  color: #e4e6eb !important;
}

html.dark-theme .privacy strong {
  color: #f3f4f6 !important;
}

/* Wallet Details Modal (#modalWallet) */
html.dark-theme .wallet-detail,
html.dark-theme .wallet-detail-box,
html.dark-theme .wallet-coin-item,
html.dark-theme .wallet-value-box {
  background-color: #181b22 !important;
  color: #f3f4f6 !important;
}

html.dark-theme .wallet-detail-title,
html.dark-theme .wallet-detail-subtitle,
html.dark-theme .wallet-detail-value {
  color: #f3f4f6 !important;
}

html.dark-theme .wallet-detail div[style*="color: rgb(51, 51, 51)"] {
  color: #9aa0a6 !important;
}

/* Notification Modal (#modalNotification) */
html.dark-theme .notification-list {
  background-color: #181b22 !important;
  background: #181b22 !important;
}

html.dark-theme .notification-item {
  background-color: #1e222d !important;
  background: #1e222d !important;
  border: 1px solid #262a34 !important;
  color: #f3f4f6 !important;
}

html.dark-theme .notification-item div {
  color: #f3f4f6 !important;
}

/* Currency List Modal (#modalCurrencylist) */
html.dark-theme .currency-item,
html.dark-theme #selected-item {
  color: #f3f4f6 !important;
}

/* History & Transaction Reports */
html.dark-theme .order-box,
html.dark-theme .order-item,
html.dark-theme .order-box-left,
html.dark-theme .order-box-right,
html.dark-theme .order-time,
html.dark-theme .order-qute,
html.dark-theme .order-symbol,
html.dark-theme .order-type-menu,
html.dark-theme .menu-item {
  background-color: #181b22 !important;
  color: #f3f4f6 !important;
  border-color: #262a34 !important;
}

html.dark-theme .order .van-ellipsis {
  color: #f3f4f6 !important;
}

html.dark-theme .order .empty-box {
  background-color: transparent !important;
  color: #9aa0a6 !important;
}

/* QR Code & Address Boxes */
html.dark-theme .qrcode-box,
html.dark-theme .qrcode-box-2,
html.dark-theme .qrcode-box[data-v-388cbe60],
html.dark-theme .qrcode-box[data-v-a4cea78c],
html.dark-theme .withdraw .qrcode-box[data-v-a4cea78c] {
  background-color: #1e222d !important;
  background: #1e222d !important;
  border: 1px solid #262a34 !important;
  border-radius: 8px !important;
  color: #f3f4f6 !important;
}

html.dark-theme .qrcode-box img#qrcode-transfer,
html.dark-theme .qrcode-box img[data-v-388cbe60],
html.dark-theme .qrcode-box img {
  background-color: #ffffff !important;
  padding: 8px !important;
  border-radius: 8px !important;
  display: inline-block !important;
}

html.dark-theme .qr-hint-box,
html.dark-theme .qr-hint-box div {
  color: #9aa0a6 !important;
}

html.dark-theme .address-box,
html.dark-theme .address-detail-box,
html.dark-theme .address-detail-box[data-v-388cbe60],
html.dark-theme .withdraw-cell-box,
html.dark-theme .withdraw-detail-box,
html.dark-theme .withdraw-address,
html.dark-theme .transfer-box {
  background-color: #1e222d !important;
  background: #1e222d !important;
  border-color: #262a34 !important;
  color: #f3f4f6 !important;
}

html.dark-theme .address-detail-box {
  color: #f3f4f6 !important;
}

html.dark-theme ul.notic,
html.dark-theme ul.notic li {
  color: #9aa0a6 !important;
}

/* Form Controls & Inputs in Dialogs */
html.dark-theme .modal .van-cell,
html.dark-theme .van-popup .van-cell,
html.dark-theme .modal .van-field,
html.dark-theme .van-popup .van-field,
html.dark-theme .modal .input-amount,
html.dark-theme .modal .input-field,
html.dark-theme .modal .input-box,
html.dark-theme .modal .login-cell,
html.dark-theme .modal .form-box {
  background-color: #1e222d !important;
  background: #1e222d !important;
  border-color: #2b313f !important;
  color: #f3f4f6 !important;
}

html.dark-theme .modal .van-field__control,
html.dark-theme .van-popup .van-field__control,
html.dark-theme .modal input,
html.dark-theme .van-popup input,
html.dark-theme .modal select,
html.dark-theme .van-popup select {
  background-color: transparent !important;
  background: transparent !important;
  color: #f3f4f6 !important;
}

html.dark-theme .modal .van-field__control::placeholder,
html.dark-theme .van-popup .van-field__control::placeholder,
html.dark-theme .modal input::placeholder {
  color: #6b7280 !important;
}

html.dark-theme .modal .login-title,
html.dark-theme .modal .passwod-hint {
  color: #f3f4f6 !important;
}

/* Dropdown Menus in Dialogs (Currency / Networks) */
html.dark-theme .modal .van-dropdown-menu__bar,
html.dark-theme .van-popup .van-dropdown-menu__bar {
  background-color: #1e222d !important;
  background: #1e222d !important;
  border: 1px solid #2b313f !important;
  color: #f3f4f6 !important;
}

html.dark-theme .modal .van-dropdown-menu__title,
html.dark-theme .van-popup .van-dropdown-menu__title,
html.dark-theme .modal .van-dropdown-menu__title .van-ellipsis {
  color: #f3f4f6 !important;
}

html.dark-theme .dropdown-currency,
html.dark-theme .dropdownFrom,
html.dark-theme .dropdownTo,
html.dark-theme .van-dropdown-item__content {
  background-color: #1e222d !important;
  background: #1e222d !important;
  border: 1px solid #262a34 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

html.dark-theme .van-dropdown-item__option {
  background-color: #1e222d !important;
  background: #1e222d !important;
  color: #f3f4f6 !important;
}

html.dark-theme .van-dropdown-item__option .van-cell__title,
html.dark-theme .van-dropdown-item__option .van-cell__title span {
  color: #f3f4f6 !important;
}

html.dark-theme .van-dropdown-item__option--active {
  color: #3b82f6 !important;
}

html.dark-theme .van-dropdown-item__option--active .van-cell__title,
html.dark-theme .van-dropdown-item__option--active .van-cell__title span {
  color: #3b82f6 !important;
}

html.dark-theme .van-dropdown-item__icon {
  color: #3b82f6 !important;
}

/* Address Selection Modals (#modaladdress & #withdrawaddress) */
html.dark-theme #modaladdress .van-dropdown-item__content,
html.dark-theme #withdrawaddress .van-dropdown-item__content,
html.dark-theme #modaladdress .van-cell,
html.dark-theme #withdrawaddress .van-cell {
  background-color: #1e222d !important;
  background: #1e222d !important;
  border-color: #2b313f !important;
  color: #f3f4f6 !important;
}

html.dark-theme #modaladdress [style*="color: rgb(0, 0, 0)"],
html.dark-theme #withdrawaddress [style*="color: rgb(0, 0, 0)"],
html.dark-theme #modaladdress .address-list span,
html.dark-theme #withdrawaddress .address-list span {
  color: #f3f4f6 !important;
}

/* Vant Picker (Datetime & Currency Selection) */
html.dark-theme .van-picker {
  background-color: #181b22 !important;
  background: #181b22 !important;
}

html.dark-theme .van-picker__toolbar {
  background-color: #181b22 !important;
  background: #181b22 !important;
  border-bottom: 1px solid #262a34 !important;
}

html.dark-theme .van-picker__title {
  color: #f3f4f6 !important;
}

html.dark-theme .van-picker__cancel {
  color: #9aa0a6 !important;
}

html.dark-theme .van-picker__confirm {
  color: #3b82f6 !important;
}

html.dark-theme .van-picker-column__item {
  color: #9aa0a6 !important;
}

html.dark-theme .van-picker-column__item--selected,
html.dark-theme .van-picker-column__item--selected .van-ellipsis {
  color: #f3f4f6 !important;
  font-weight: 600 !important;
}

html.dark-theme .van-picker__frame {
  border-top: 1px solid #2b313f !important;
  border-bottom: 1px solid #2b313f !important;
}

html.dark-theme .van-picker__mask {
  background-image: linear-gradient(180deg, rgba(24, 27, 34, 0.9), rgba(24, 27, 34, 0.4)),
                    linear-gradient(0deg, rgba(24, 27, 34, 0.9), rgba(24, 27, 34, 0.4)) !important;
}

/* Buttons inside Dialogs */
html.dark-theme .modal .btn-copy,
html.dark-theme .modal .btn-copy2 {
  background-color: #2563eb !important;
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

html.dark-theme .modal button[style*="background: rgb(0, 0, 0)"],
html.dark-theme .modal button[style*="background:rgb(0,0,0)"],
html.dark-theme .modal button[style*="background-color: rgb(0, 0, 0)"],
html.dark-theme .modal .van-button--info {
  background-color: #2563eb !important;
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

html.dark-theme .modal .van-button--default:not(.btn-copy):not(.van-dialog__confirm):not(.van-dialog__cancel) {
  background-color: #262a34 !important;
  background: #262a34 !important;
  border-color: #363c4a !important;
  color: #f3f4f6 !important;
}

/* Change Password Dialog (#modalChangepwd) */
html.dark-theme #modalChangepwd,
html.dark-theme #modalChangepwd .modal-content,
html.dark-theme #modalChangepwd .modal-dialog,
html.dark-theme #modalChangepwd .van-popup,
html.dark-theme #modalChangepwd .van-popup--bottom,
html.dark-theme #modalChangepwd .login,
html.dark-theme .modal-changepwd,
html.dark-theme .modal-changepwd .van-popup,
html.dark-theme .modal-changepwd .login {
  background-color: #181b22 !important;
  background: #181b22 !important;
  color: #e4e6eb !important;
  border-color: #262a34 !important;
}

html.dark-theme #modalChangepwd .next-box,
html.dark-theme .modal-changepwd .next-box {
  background-color: transparent !important;
  background: transparent !important;
}

html.dark-theme #modalChangepwd .fd-box,
html.dark-theme .modal-changepwd .fd-box {
  background: transparent !important;
  background-color: transparent !important;
}

html.dark-theme #modalChangepwd .round-fd,
html.dark-theme .modal-changepwd .round-fd {
  background-color: #1e222d !important;
  background: #1e222d !important;
  border: 1px solid #2b313f !important;
  border-radius: 6px !important;
}

html.dark-theme #modalChangepwd .round-fd input.van-field__control,
html.dark-theme .modal-changepwd .round-fd input.van-field__control {
  background: transparent !important;
  background-color: transparent !important;
  color: #f3f4f6 !important;
}

html.dark-theme #modalChangepwd .round-fd input.van-field__control::placeholder,
html.dark-theme .modal-changepwd .round-fd input.van-field__control::placeholder {
  color: #6b7280 !important;
}

html.dark-theme #modalChangepwd .input-hint,
html.dark-theme .modal-changepwd .input-hint,
html.dark-theme #modalChangepwd .input-hint div,
html.dark-theme .modal-changepwd .input-hint div {
  color: #9aa0a6 !important;
}

html.dark-theme #modalChangepwd .username,
html.dark-theme .modal-changepwd .username {
  color: #f3f4f6 !important;
}

html.dark-theme #modalChangepwd .btn-login,
html.dark-theme .modal-changepwd .btn-login,
html.dark-theme #modalChangepwd #btnsub,
html.dark-theme .modal-changepwd #btnsub {
  background-color: #2563eb !important;
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

html.dark-theme #modalChangepwd .close,
html.dark-theme .modal-changepwd .close {
  color: #e4e6eb !important;
}

html.dark-theme .van-divider {
  border-color: #262a34 !important;
}
