/* =====================================================================
   Brokerage Light Theme
   Visual direction: modern Chinese securities / brokerage mobile apps.
   UI-only skin. Existing page structure, JS, API calls and trading logic remain intact.
   ===================================================================== */
:root{
  --broker-red:#d9272e;
  --broker-red-dark:#b91f25;
  --broker-red-soft:#fff1f2;
  --broker-green:#1aa981;
  --broker-green-soft:#eaf8f3;
  --broker-blue:#2e73d2;
  --broker-ink:#202329;
  --broker-text:#343942;
  --broker-muted:#8d939d;
  --broker-line:#e8e9ed;
  --broker-bg:#f6f7f9;
  --broker-card:#ffffff;
  --broker-shadow:0 6px 22px rgba(28,36,49,.07);
  --broker-radius:14px;
}

html{background:var(--broker-bg)!important;color-scheme:light!important;}
body.broker-theme,
body.broker-theme.ig-profile-page,
body.broker-theme.ig-binary-page,
body.broker-theme.ig-future-page{
  background:var(--broker-bg)!important;
  background-image:none!important;
  color:var(--broker-text)!important;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif!important;
}
body.broker-theme:before{display:none!important;}
body.broker-theme a{color:inherit;}
body.broker-theme .text-white{color:var(--broker-ink)!important;}
body.broker-theme .text-muted{color:var(--broker-muted)!important;}
body.broker-theme .container,
body.broker-theme .container-fluid{--bs-gutter-x:24px;}

/* ---------- Shared top headers ---------- */
body.broker-theme .header,
body.broker-theme .language-header,
body.broker-theme .trading-header,
body.broker-theme .header-section,
body.broker-theme .ig-header,
body.broker-theme .modal-header{
  background:#fff!important;
  background-image:none!important;
  border-bottom:1px solid var(--broker-line)!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  color:var(--broker-ink)!important;
}
body.broker-theme .header,
body.broker-theme .language-header,
body.broker-theme .trading-header,
body.broker-theme .modal-header{
  min-height:54px!important;
  height:54px!important;
  padding:0 15px!important;
}
body.broker-theme .header-title,
body.broker-theme .language-title,
body.broker-theme .trading-title,
body.broker-theme .modal-title,
body.broker-theme .pair-symbol{
  color:var(--broker-ink)!important;
  font-size:17px!important;
  font-weight:650!important;
  text-shadow:none!important;
}
body.broker-theme .back-btn,
body.broker-theme .header .back-btn,
body.broker-theme .language-header .back-btn,
body.broker-theme .trading-header .back-btn{
  color:var(--broker-ink)!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  filter:none!important;
}
body.broker-theme .back-btn i{color:var(--broker-ink)!important;filter:none!important;text-shadow:none!important;}

/* ---------- Home header ---------- */
body.broker-theme .ig-header{position:sticky;top:0;z-index:30;}
body.broker-theme .ig-header .container-fluid{max-width:980px!important;}
body.broker-theme .ig-header-inner{height:64px!important;}
body.broker-theme .ig-brand{gap:9px!important;color:var(--broker-ink)!important;}
body.broker-theme .ig-mark{
  width:34px;height:34px;border-radius:50%;display:grid;place-items:center;
  background:var(--broker-red)!important;color:#fff!important;
  font-size:17px!important;letter-spacing:-1px!important;line-height:1!important;
  box-shadow:0 2px 8px rgba(217,39,46,.22);
}
body.broker-theme .ig-brand-name{
  color:var(--broker-ink)!important;font-size:18px!important;font-weight:700!important;letter-spacing:0!important;
}
body.broker-theme .ig-brand-name::after{
  content:" Securities";display:block;color:#969ba4;font-size:8px;font-weight:600;letter-spacing:.6px;line-height:9px;
}
body.broker-theme .ig-header-actions{gap:16px!important;}
body.broker-theme .ig-header-action{color:#5e646d!important;font-size:20px!important;}
body.broker-theme .ig-alert-dot{background:var(--broker-red)!important;box-shadow:none!important;width:7px!important;height:7px!important;}
body.broker-theme .ig-profile-action{color:#5e646d!important;gap:6px!important;}
body.broker-theme .ig-profile-action span{
  width:32px!important;height:32px!important;border:1px solid #dadde2!important;background:#fafafa!important;
  color:var(--broker-red)!important;font-size:13px!important;box-shadow:none!important;
}
body.broker-theme .ig-profile-action i{font-size:12px!important;color:#9a9fa8!important;}

/* ---------- Home banner ---------- */
body.broker-theme .ig-hero-slider,
body.broker-theme .hero-banner{
  margin:12px 14px 10px!important;
  border:0!important;
  border-radius:18px!important;
  background:linear-gradient(110deg,#e7f9ff 0%,#effcf5 56%,#fff1df 100%)!important;
  box-shadow:var(--broker-shadow)!important;
  overflow:hidden!important;
}
body.broker-theme .ig-slide{aspect-ratio:2.55/1!important;}
body.broker-theme .ig-slide img{border-radius:18px!important;}
body.broker-theme .ig-slider-arrow{
  background:rgba(255,255,255,.78)!important;color:#555!important;border:1px solid rgba(0,0,0,.06)!important;
  box-shadow:0 3px 10px rgba(0,0,0,.08)!important;
}
body.broker-theme .ig-slider-dots button,
body.broker-theme .ig-slider-dots span{background:rgba(70,74,81,.22)!important;box-shadow:none!important;}
body.broker-theme .ig-slider-dots .active{background:var(--broker-red)!important;}

/* ---------- Notice ---------- */
body.broker-theme .notice-bar-section{padding:0 14px 6px!important;}
body.broker-theme .notice-bar{
  min-height:35px;padding:4px 10px!important;border-radius:10px;background:#fff!important;
  color:#666b73!important;border:1px solid #f0f0f1!important;
}
body.broker-theme .notice-item{color:#646a73!important;font-size:12px!important;}
body.broker-theme .notice-img,
body.broker-theme .arrow-img{filter:grayscale(1) opacity(.6)!important;}

/* ---------- Home quick actions, screenshot-inspired tile grid ---------- */
body.broker-theme .trading-functions{padding:7px 14px 12px!important;}
body.broker-theme .trading-functions .row{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;flex-wrap:initial!important;
}
body.broker-theme .trading-functions .col{width:auto!important;max-width:none!important;flex:none!important;}
body.broker-theme .trading-functions .function-card{
  min-height:83px!important;padding:11px 6px 8px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;
  background:#fff!important;border:1px solid #f0f0f1!important;border-radius:14px!important;
  box-shadow:0 4px 14px rgba(31,39,52,.055)!important;color:var(--broker-text)!important;
}
body.broker-theme .trading-functions .function-card:hover{transform:translateY(-1px)!important;border-color:#ead8d9!important;}
body.broker-theme .trading-functions .function-icon{
  width:42px!important;height:42px!important;margin:0 auto 5px!important;padding:0!important;border-radius:12px!important;
  background:#f7f8fa!important;border:0!important;box-shadow:none!important;
}
body.broker-theme .trading-functions .function-icon img{width:100%!important;height:100%!important;object-fit:contain!important;}
body.broker-theme .function-label{font-size:12px!important;font-weight:500!important;color:#454a52!important;white-space:nowrap!important;}

/* ---------- Home markets = product recommendations ---------- */
body.broker-theme .market-tabs{background:transparent!important;border:0!important;padding:9px 14px 4px!important;}
body.broker-theme .market-nav{border:0!important;}
body.broker-theme .market-nav .nav-link{
  color:#8a9098!important;background:transparent!important;border:0!important;border-radius:0!important;font-size:14px!important;
}
body.broker-theme .market-nav .nav-link.active{color:var(--broker-red)!important;border-bottom:2px solid var(--broker-red)!important;}
body.broker-theme .featured-markets{padding:8px 14px 14px!important;}
body.broker-theme .featured-markets::before{
  content:attr(data-recommendations-label);display:block;margin:0 0 10px 2px;color:#353a42;font-weight:650;font-size:15px;
}
body.broker-theme .featured-market-grid{
  display:flex!important;gap:9px!important;overflow-x:auto!important;scrollbar-width:none;padding-bottom:3px!important;
}
body.broker-theme .featured-market-grid::-webkit-scrollbar{display:none;}
body.broker-theme .market-highlight{
  flex:0 0 142px!important;min-width:142px!important;padding:13px 11px 10px!important;border-radius:12px!important;
  border:1px solid #eeeeef!important;background:#fff!important;box-shadow:0 4px 14px rgba(29,37,49,.045)!important;
}
body.broker-theme .highlight-pair{font-size:14px!important;color:#3c4149!important;}
body.broker-theme .highlight-pair span{color:#8e949d!important;}
body.broker-theme .highlight-price{font-size:18px!important;color:var(--broker-red)!important;}
body.broker-theme .highlight-usd{color:#9ca1aa!important;font-size:11px!important;}
body.broker-theme .highlight-change{background:transparent!important;color:var(--broker-red)!important;padding:0!important;font-size:11px!important;}
body.broker-theme .highlight-change.negative{color:var(--broker-green)!important;}
body.broker-theme .highlight-bottom{grid-template-columns:24px 1fr!important;gap:6px!important;}
body.broker-theme .highlight-bottom img{width:24px!important;height:24px!important;}
body.broker-theme .highlight-bottom svg{grid-column:1/-1;height:30px!important;}
body.broker-theme .highlight-bottom polyline{stroke:var(--broker-red)!important;filter:none!important;}
body.broker-theme .trading-pairs{
  margin:0 14px 18px!important;border:0!important;border-radius:14px!important;background:#fff!important;
  box-shadow:0 4px 14px rgba(29,37,49,.045)!important;
}
body.broker-theme .trading-pair-item{border-bottom:1px solid #f0f1f3!important;background:#fff!important;}
body.broker-theme .trading-pair-item:hover{background:#fafafa!important;}
body.broker-theme .pair-name,body.broker-theme .coin-name,body.broker-theme .pair-symbol-name{color:#343941!important;}
body.broker-theme .pair-price,body.broker-theme .current-price{color:var(--broker-red);}

/* ---------- Bottom navigation ---------- */
body.broker-theme .bottom-nav{
  height:70px!important;background:rgba(255,255,255,.98)!important;border-top:1px solid #e8e9ec!important;
  box-shadow:0 -5px 16px rgba(28,36,49,.05)!important;backdrop-filter:blur(14px)!important;
}
body.broker-theme .bottom-nav .nav-item{color:#989da5!important;padding:8px 1px 5px!important;background:transparent!important;}
body.broker-theme .bottom-nav .nav-item i{font-size:20px!important;margin-bottom:4px!important;text-shadow:none!important;filter:none!important;}
body.broker-theme .bottom-nav .nav-item .nav-label{font-size:10.5px!important;color:#8f959e!important;}
body.broker-theme .bottom-nav .nav-item.active,
body.broker-theme .bottom-nav .nav-item.active i,
body.broker-theme .bottom-nav .nav-item.active .nav-label{color:var(--broker-red)!important;text-shadow:none!important;}
body.broker-theme iframe[src="nav.html"]{height:70px!important;background:#fff!important;border-top:0!important;box-shadow:none!important;}

/* ---------- Generic cards, panels and lists ---------- */
body.broker-theme .card,
body.broker-theme .panel,
body.broker-theme .content-card,
body.broker-theme .info-card,
body.broker-theme .menu-card,
body.broker-theme .balance-card,
body.broker-theme .asset-card,
body.broker-theme .record-item,
body.broker-theme .menu-item,
body.broker-theme .balance-info,
body.broker-theme .instructions,
body.broker-theme .safe-hero,
body.broker-theme .cert-hero,
body.broker-theme .money-hero,
body.broker-theme .deposit-option,
body.broker-theme .withdrawal-option{
  background:#fff!important;background-image:none!important;border:1px solid #e8e9ed!important;
  color:var(--broker-text)!important;box-shadow:none!important;
}
body.broker-theme .section-title,
body.broker-theme .quick-entry-title,
body.broker-theme h1,body.broker-theme h2,body.broker-theme h3,body.broker-theme h4,body.broker-theme h5,
body.broker-theme .card-title,body.broker-theme .menu-text{color:var(--broker-ink)!important;text-shadow:none!important;}
body.broker-theme p,body.broker-theme .subtitle,body.broker-theme .description,body.broker-theme small{color:#757b84;}
body.broker-theme .menu-item{border-radius:0!important;border-left:0!important;border-right:0!important;min-height:56px!important;}
body.broker-theme .menu-item:first-of-type{border-top-left-radius:14px!important;border-top-right-radius:14px!important;border-left:1px solid #e8e9ed!important;border-right:1px solid #e8e9ed!important;}
body.broker-theme .menu-item:last-of-type{border-bottom-left-radius:14px!important;border-bottom-right-radius:14px!important;border-left:1px solid #e8e9ed!important;border-right:1px solid #e8e9ed!important;}
body.broker-theme .menu-icon{color:var(--broker-red)!important;text-shadow:none!important;}
body.broker-theme .menu-arrow{color:#b5b9bf!important;}
body.broker-theme .menu-status{color:#e49a25!important;}

/* ---------- Form controls ---------- */
body.broker-theme .form-label{color:#4b5057!important;font-weight:600!important;}
body.broker-theme .form-control,
body.broker-theme .form-select,
body.broker-theme select,
body.broker-theme textarea,
body.broker-theme .amount-input-container,
body.broker-theme .currency-selector{
  background:#fff!important;color:#24282f!important;border:1px solid #dfe2e7!important;box-shadow:none!important;
}
body.broker-theme .form-control::placeholder,body.broker-theme textarea::placeholder{color:#b1b5bc!important;}
body.broker-theme .form-control:focus,
body.broker-theme .form-select:focus,
body.broker-theme select:focus,
body.broker-theme textarea:focus{
  border-color:#d98a8e!important;box-shadow:0 0 0 3px rgba(217,39,46,.08)!important;
}
body.broker-theme .btn-primary,
body.broker-theme .submit-btn,
body.broker-theme button.submit-btn,
body.broker-theme .primary-btn{
  background:var(--broker-red)!important;border-color:var(--broker-red)!important;color:#fff!important;
  box-shadow:none!important;border-radius:10px!important;
}
body.broker-theme .btn-primary:hover,
body.broker-theme .submit-btn:hover{background:var(--broker-red-dark)!important;border-color:var(--broker-red-dark)!important;}
body.broker-theme .btn-outline-primary{color:var(--broker-red)!important;border-color:#e3a0a3!important;background:#fff!important;}

/* ---------- Deposit / withdrawal ---------- */
body.broker-theme.page-money{background:var(--broker-bg)!important;}
body.broker-theme.page-money .modal-body{background:var(--broker-bg)!important;}
body.broker-theme.page-money .money-hero{
  position:relative!important;background:linear-gradient(110deg,#fff8f3 0%,#effcf7 100%)!important;
  border:1px solid #ebecef!important;border-radius:16px!important;color:var(--broker-ink)!important;overflow:hidden!important;
}
body.broker-theme.page-money .money-hero:after{
  content:"";position:absolute;right:-25px;top:-34px;width:155px;height:155px;border-radius:50%;
  background:radial-gradient(circle at 35% 40%,rgba(217,39,46,.18),rgba(26,169,129,.11) 45%,transparent 70%);
}
body.broker-theme.page-money .money-hero h2{color:var(--broker-ink)!important;position:relative;z-index:1;}
body.broker-theme.page-money .money-hero p{color:#707680!important;position:relative;z-index:1;}
body.broker-theme.page-money #network-options .network-option,
body.broker-theme.page-money .chain-btn{
  background:#fff!important;color:#4a5058!important;border:1px solid #dfe2e7!important;box-shadow:none!important;
}
body.broker-theme.page-money #network-options .network-option.selected,
body.broker-theme.page-money .chain-btn.btn-primary{
  background:var(--broker-red-soft)!important;color:var(--broker-red)!important;border-color:var(--broker-red)!important;box-shadow:none!important;
}
body.broker-theme.page-money .crypto-option{
  background:#fff!important;border:1px solid #e5e7eb!important;color:#333!important;box-shadow:none!important;
}
body.broker-theme.page-money .crypto-option p{color:#3c4149!important;}
body.broker-theme.page-money .upload-area{background:#fff!important;border:1px dashed #d7d9de!important;color:#8e949d!important;}
body.broker-theme.page-money .wallet-address p{color:#8c929b!important;}
body.broker-theme.page-money .deposit-copy-address-btn{background:#fff!important;color:#555!important;border:1px solid #dfe2e7!important;}
body.broker-theme.page-money .balance-info,body.broker-theme.page-money .instructions{border-radius:12px!important;}

/* ---------- Certification / security / settings ---------- */
body.broker-theme.page-cert .container-fluid,
body.broker-theme.page-safe .container-fluid{background:transparent!important;}
body.broker-theme.page-cert .cert-stepper{color:#8a9098!important;}
body.broker-theme.page-cert .cert-step b{background:#fff!important;color:#9da2aa!important;border:1px solid #dfe2e7!important;box-shadow:none!important;}
body.broker-theme.page-cert .cert-step.active b{background:var(--broker-red)!important;color:#fff!important;border-color:var(--broker-red)!important;}
body.broker-theme.page-cert .cert-line{background:#dfe2e7!important;}
body.broker-theme.page-cert .cert-hero,
body.broker-theme.page-safe .safe-hero{background:linear-gradient(115deg,#fff7f2,#eefaf6)!important;border-radius:16px!important;}
body.broker-theme.page-cert .cert-hero img,
body.broker-theme.page-safe .safe-hero img{filter:none!important;opacity:.9!important;}
body.broker-theme.page-language .language-option{background:#fff!important;border:1px solid #e7e8eb!important;color:#343941!important;box-shadow:none!important;}
body.broker-theme.page-language .language-option.active{border-color:#e2a1a4!important;background:var(--broker-red-soft)!important;}
body.broker-theme.page-language .language-name{color:#343941!important;}
body.broker-theme.page-language .language-check{background:var(--broker-red)!important;color:#fff!important;}
body.broker-theme.page-password .password-container{background:transparent!important;}

/* ---------- Profile ---------- */
body.broker-theme.ig-profile-page .profile-container{background:transparent!important;padding-top:18px!important;}
body.broker-theme.ig-profile-page .profile-header{background:#fff!important;border:1px solid #e8e9ed!important;border-radius:18px!important;padding:20px 14px!important;margin-bottom:14px!important;}
body.broker-theme.ig-profile-page .profile-avatar{
  width:66px!important;height:66px!important;background:linear-gradient(145deg,#fff0f1,#ffe7e8)!important;
  border:1px solid #f1c7c9!important;box-shadow:none!important;
}
body.broker-theme.ig-profile-page .profile-avatar i{color:var(--broker-red)!important;text-shadow:none!important;font-size:28px!important;}
body.broker-theme.ig-profile-page .profile-name{color:var(--broker-ink)!important;}
body.broker-theme.ig-profile-page .profile-id{color:#8c929b!important;}
body.broker-theme.ig-profile-page .copy-icon{color:var(--broker-red)!important;filter:none!important;}
body.broker-theme.ig-profile-page .welcome-section,
body.broker-theme.ig-profile-page .action-card{
  background:#fff!important;border:1px solid #e8e9ed!important;box-shadow:none!important;color:var(--broker-text)!important;
}
body.broker-theme.ig-profile-page .quick-options{gap:10px!important;}
body.broker-theme.ig-profile-page .quick-option-icon,
body.broker-theme.ig-profile-page .action-card-icon{
  background:#fafafa!important;border:1px solid #ececef!important;box-shadow:none!important;
}
body.broker-theme.ig-profile-page .quick-option-icon img,
body.broker-theme.ig-profile-page .action-card-icon img{filter:none!important;}
body.broker-theme.ig-profile-page .quick-option-text,
body.broker-theme.ig-profile-page .action-card-title{color:#41464e!important;}
body.broker-theme.ig-profile-page .action-card-subtitle{color:#959aa3!important;}
body.broker-theme.ig-profile-page .general-section{background:transparent!important;}
body.broker-theme.ig-profile-page .exit-button{background:#fff!important;color:var(--broker-red)!important;border:1px solid #e6a9ac!important;box-shadow:none!important;}
body.broker-theme.ig-profile-page .exit-button i{color:var(--broker-red)!important;text-shadow:none!important;}

/* ---------- Fund / record / help / general data pages ---------- */
body.broker-theme .fund-container,
body.broker-theme .record-container,
body.broker-theme .help-container,
body.broker-theme .about-container,
body.broker-theme .main-content{background:transparent!important;}
body.broker-theme .record-tabs,
body.broker-theme .tabs,
body.broker-theme .contract-tabs{
  background:#fff!important;border-bottom:1px solid var(--broker-line)!important;box-shadow:none!important;
}
body.broker-theme .record-tabs button,
body.broker-theme .tabs button,
body.broker-theme .contract-tabs button{color:#8c929b!important;background:transparent!important;box-shadow:none!important;}
body.broker-theme .record-tabs button.active,
body.broker-theme .tabs button.active,
body.broker-theme .contract-tabs button.active,
body.broker-theme #quote-delivery-tab{
  color:var(--broker-red)!important;border-bottom-color:var(--broker-red)!important;background:transparent!important;text-shadow:none!important;
}
body.broker-theme .record-amount.positive,body.broker-theme .positive{color:var(--broker-red)!important;}
body.broker-theme .record-amount.negative,body.broker-theme .negative{color:var(--broker-green)!important;}

/* ---------- Binary / futures trading pages ---------- */
body.broker-theme.ig-binary-page .main-container,
body.broker-theme.ig-future-page .main-container{background:var(--broker-bg)!important;max-width:920px!important;}
body.broker-theme.ig-binary-page .header,
body.broker-theme.ig-future-page .trading-header{background:#fff!important;border-bottom:1px solid var(--broker-line)!important;}
body.broker-theme.ig-binary-page .pair-symbol,
body.broker-theme.ig-future-page .pair-symbol{color:var(--broker-ink)!important;}
body.broker-theme.ig-binary-page .header-right .icon-btn,
body.broker-theme.ig-future-page .icon-btn,
body.broker-theme.ig-binary-page .header-right i,
body.broker-theme.ig-future-page .trading-header i{color:#515760!important;filter:none!important;text-shadow:none!important;}
body.broker-theme.ig-binary-page .contract-tabs{height:62px!important;background:#fff!important;border-bottom:1px solid var(--broker-line)!important;}
body.broker-theme.ig-binary-page .contract-tabs button{font-size:16px!important;color:#9a9fa7!important;}
body.broker-theme.ig-binary-page .price-section{
  background:#fff!important;border-bottom:1px solid var(--broker-line)!important;padding:18px 18px 14px!important;
}
body.broker-theme.ig-binary-page .main-price{color:var(--broker-red)!important;text-shadow:none!important;font-size:38px!important;}
body.broker-theme.ig-binary-page .price-details{color:#50565e!important;}
body.broker-theme.ig-binary-page .stat-label{color:#989da5!important;}
body.broker-theme.ig-binary-page .stat-value{color:#434850!important;}
body.broker-theme .ig-change-badge{background:var(--broker-red-soft)!important;color:var(--broker-red)!important;}
body.broker-theme .ig-time-toolbar{
  height:58px!important;background:#fff!important;border-bottom:1px solid var(--broker-line)!important;color:#8b9199!important;padding:0 14px!important;gap:22px!important;
}
body.broker-theme .ig-time-toolbar button.active{color:var(--broker-red)!important;border-bottom-color:var(--broker-red)!important;}
body.broker-theme .ig-time-toolbar .tools{color:#8f959d!important;}
body.broker-theme.ig-binary-page .chart-section{background:#fff!important;padding:0 8px 10px!important;}
body.broker-theme .ig-ma-strip{background:#fff!important;color:#4f7dbb!important;}
body.broker-theme.ig-binary-page #kline-chart{background:#fff!important;border:1px solid #ececef!important;}
body.broker-theme .ig-binary-order-panel{
  background:#fff!important;border:1px solid #e8e9ed!important;box-shadow:none!important;color:var(--broker-text)!important;
}
body.broker-theme .ig-binary-order-panel input,
body.broker-theme .ig-binary-order-panel select{background:#fff!important;color:#333!important;border-color:#dfe2e7!important;}
body.broker-theme .btn-buy-long,body.broker-theme .buy-btn,body.broker-theme .btn-buy{background:var(--broker-red)!important;color:#fff!important;border-color:var(--broker-red)!important;}
body.broker-theme .btn-sell-short,body.broker-theme .sell-btn,body.broker-theme .btn-sell{background:var(--broker-green)!important;color:#fff!important;border-color:var(--broker-green)!important;}
body.broker-theme .binary-floating-action{box-shadow:none!important;}

/* ---------- Staking cards ---------- */
body.broker-theme .staking-card,
body.broker-theme .product-card,
body.broker-theme .plan-card{background:#fff!important;border:1px solid #e8e9ed!important;box-shadow:none!important;color:var(--broker-text)!important;}
body.broker-theme .staking-card .rate,body.broker-theme .apy,body.broker-theme .yield-rate{color:var(--broker-red)!important;}

/* ---------- Login / registration ---------- */
body.broker-theme.login-page,
body.broker-theme.register-page{background:linear-gradient(180deg,#fafafa,#f4f5f7)!important;}
body.broker-theme.login-page .login-container,
body.broker-theme.register-page .register-container,
body.broker-theme .auth-container,
body.broker-theme .login-card,
body.broker-theme .register-card{
  background:#fff!important;border:1px solid #e8e9ed!important;box-shadow:0 12px 38px rgba(28,36,49,.08)!important;color:var(--broker-text)!important;
}
body.broker-theme.login-page .login-title,
body.broker-theme.register-page .register-title{color:var(--broker-ink)!important;}

/* ---------- Prevent legacy dark inline surfaces from leaking through ---------- */
body.broker-theme [style*="background: #131a2e"],
body.broker-theme [style*="background:#131a2e"],
body.broker-theme [style*="background: #2a2a3e"],
body.broker-theme [style*="background:#2a2a3e"]{background:#fff!important;color:var(--broker-text)!important;border-color:#e3e5e8!important;}

/* ---------- Mobile standardization ---------- */
@media(max-width:600px), (min-width: 601px){
  body.broker-theme .ig-header-inner{height:58px!important;}
  body.broker-theme .ig-brand-name{font-size:16px!important;}
  body.broker-theme .ig-header-actions{gap:12px!important;}
  body.broker-theme .ig-header-action{font-size:18px!important;}
  body.broker-theme .ig-profile-action span{width:30px!important;height:30px!important;}
  body.broker-theme .ig-slider-arrow{display:none!important;}
  body.broker-theme .trading-functions .row{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;}
  body.broker-theme .trading-functions .function-card{min-height:76px!important;padding:9px 3px 7px!important;}
  body.broker-theme .trading-functions .function-icon{width:38px!important;height:38px!important;}
  body.broker-theme .function-label{font-size:11px!important;}
  body.broker-theme .featured-markets::before{font-size:14px!important;}
  body.broker-theme .market-highlight{flex-basis:126px!important;min-width:126px!important;}
  body.broker-theme .header,
  body.broker-theme .language-header,
  body.broker-theme .trading-header,
  body.broker-theme .modal-header{width:100%!important;max-width:none!important;min-width:0!important;left:auto!important;right:auto!important;margin:0!important;}
  body.broker-theme.page-cert .cert-hero{min-height:142px!important;}
  body.broker-theme.ig-binary-page .price-section{grid-template-columns:1fr 1.15fr!important;gap:12px!important;}
  body.broker-theme.ig-binary-page .main-price{font-size:34px!important;}
}

@media(max-width:360px){
  body.broker-theme .trading-functions .row{gap:6px!important;}
  body.broker-theme .trading-functions .function-card{min-height:72px!important;}
  body.broker-theme .trading-functions .function-icon{width:34px!important;height:34px!important;}
  body.broker-theme .function-label{font-size:10px!important;}
}

/* =====================================================================
   White-base pass v2 (2026-08-11)
   Requirement: page surfaces must stay white/light. Blue is an accent only
   for supporting icons/links/status elements, never a large card background.
   ===================================================================== */
:root{
  --broker-bg:#ffffff;
  --broker-card:#ffffff;
  --broker-blue:#1677d2;
  --broker-blue-soft:#eef6ff;
}

html,
body.broker-theme,
body.broker-theme.ig-profile-page,
body.broker-theme.ig-binary-page,
body.broker-theme.ig-future-page,
body.broker-theme.page-money,
body.broker-theme .main-content,
body.broker-theme .main-container,
body.broker-theme .modal-body,
body.broker-theme .content,
body.broker-theme .page-content,
body.broker-theme .tab-content{
  background:#fff!important;
  background-image:none!important;
}

/* Generic large surfaces: white only */
body.broker-theme .balance-section,
body.broker-theme .history-section,
body.broker-theme .portfolio-section,
body.broker-theme .financial-section,
body.broker-theme .contract-section,
body.broker-theme .account-section,
body.broker-theme .asset-section,
body.broker-theme .wallet-section,
body.broker-theme .overview-section,
body.broker-theme .detail-section,
body.broker-theme .form-section,
body.broker-theme .settings-section,
body.broker-theme .security-section,
body.broker-theme .record-section,
body.broker-theme .support-section,
body.broker-theme .history-item,
body.broker-theme .history-card,
body.broker-theme .transaction-item,
body.broker-theme .portfolio-card,
body.broker-theme .position-card,
body.broker-theme .fund-card,
body.broker-theme .wallet-card,
body.broker-theme .account-card,
body.broker-theme .setting-card,
body.broker-theme .security-card,
body.broker-theme .list-card,
body.broker-theme .section-card{
  background:#fff!important;
  background-image:none!important;
  color:var(--broker-text)!important;
  border-color:#e6e9ee!important;
  box-shadow:none!important;
}

/* Funding Account: remove legacy navy panels completely */
body.broker-theme .balance-section,
body.broker-theme .history-section{
  border:1px solid #e5e8ed!important;
  border-radius:14px!important;
  box-shadow:0 3px 14px rgba(31,39,52,.045)!important;
}
body.broker-theme .balance-section .total-assets-label,
body.broker-theme .balance-section .info-label,
body.broker-theme .history-title,
body.broker-theme .history-item,
body.broker-theme .history-item *{
  text-shadow:none!important;
}
body.broker-theme .balance-section .balance-amount{
  color:#202329!important;
  text-shadow:none!important;
}
body.broker-theme .balance-section .total-assets-label,
body.broker-theme .balance-section .info-label,
body.broker-theme .balance-section .balance-usd,
body.broker-theme .history-item .history-date,
body.broker-theme .history-item .history-meta{
  color:#858b94!important;
}
body.broker-theme .action-buttons .action-btn,
body.broker-theme .action-btn,
body.broker-theme .transfer-btn,
body.broker-theme .history-load-more{
  background:#fff!important;
  background-image:none!important;
  color:#343942!important;
  border:1px solid #dfe4ea!important;
  box-shadow:none!important;
}
body.broker-theme .action-buttons .action-btn i,
body.broker-theme .action-btn i,
body.broker-theme .transfer-btn i,
body.broker-theme .history-item .history-icon,
body.broker-theme .history-item .transaction-icon{
  color:var(--broker-blue)!important;
  text-shadow:none!important;
  filter:none!important;
}
body.broker-theme .history-item .history-icon,
body.broker-theme .history-item .transaction-icon{
  background:var(--broker-blue-soft)!important;
  border-color:#cfe4fb!important;
  box-shadow:none!important;
}

/* Blue remains a supporting accent only. */
body.broker-theme .support-icon,
body.broker-theme .info-icon,
body.broker-theme .help-icon,
body.broker-theme .copy-icon,
body.broker-theme .eye-icon,
body.broker-theme .fa-eye,
body.broker-theme .fa-eye-slash,
body.broker-theme .fa-headset,
body.broker-theme .fa-circle-info,
body.broker-theme .fa-info-circle,
body.broker-theme .fa-copy{
  color:var(--broker-blue)!important;
  text-shadow:none!important;
  filter:none!important;
}

/* Catch common legacy navy surfaces left in page-specific CSS. */
body.broker-theme [style*="background: #1a1a2e"],
body.broker-theme [style*="background:#1a1a2e"],
body.broker-theme [style*="background: #1a1f3a"],
body.broker-theme [style*="background:#1a1f3a"],
body.broker-theme [style*="background: #1b2134"],
body.broker-theme [style*="background:#1b2134"],
body.broker-theme [style*="background: #16213e"],
body.broker-theme [style*="background:#16213e"],
body.broker-theme [style*="background: #052449"],
body.broker-theme [style*="background:#052449"],
body.broker-theme [style*="background: #2a324d"],
body.broker-theme [style*="background:#2a324d"],
body.broker-theme [style*="background: #3a3d5a"],
body.broker-theme [style*="background:#3a3d5a"]{
  background:#fff!important;
  background-image:none!important;
  color:var(--broker-text)!important;
  border-color:#e5e8ed!important;
  box-shadow:none!important;
}

/* Prevent dark page-specific text from becoming invisible on the new white base. */
body.broker-theme .balance-section,
body.broker-theme .history-section,
body.broker-theme .portfolio-section,
body.broker-theme .account-section,
body.broker-theme .wallet-section{
  --bs-body-color:#343942;
  --bs-secondary-color:#858b94;
}

@media (max-width:767.98px), (min-width: 601px){
  body.broker-theme{background:#fff!important;}
  body.broker-theme .balance-section,
  body.broker-theme .history-section,
  body.broker-theme .portfolio-section,
  body.broker-theme .account-section,
  body.broker-theme .wallet-section{
    margin-left:10px!important;
    margin-right:10px!important;
  }
}

/* =====================================================================
   White-base readability pass v3 (2026-08-11)
   Keep the interface white-first, but strengthen hierarchy, contrast,
   spacing and touch targets. Blue stays as a supporting accent.
   ===================================================================== */
:root{
  --broker-bg:#f8fafc;
  --broker-card:#ffffff;
  --broker-ink:#182230;
  --broker-text:#2c3542;
  --broker-muted:#667085;
  --broker-faint:#98a2b3;
  --broker-line:#dfe5ec;
  --broker-line-strong:#cfd8e3;
  --broker-blue:#1677d2;
  --broker-blue-soft:#eef6ff;
  --broker-shadow:0 4px 16px rgba(16,24,40,.06);
}

html{background:var(--broker-bg)!important;}
body.broker-theme{
  background:var(--broker-bg)!important;
  color:var(--broker-text)!important;
}
body.broker-theme .content,
body.broker-theme .page-content,
body.broker-theme .main-content,
body.broker-theme .main-container,
body.broker-theme .tab-content{
  background:var(--broker-bg)!important;
}

/* Header: stronger separation without dark fills */
body.broker-theme .header,
body.broker-theme .language-header,
body.broker-theme .trading-header{
  background:#fff!important;
  border-bottom:1px solid #e3e8ef!important;
  box-shadow:0 1px 4px rgba(16,24,40,.04)!important;
}
body.broker-theme .header-title,
body.broker-theme .language-title,
body.broker-theme .trading-header .title{
  color:var(--broker-ink)!important;
  font-weight:700!important;
}

/* Major cards: still white, but visually separated from the page */
body.broker-theme .balance-section,
body.broker-theme .history-section,
body.broker-theme .portfolio-section,
body.broker-theme .financial-section,
body.broker-theme .contract-section,
body.broker-theme .account-section,
body.broker-theme .asset-section,
body.broker-theme .wallet-section,
body.broker-theme .overview-section,
body.broker-theme .detail-section,
body.broker-theme .form-section,
body.broker-theme .settings-section,
body.broker-theme .security-section,
body.broker-theme .record-section,
body.broker-theme .support-section,
body.broker-theme .fund-card,
body.broker-theme .wallet-card,
body.broker-theme .account-card,
body.broker-theme .setting-card,
body.broker-theme .security-card,
body.broker-theme .section-card{
  background:#fff!important;
  border:1px solid var(--broker-line)!important;
  box-shadow:var(--broker-shadow)!important;
  color:var(--broker-text)!important;
}

/* Section headings must never disappear on white */
body.broker-theme .history-title,
body.broker-theme .portfolio-title,
body.broker-theme .section-title,
body.broker-theme .card-title,
body.broker-theme .form-title,
body.broker-theme .settings-title,
body.broker-theme .security-title,
body.broker-theme h1,
body.broker-theme h2,
body.broker-theme h3,
body.broker-theme h4{
  color:var(--broker-ink)!important;
  text-shadow:none!important;
}

/* Funding account readability */
body.broker-theme .balance-section{
  padding:22px 20px 20px!important;
}
body.broker-theme .balance-section .total-assets-label{
  color:#53657a!important;
  font-size:13px!important;
  font-weight:600!important;
  letter-spacing:0!important;
}
body.broker-theme .balance-section .balance-amount{
  color:#172033!important;
  font-size:38px!important;
  line-height:1.12!important;
  letter-spacing:.2px!important;
  margin-bottom:16px!important;
}
body.broker-theme .balance-section .contract-info{
  padding:2px 0 4px!important;
}
body.broker-theme .balance-section .info-label{
  color:#667085!important;
  font-size:13px!important;
  font-weight:500!important;
}
body.broker-theme .balance-section .info-value{
  color:#182230!important;
  font-weight:700!important;
}
body.broker-theme .balance-section .info-usd{
  color:#667085!important;
  font-weight:500!important;
}

/* White buttons with stronger border + blue support icon */
body.broker-theme .action-buttons .action-btn,
body.broker-theme .action-btn,
body.broker-theme .transfer-btn,
body.broker-theme .history-load-more{
  background:#fff!important;
  color:#263445!important;
  border:1px solid var(--broker-line-strong)!important;
  box-shadow:0 1px 3px rgba(16,24,40,.04)!important;
  font-weight:700!important;
}
body.broker-theme .action-buttons .action-btn:hover,
body.broker-theme .action-buttons .action-btn:active,
body.broker-theme .action-btn:hover,
body.broker-theme .action-btn:active,
body.broker-theme .transfer-btn:hover,
body.broker-theme .transfer-btn:active{
  background:#f8fbff!important;
  border-color:#9fc7ef!important;
  color:#1e4f7e!important;
}
body.broker-theme .action-buttons .action-btn i,
body.broker-theme .action-btn i,
body.broker-theme .transfer-btn i{
  color:var(--broker-blue)!important;
  text-shadow:none!important;
}

/* Transaction history: clearer rows, hierarchy and status colors */
body.broker-theme .history-section{
  padding:20px!important;
}
body.broker-theme .history-header{
  margin-bottom:14px!important;
  min-height:26px!important;
}
body.broker-theme .history-title{
  display:block!important;
  font-size:18px!important;
  line-height:1.3!important;
  font-weight:750!important;
}
body.broker-theme .history-list{
  gap:12px!important;
}
body.broker-theme .history-item,
body.broker-theme .transaction-item,
body.broker-theme .history-card{
  background:#fff!important;
  border:1px solid #dfe5ec!important;
  border-radius:12px!important;
  box-shadow:0 2px 7px rgba(16,24,40,.035)!important;
}
body.broker-theme .history-item:hover{
  border-color:#c9d5e2!important;
  background:#fcfdff!important;
}
body.broker-theme .history-item .history-type{
  color:#1d2939!important;
  font-weight:700!important;
}
body.broker-theme .history-item .history-date,
body.broker-theme .history-item .history-meta{
  color:#667085!important;
  font-weight:500!important;
}
body.broker-theme .history-item .history-icon,
body.broker-theme .history-item .transaction-icon{
  background:var(--broker-blue-soft)!important;
  border:1px solid #c4ddf6!important;
  color:var(--broker-blue)!important;
  box-shadow:none!important;
}
body.broker-theme .history-amount.deposit{
  color:#07966f!important;
}
body.broker-theme .history-amount.withdrawal{
  color:#e5484d!important;
}

/* Forms and list rows: stronger edges and readable labels */
body.broker-theme input,
body.broker-theme select,
body.broker-theme textarea,
body.broker-theme .form-control,
body.broker-theme .form-select{
  background:#fff!important;
  color:#1d2939!important;
  border-color:#cfd8e3!important;
}
body.broker-theme input::placeholder,
body.broker-theme textarea::placeholder{
  color:#98a2b3!important;
  opacity:1!important;
}
body.broker-theme label,
body.broker-theme .form-label,
body.broker-theme .field-label,
body.broker-theme .item-label{
  color:#344054!important;
  font-weight:600!important;
}
body.broker-theme .list-item,
body.broker-theme .menu-item,
body.broker-theme .setting-item,
body.broker-theme .security-item{
  background:#fff!important;
  border-color:#e1e6ed!important;
}

/* Bottom nav: clearer labels and active state, still white */
body.broker-theme iframe[src="nav.html"]{
  border-top:1px solid #dfe5ec!important;
  box-shadow:0 -3px 12px rgba(16,24,40,.05)!important;
}

@media(max-width:600px), (min-width: 601px){
  body.broker-theme .content,
  body.broker-theme .page-content,
  body.broker-theme .main-content{
    padding-left:12px!important;
    padding-right:12px!important;
  }
  body.broker-theme .balance-section,
  body.broker-theme .history-section,
  body.broker-theme .portfolio-section,
  body.broker-theme .account-section,
  body.broker-theme .wallet-section{
    margin-left:4px!important;
    margin-right:4px!important;
    border-radius:14px!important;
  }
  body.broker-theme .balance-section{padding:20px 16px!important;}
  body.broker-theme .balance-section .balance-amount{font-size:34px!important;}
  body.broker-theme .history-section{padding:16px 12px 18px!important;}
  body.broker-theme .history-title{font-size:17px!important;}
  body.broker-theme .history-item{min-height:86px!important;padding:13px 12px!important;}
  body.broker-theme .history-left{grid-template-columns:38px 1fr!important;column-gap:10px!important;}
  body.broker-theme .history-icon{width:38px!important;height:38px!important;font-size:17px!important;}
  body.broker-theme .history-type{font-size:14px!important;}
  body.broker-theme .history-date{font-size:11.5px!important;line-height:1.45!important;}
  body.broker-theme .history-amount{font-size:14px!important;min-width:76px!important;max-width:88px!important;}
}

/* =====================================================================
   WHITE BASE ENFORCEMENT v4 — 2026-08-11
   Purpose: remove remaining legacy navy/dark surfaces from every normal
   broker-theme page while keeping blue only as an accent/support color.
   ===================================================================== */
:root{
  --broker-bg:#f7f9fc;
  --broker-card:#ffffff;
  --broker-ink:#172033;
  --broker-text:#344054;
  --broker-muted:#667085;
  --broker-faint:#98a2b3;
  --broker-line:#e1e7ef;
  --broker-line-strong:#cbd5e1;
  --broker-blue:#1677d2;
  --broker-blue-soft:#eef6ff;
}

html, body.broker-theme{
  background:#f7f9fc!important;
  background-image:none!important;
  color:var(--broker-text)!important;
}
body.broker-theme::before,
body.broker-theme::after{background:none!important;box-shadow:none!important;}

/* Main page canvases/wrappers */
body.broker-theme > .container,
body.broker-theme > .container-fluid,
body.broker-theme > .content,
body.broker-theme .content,
body.broker-theme .page-content,
body.broker-theme .main-content,
body.broker-theme .main-container,
body.broker-theme .content-wrapper,
body.broker-theme .page-wrapper,
body.broker-theme .tab-content,
body.broker-theme .tab-pane,
body.broker-theme .change-password-content,
body.broker-theme .safe-content,
body.broker-theme .cert-content,
body.broker-theme .profile-content,
body.broker-theme .fund-content,
body.broker-theme .staking-content,
body.broker-theme .record-content,
body.broker-theme .help-content,
body.broker-theme .service-content,
body.broker-theme .language-content,
body.broker-theme .payment-content,
body.broker-theme .withdrawal-content,
body.broker-theme .deposit-content{
  background:#f7f9fc!important;
  background-image:none!important;
  color:var(--broker-text)!important;
}

/* Generic legacy dark fills used by Bootstrap/old theme */
body.broker-theme .bg-secondary,
body.broker-theme .bg-dark,
body.broker-theme .bg-black{
  background:#fff!important;
  color:var(--broker-text)!important;
}
body.broker-theme .border-secondary{border-color:var(--broker-line)!important;}
body.broker-theme .text-white,
body.broker-theme .text-light{color:var(--broker-ink)!important;}
body.broker-theme .text-white-50{color:var(--broker-muted)!important;}
body.broker-theme .btn-outline-light{
  background:#fff!important;color:#344054!important;border-color:var(--broker-line-strong)!important;
}

/* White cards/panels everywhere */
body.broker-theme .card,
body.broker-theme .panel,
body.broker-theme .content-card,
body.broker-theme .info-card,
body.broker-theme .menu-card,
body.broker-theme .action-card,
body.broker-theme .balance-card,
body.broker-theme .balance-section,
body.broker-theme .balance-info,
body.broker-theme .asset-card,
body.broker-theme .account-card,
body.broker-theme .wallet-card,
body.broker-theme .wallet-section,
body.broker-theme .history-section,
body.broker-theme .history-item,
body.broker-theme .history-card,
body.broker-theme .transaction-item,
body.broker-theme .portfolio-section,
body.broker-theme .financial-section,
body.broker-theme .contract-section,
body.broker-theme .overview-section,
body.broker-theme .detail-section,
body.broker-theme .form-section,
body.broker-theme .form-group,
body.broker-theme .settings-section,
body.broker-theme .security-section,
body.broker-theme .record-section,
body.broker-theme .record-item,
body.broker-theme .support-section,
body.broker-theme .section-card,
body.broker-theme .setting-card,
body.broker-theme .security-card,
body.broker-theme .help-item,
body.broker-theme .bank-item,
body.broker-theme .country-option,
body.broker-theme .currency-item,
body.broker-theme .crypto-option,
body.broker-theme .deposit-option,
body.broker-theme .withdrawal-option,
body.broker-theme .delivery-option,
body.broker-theme .deal-item,
body.broker-theme .order-item,
body.broker-theme .forex-pair-card,
body.broker-theme .market-highlight,
body.broker-theme .trading-pair-item,
body.broker-theme .important-notice,
body.broker-theme .upload-area,
body.broker-theme .qr-container,
body.broker-theme .modal-content,
body.broker-theme .modal-body{
  background:#fff!important;
  background-image:none!important;
  color:var(--broker-text)!important;
  border-color:var(--broker-line)!important;
  box-shadow:0 3px 12px rgba(16,24,40,.045)!important;
}

/* Password pages — remove the full navy sheet seen in the screenshot */
body.broker-theme.page-password .change-password-content{
  width:100%!important;
  max-width:760px!important;
  min-height:calc(100vh - 54px)!important;
  margin:0 auto!important;
  padding:24px 16px 40px!important;
  background:#f7f9fc!important;
}
body.broker-theme .password-field{
  margin-bottom:22px!important;
  background:transparent!important;
}
body.broker-theme .password-label{
  color:#344054!important;
  font-weight:700!important;
  font-size:14px!important;
  margin-bottom:8px!important;
}
body.broker-theme .password-input-container{
  display:flex!important;
  align-items:center!important;
  min-height:52px!important;
  background:#fff!important;
  border:1px solid var(--broker-line-strong)!important;
  border-radius:11px!important;
  overflow:hidden!important;
  box-shadow:0 2px 8px rgba(16,24,40,.035)!important;
}
body.broker-theme .password-input-container::before{background:none!important;}
body.broker-theme .password-input-container > i,
body.broker-theme .password-input-container .input-icon{
  color:var(--broker-blue)!important;
  background:var(--broker-blue-soft)!important;
  border-right:1px solid #d9e6f3!important;
}
body.broker-theme .password-input{
  background:#fff!important;
  color:#172033!important;
  border:0!important;
  box-shadow:none!important;
}
body.broker-theme .password-input::placeholder{color:#98a2b3!important;opacity:1!important;}
body.broker-theme .password-toggle{
  border:0!important;color:var(--broker-blue)!important;box-shadow:none!important;
}
body.broker-theme .password-toggle i{color:var(--broker-blue)!important;text-shadow:none!important;}
body.broker-theme .password-hint{color:#667085!important;font-size:11px!important;}

/* Inputs/selects — clearly visible on white */
body.broker-theme input,
body.broker-theme textarea,
body.broker-theme select,
body.broker-theme .form-control,
body.broker-theme .form-select,
body.broker-theme .form-input,
body.broker-theme .amount-input-container,
body.broker-theme .currency-selector{
  background:#fff!important;
  color:#172033!important;
  /* border:1px solid var(--broker-line-strong)!important; */
  box-shadow:none!important;
}
body.broker-theme input:focus,
body.broker-theme textarea:focus,
body.broker-theme select:focus,
body.broker-theme .form-control:focus,
body.broker-theme .form-select:focus,
body.broker-theme .form-input:focus{
  border-color:#8bbce8!important;
  box-shadow:0 0 0 3px rgba(22,119,210,.10)!important;
  outline:none!important;
}
body.broker-theme input::placeholder,
body.broker-theme textarea::placeholder{color:#98a2b3!important;opacity:1!important;}

/* Labels and body copy: never low-contrast */
body.broker-theme label,
body.broker-theme .form-label,
body.broker-theme .field-label,
body.broker-theme .item-label,
body.broker-theme .balance-label,
body.broker-theme .stat-label,
body.broker-theme .limit-label,
body.broker-theme .header-label{
  color:#475467!important;
}
body.broker-theme .section-title,
body.broker-theme .history-title,
body.broker-theme .portfolio-title,
body.broker-theme .record-title,
body.broker-theme .feature-title,
body.broker-theme .help-item-text,
body.broker-theme h1,
body.broker-theme h2,
body.broker-theme h3,
body.broker-theme h4,
body.broker-theme h5{
  color:#172033!important;
  text-shadow:none!important;
}
body.broker-theme .record-subtitle,
body.broker-theme .feature-description,
body.broker-theme .instruction-text,
body.broker-theme .wallet-address,
body.broker-theme .deal-time,
body.broker-theme .login-text,
body.broker-theme small,
body.broker-theme p{color:#667085;}

/* Hero/info areas stay light rather than navy */
body.broker-theme .safe-hero,
body.broker-theme .cert-hero,
body.broker-theme .money-hero,
body.broker-theme .hero-card,
body.broker-theme .profile-hero{
  background:#fff!important;
  background-image:none!important;
  color:#172033!important;
  border:1px solid var(--broker-line)!important;
  box-shadow:0 3px 12px rgba(16,24,40,.045)!important;
}

/* Tabs / segmented selectors */
body.broker-theme .tabs,
body.broker-theme .tab-bar,
body.broker-theme .market-tabs,
body.broker-theme .position-tabs,
body.broker-theme .bottom-tabs{
  background:#fff!important;
  border-color:var(--broker-line)!important;
}
body.broker-theme .tab-btn,
body.broker-theme .market-tab,
body.broker-theme .position-tab,
body.broker-theme .bottom-tab,
body.broker-theme .chain-btn{
  background:#fff!important;
  color:#667085!important;
  border-color:var(--broker-line)!important;
}
body.broker-theme .tab-btn.active,
body.broker-theme .market-tab.active,
body.broker-theme .position-tab.active,
body.broker-theme .bottom-tab.active,
body.broker-theme .chain-btn.active{
  background:var(--broker-blue-soft)!important;
  color:var(--broker-blue)!important;
  border-color:#9cc7ed!important;
}

/* Trading pages: white panels, blue support accents, preserve red/green price semantics */
body.broker-theme .trading-header,
body.broker-theme .market-info,
body.broker-theme .market-section,
body.broker-theme .chart-section,
body.broker-theme .chart-container,
body.broker-theme .trading-form,
body.broker-theme .order-book,
body.broker-theme .order-list,
body.broker-theme .buy-sell-buttons,
body.broker-theme .ig-summary-row{
  background:#fff!important;
  background-image:none!important;
  color:#344054!important;
  border-color:var(--broker-line)!important;
  box-shadow:none!important;
}
body.broker-theme .timeframe-btn{background:#fff!important;color:#667085!important;border-color:transparent!important;}
body.broker-theme .timeframe-btn.active{color:var(--broker-blue)!important;border-bottom-color:var(--broker-blue)!important;}

/* Icons/support elements may stay blue */
body.broker-theme .eye-icon,
body.broker-theme .record-icon,
body.broker-theme .help-item-arrow,
body.broker-theme .menu-icon,
body.broker-theme .copy-icon,
body.broker-theme .notice-icon,
body.broker-theme .perpetual-icon,
body.broker-theme .fa-eye,
body.broker-theme .fa-copy,
body.broker-theme .fa-exchange-alt{
  color:var(--broker-blue)!important;
  text-shadow:none!important;
  filter:none!important;
}
body.broker-theme .history-icon,
body.broker-theme .record-icon{
  background:var(--broker-blue-soft)!important;
  border:1px solid #c7def4!important;
  box-shadow:none!important;
}

/* Header/nav remain pure white */
body.broker-theme .header,
body.broker-theme .language-header,
body.broker-theme .trading-header,
body.broker-theme .ig-header,
body.broker-theme .modal-header{
  background:#fff!important;
  background-image:none!important;
  color:#172033!important;
  border-bottom:1px solid var(--broker-line)!important;
  box-shadow:0 1px 4px rgba(16,24,40,.04)!important;
}
body.broker-theme .header-title,
body.broker-theme .language-title,
body.broker-theme .trading-title,
body.broker-theme .pair-symbol{color:#172033!important;}
body.broker-theme iframe[src="nav.html"]{
  background:#fff!important;
  border-top:1px solid var(--broker-line)!important;
  box-shadow:0 -3px 12px rgba(16,24,40,.05)!important;
}

/* Modals and dropdowns */
body.broker-theme .modal-backdrop{background:rgba(15,23,42,.36)!important;}
body.broker-theme .dropdown-menu,
body.broker-theme .select-menu,
body.broker-theme .options-menu{
  background:#fff!important;color:#344054!important;border:1px solid var(--broker-line)!important;
  box-shadow:0 10px 26px rgba(16,24,40,.12)!important;
}

/* Primary actions remain obvious; blue support / red brokerage CTA */
body.broker-theme .submit-btn,
body.broker-theme .btn-primary{
  background:#e32731!important;
  background-image:none!important;
  color:#fff!important;
  border-color:#e32731!important;
  box-shadow:0 4px 12px rgba(227,39,49,.16)!important;
}
body.broker-theme .submit-btn:hover,
body.broker-theme .btn-primary:hover{background:#c91f29!important;border-color:#c91f29!important;}

@media(max-width:600px), (min-width: 601px){
  body.broker-theme.page-password .change-password-content{padding:20px 14px 34px!important;}
  body.broker-theme .card,
  body.broker-theme .balance-section,
  body.broker-theme .history-section,
  body.broker-theme .form-section,
  body.broker-theme .security-section,
  body.broker-theme .record-section{border-radius:12px!important;}
}
/* Final legacy leak fixes */
body.broker-theme .quick-option,
body.broker-theme .quick-option-icon,
body.broker-theme .action-card-icon,
body.broker-theme .exit-button,
body.broker-theme .feature-item,
body.broker-theme .delivery-row,
body.broker-theme .trade-modal-row,
body.broker-theme .order-book-title{
  background:#fff!important;
  background-image:none!important;
  color:#344054!important;
  border-color:var(--broker-line)!important;
  box-shadow:none!important;
}
body.broker-theme .quick-option-icon,
body.broker-theme .action-card-icon{
  background:var(--broker-blue-soft)!important;
  border:1px solid #c7def4!important;
}
body.broker-theme .exit-button{
  color:#d92d20!important;
  border:1px solid #f3c7c3!important;
}
body.broker-theme .exit-button i{color:#d92d20!important;text-shadow:none!important;}

/* WHITE BASE ENFORCEMENT v5 — contrast + usability sweep */
:root{--broker-page:#f7f9fc;--broker-surface:#fff;--broker-ink-strong:#111827;--broker-ink:#1f2937;--broker-copy:#475467;--broker-muted-2:#667085;--broker-border:#d9e0e8;--broker-blue:#1677d2;--broker-blue-soft:#eef6ff}
html body.broker-theme,body.broker-theme{background:var(--broker-page)!important;background-image:none!important;color:var(--broker-ink)!important}
body.broker-theme>.container,body.broker-theme>.container-fluid,body.broker-theme .modal-dialog,body.broker-theme .modal-content,body.broker-theme .modal-body,body.broker-theme .deposit-form,body.broker-theme [id$="CryptoForm"],body.broker-theme [id$="DepositForm"],body.broker-theme [id$="WithdrawalForm"],body.broker-theme .page-content,body.broker-theme .main-content,body.broker-theme .content,body.broker-theme .content-wrapper,body.broker-theme .settings-container,body.broker-theme .language-container,body.broker-theme .safe-container{background:var(--broker-page)!important;background-image:none!important;color:var(--broker-ink)!important}
body.broker-theme .header,body.broker-theme .language-header,body.broker-theme .trading-header,body.broker-theme .ig-header{background:#fff!important;background-image:none!important;color:var(--broker-ink-strong)!important;border-bottom:1px solid #e9edf2!important;box-shadow:0 1px 4px rgba(15,23,42,.04)!important}
body.broker-theme .header-title,body.broker-theme .language-title,body.broker-theme .trading-title,body.broker-theme .pair-symbol,body.broker-theme .back-btn,body.broker-theme .header .fas,body.broker-theme .header .far{color:var(--broker-ink-strong)!important;text-shadow:none!important}
body.broker-theme .card,body.broker-theme .panel,body.broker-theme .section-card,body.broker-theme .content-card,body.broker-theme .info-card,body.broker-theme .account-card,body.broker-theme .wallet-card,body.broker-theme .balance-card,body.broker-theme .balance-info,body.broker-theme .history-section,body.broker-theme .history-card,body.broker-theme .history-item,body.broker-theme .transaction-item,body.broker-theme .record-section,body.broker-theme .record-item,body.broker-theme .form-section,body.broker-theme .settings-section,body.broker-theme .security-section,body.broker-theme .security-card,body.broker-theme .help-item,body.broker-theme .feature-item,body.broker-theme .bank-item,body.broker-theme .currency-item,body.broker-theme .crypto-option,body.broker-theme .deposit-option,body.broker-theme .withdrawal-option,body.broker-theme .delivery-option,body.broker-theme .important-notice,body.broker-theme .instructions,body.broker-theme .deposit-instructions,body.broker-theme .qr-container,body.broker-theme .upload-area,body.broker-theme .trading-form,body.broker-theme .order-card,body.broker-theme .order-item,body.broker-theme .position-content,body.broker-theme .market-section,body.broker-theme .chart-section,body.broker-theme .chart-container{background:#fff!important;background-image:none!important;color:var(--broker-ink)!important;border-color:var(--broker-border)!important;box-shadow:0 3px 12px rgba(15,23,42,.045)!important}
body.broker-theme.page-money .exchange-channels,body.broker-theme.page-money .deposit-form,body.broker-theme.page-money .modal-content,body.broker-theme.page-money .modal-body{background:var(--broker-page)!important;color:var(--broker-ink)!important}
body.broker-theme.page-money .crypto-option,body.broker-theme.page-money .deposit-option,body.broker-theme.page-money .channel-item{background:#fff!important;background-image:none!important;color:var(--broker-ink-strong)!important;border:1px solid var(--broker-border)!important;box-shadow:0 2px 8px rgba(15,23,42,.04)!important}
body.broker-theme.page-money .crypto-option h6,body.broker-theme.page-money .crypto-option p,body.broker-theme.page-money .deposit-option h6,body.broker-theme.page-money .channel-item,body.broker-theme.page-money .channel-item *{color:var(--broker-ink)!important;text-shadow:none!important}
body.broker-theme.page-money .deposit-icon,body.broker-theme.page-money .usdt-icon,body.broker-theme.page-money .bank-icon{color:#fff!important}
body.broker-theme.page-money .form-control,body.broker-theme.page-money input,body.broker-theme.page-money textarea,body.broker-theme.page-money select,body.broker-theme.page-money .amount-input-container,body.broker-theme.page-money .address-input-container{background:#fff!important;color:var(--broker-ink-strong)!important;border:1px solid var(--broker-border)!important;box-shadow:none!important}
body.broker-theme.page-money .form-label,body.broker-theme.page-money .currency-label,body.broker-theme.page-money .balance-label,body.broker-theme.page-money .wallet-address,body.broker-theme.page-money .instruction-text{color:var(--broker-copy)!important}
body.broker-theme.page-money .balance-value,body.broker-theme.page-money .network-label,body.broker-theme.page-money .instructions h6,body.broker-theme.page-money .important-notice h6,body.broker-theme.page-money .deposit-instructions h6{color:var(--broker-ink-strong)!important}
body.broker-theme.page-money .network-option,body.broker-theme.page-money #network-options .network-option,body.broker-theme.page-money .chain-btn,body.broker-theme.page-money .btn-outline-light{background:#fff!important;color:var(--broker-ink)!important;border:1px solid var(--broker-border)!important;box-shadow:none!important}
body.broker-theme.page-money .network-option .network-label,body.broker-theme.page-money #network-options .network-option .network-label{color:var(--broker-ink)!important}
body.broker-theme.page-money .network-option.selected,body.broker-theme.page-money #network-options .network-option.selected,body.broker-theme.page-money .chain-btn.btn-primary,body.broker-theme.page-money .chain-btn.active{background:var(--broker-blue-soft)!important;color:var(--broker-blue)!important;border-color:#73afe3!important}
body.broker-theme.page-money .network-option.selected .network-label,body.broker-theme.page-money #network-options .network-option.selected .network-label{color:var(--broker-blue)!important}
body.broker-theme.page-money .upload-area{background:#f8fbff!important;color:var(--broker-copy)!important;border:1px dashed #9dc7eb!important}
body.broker-theme.page-money .upload-area i,body.broker-theme.page-money .upload-area .fas{color:var(--broker-blue)!important}
body.broker-theme.page-money .important-notice,body.broker-theme.page-money .instructions,body.broker-theme.page-money .deposit-instructions{background:#fff!important;color:var(--broker-copy)!important;border:1px solid var(--broker-border)!important}
body.broker-theme .text-white:not(.btn):not(.badge):not(.submit-btn),body.broker-theme h1,body.broker-theme h2,body.broker-theme h3,body.broker-theme h4,body.broker-theme h5,body.broker-theme h6,body.broker-theme label,body.broker-theme .form-label,body.broker-theme .section-title,body.broker-theme .history-title,body.broker-theme .item-title,body.broker-theme .menu-title,body.broker-theme .feature-title,body.broker-theme .record-title{color:var(--broker-ink-strong)!important;text-shadow:none!important}
body.broker-theme p,body.broker-theme small,body.broker-theme .text-muted,body.broker-theme .subtitle,body.broker-theme .description,body.broker-theme .hint,body.broker-theme .help-text{color:var(--broker-muted-2)!important;text-shadow:none!important}
body.broker-theme input:not([type="checkbox"]):not([type="radio"]),body.broker-theme textarea,body.broker-theme select,body.broker-theme .form-control,body.broker-theme .form-select,body.broker-theme .form-input,body.broker-theme .password-input{background:#fff!important;color:var(--broker-ink-strong)!important;border-color:var(--broker-border)!important;caret-color:var(--broker-ink-strong)!important}
body.broker-theme input::placeholder,body.broker-theme textarea::placeholder{color:#98a2b3!important;opacity:1!important}
body.broker-theme .dropdown-menu,body.broker-theme .country-dropdown,body.broker-theme .select-menu,body.broker-theme .options-menu,body.broker-theme .country-option{background:#fff!important;color:var(--broker-ink)!important;border-color:var(--broker-border)!important}
body.broker-theme .country-option:hover,body.broker-theme .dropdown-item:hover{background:#f5f8fb!important;color:var(--broker-ink-strong)!important}
body.broker-theme a,body.broker-theme .all-link,body.broker-theme .paste-btn,body.broker-theme .copy-icon,body.broker-theme .fa-eye,body.broker-theme .fa-copy,body.broker-theme .fa-exchange-alt{color:var(--broker-blue)!important}
body.broker-theme .submit-btn,body.broker-theme button.btn-primary:not(.chain-btn),body.broker-theme a.btn-primary:not(.chain-btn){background:#e32731!important;background-image:none!important;color:#fff!important;border-color:#e32731!important}
body.broker-theme .submit-btn *,body.broker-theme button.btn-primary:not(.chain-btn) *,body.broker-theme a.btn-primary:not(.chain-btn) *{color:#fff!important}
body.broker-theme.page-password,body.broker-theme.page-password .change-password-content,body.broker-theme.page-password .password-field,body.broker-theme.page-safe,body.broker-theme.page-cert{background:var(--broker-page)!important;background-image:none!important;color:var(--broker-ink)!important}
body.broker-theme.page-password .input-group,body.broker-theme.page-password .input-group-text{background:#fff!important;color:var(--broker-blue)!important;border-color:var(--broker-border)!important}
body.broker-theme [style*="background-color: #1a1a2e"],body.broker-theme [style*="background-color:#1a1a2e"],body.broker-theme [style*="background: #1a1a2e"],body.broker-theme [style*="background:#1a1a2e"],body.broker-theme [style*="background: #16213e"],body.broker-theme [style*="background:#16213e"],body.broker-theme [style*="background: #1a1f3a"],body.broker-theme [style*="background:#1a1f3a"],body.broker-theme [style*="background: #131a2e"],body.broker-theme [style*="background:#131a2e"],body.broker-theme [style*="background: #2a2a3e"],body.broker-theme [style*="background:#2a2a3e"],body.broker-theme [style*="background: #2a324d"],body.broker-theme [style*="background:#2a324d"],body.broker-theme [style*="background: #052449"],body.broker-theme [style*="background:#052449"]{background:#fff!important;background-image:none!important;color:var(--broker-ink)!important;border-color:var(--broker-border)!important}

/* ========================================================================== 
   UNIFIED SECURITIES LIGHT THEME v6 — 2026-08-11
   Goal: one consistent white/pastel brokerage UI across every production page.
   Reference direction: soft off-white canvas, white cards, dark readable copy,
   pale blue selected/support states, green/red reserved for financial meaning.
   ========================================================================== */
:root{
  --sec-page:#f5f7fb;
  --sec-surface:#ffffff;
  --sec-surface-soft:#f9fbfe;
  --sec-selected:#eaf2ff;
  --sec-selected-2:#eef8f5;
  --sec-border:#e3e8ef;
  --sec-border-strong:#cfd8e3;
  --sec-text:#202938;
  --sec-heading:#101828;
  --sec-muted:#667085;
  --sec-muted-soft:#98a2b3;
  --sec-blue:#3978d6;
  --sec-blue-soft:#edf5ff;
  --sec-mint:#50b99a;
  --sec-red:#e5484d;
  --sec-green:#1f9d74;
  --sec-shadow:0 4px 16px rgba(31,41,55,.055);
}

/* Whole application canvas */
html, body.broker-theme,
body.broker-theme .profile-container,
body.broker-theme .language-container,
body.broker-theme .change-password-content,
body.broker-theme .safe-content,
body.broker-theme .staking-page,
body.broker-theme .staking-content,
body.broker-theme .main-container,
body.broker-theme .content-wrapper,
body.broker-theme .content,
body.broker-theme .main-content,
body.broker-theme .page-content,
body.broker-theme .container-fluid,
body.broker-theme.page-money .exchange-channels,
body.broker-theme.page-money .deposit-form,
body.broker-theme.page-password,
body.broker-theme.page-safe,
body.broker-theme.page-cert,
body.broker-theme.page-language{
  /* background:var(--sec-page)!important; */
  background-image:none!important;
  color:var(--sec-text)!important;
}

/* Header is always clean white */
body.broker-theme .header,
body.broker-theme .language-header,
body.broker-theme .trading-header,
body.broker-theme .staking-header,
body.broker-theme .profile-header,
body.broker-theme .safe-header,
body.broker-theme .change-password-header,
body.broker-theme .modal-header,
body.broker-theme .ig-header{
  background:#fff!important;
  background-image:none!important;
  color:var(--sec-heading)!important;
  border-bottom:1px solid var(--sec-border)!important;
  box-shadow:0 1px 5px rgba(16,24,40,.035)!important;
}
body.broker-theme .header *,
body.broker-theme .language-header *,
body.broker-theme .trading-header *,
body.broker-theme .staking-header *,
body.broker-theme .safe-header *,
body.broker-theme .change-password-header *{
  text-shadow:none!important;
}
body.broker-theme .header-title,
body.broker-theme .language-title,
body.broker-theme .trading-title,
body.broker-theme .staking-header-title,
body.broker-theme .pair-symbol,
body.broker-theme .back-btn{
  color:var(--sec-heading)!important;
}

/* Universal readable typography */
body.broker-theme h1,body.broker-theme h2,body.broker-theme h3,
body.broker-theme h4,body.broker-theme h5,body.broker-theme h6,
body.broker-theme label,
body.broker-theme .form-label,
body.broker-theme .section-title,
body.broker-theme .item-title,
body.broker-theme .menu-text,
body.broker-theme .feature-name,
body.broker-theme .record-title,
body.broker-theme .portfolio-title,
body.broker-theme .language-name{
  color:var(--sec-heading)!important;
  text-shadow:none!important;
}
body.broker-theme p,body.broker-theme small,
body.broker-theme .subtitle,body.broker-theme .description,
body.broker-theme .hint,body.broker-theme .help-text,
body.broker-theme .text-light,body.broker-theme .text-white-50,
body.broker-theme .instruction-text,
body.broker-theme .record-subtitle,
body.broker-theme .portfolio-usd{
  color:var(--sec-muted)!important;
  text-shadow:none!important;
}
body.broker-theme .text-white:not(.btn):not(.badge):not(.submit-btn):not(.btn-primary){
  color:var(--sec-text)!important;
}

/* White surface system — cards/rows/panels are all the same family */
body.broker-theme .card,
body.broker-theme .panel,
body.broker-theme .section-card,
body.broker-theme .content-card,
body.broker-theme .info-card,
body.broker-theme .balance-section,
body.broker-theme .portfolio-section,
body.broker-theme .portfolio-item,
body.broker-theme .history-section,
body.broker-theme .history-item,
body.broker-theme .transaction-item,
body.broker-theme .record-item,
body.broker-theme .security-section,
body.broker-theme .security-option,
body.broker-theme .feature-item,
body.broker-theme .requirement-item,
body.broker-theme .menu-item,
body.broker-theme .quick-entry,
body.broker-theme .quick-option,
body.broker-theme .action-card,
body.broker-theme .help-item,
body.broker-theme .bank-item,
body.broker-theme .currency-item,
body.broker-theme .crypto-option,
body.broker-theme .deposit-option,
body.broker-theme .channel-item,
body.broker-theme .balance-info,
body.broker-theme .instructions,
body.broker-theme .important-notice,
body.broker-theme .deposit-instructions,
body.broker-theme .qr-container,
body.broker-theme .upload-area,
body.broker-theme .form-section,
body.broker-theme .trading-form,
body.broker-theme .position-content,
body.broker-theme .position-item,
body.broker-theme .order-item,
body.broker-theme .order-list,
body.broker-theme .order-book,
body.broker-theme .delivery-option,
body.broker-theme .delivery-row,
body.broker-theme .cert-hero,
body.broker-theme .cert-stepper,
body.broker-theme .language-item,
body.broker-theme .staking-summary,
body.broker-theme .staking-my-panel,
body.broker-theme .plan-card,
body.broker-theme .features-dialog,
body.broker-theme .modal-content,
body.broker-theme .modal-body{
  background:var(--sec-surface)!important;
  background-image:none!important;
  color:var(--sec-text)!important;
  border-color:var(--sec-border)!important;
  box-shadow:var(--sec-shadow)!important;
}

/* Do not allow Bootstrap's legacy dark utility classes to leak into production UI */
body.broker-theme .bg-secondary,
body.broker-theme .bg-dark,
body.broker-theme .bg-black,
body.broker-theme .bg-primary:not(.btn):not(.badge){
  background:var(--sec-surface)!important;
  background-image:none!important;
  color:var(--sec-text)!important;
  border-color:var(--sec-border)!important;
}
body.broker-theme .border-secondary{border-color:var(--sec-border)!important}

/* Inputs / selectors */
body.broker-theme input:not([type="checkbox"]):not([type="radio"]),
body.broker-theme textarea,
body.broker-theme select,
body.broker-theme .form-control,
body.broker-theme .form-select,
body.broker-theme .form-input,
body.broker-theme .password-input,
body.broker-theme .password-input-container,
body.broker-theme .amount-input-container,
body.broker-theme .address-input-container,
body.broker-theme .future-order-type-field,
body.broker-theme #leverage-select{
  background:#fff!important;
  background-image:none!important;
  color:var(--sec-heading)!important;
  /* border:1px solid var(--sec-border-strong)!important; */
  box-shadow:none!important;
}
body.broker-theme input::placeholder,
body.broker-theme textarea::placeholder{color:var(--sec-muted-soft)!important;opacity:1!important}
body.broker-theme input:focus,body.broker-theme textarea:focus,body.broker-theme select:focus,
body.broker-theme .form-control:focus{
  border-color:#8db4ea!important;
  box-shadow:0 0 0 3px rgba(57,120,214,.10)!important;
}
body.broker-theme .input-group-text{
  background:var(--sec-blue-soft)!important;
  color:var(--sec-blue)!important;
  border-color:var(--sec-border-strong)!important;
}

/* Deposit channel + fast deposit: remove every navy block */
body.broker-theme.page-money .crypto-option,
body.broker-theme.page-money .deposit-option,
body.broker-theme.page-money .channel-item{
  background:#fff!important;
  color:var(--sec-heading)!important;
  border:1px solid var(--sec-border)!important;
  box-shadow:0 3px 12px rgba(31,41,55,.045)!important;
}
body.broker-theme.page-money .crypto-option:hover,
body.broker-theme.page-money .deposit-option:hover,
body.broker-theme.page-money .channel-item:hover{
  background:#f9fbff!important;
  border-color:#bfd2ec!important;
}
body.broker-theme.page-money .deposit-form,
body.broker-theme.page-money .form-section{
  background:transparent!important;
  box-shadow:none!important;
}
body.broker-theme.page-money .upload-area{
  background:var(--sec-surface-soft)!important;
  color:var(--sec-muted)!important;
  border:1px dashed #b7c9dc!important;
  box-shadow:none!important;
}
body.broker-theme.page-money .important-notice,
body.broker-theme.page-money .instructions,
body.broker-theme.page-money .deposit-instructions{
  background:#f9fbfe!important;
  color:var(--sec-muted)!important;
  border:1px solid var(--sec-border)!important;
  box-shadow:none!important;
}
body.broker-theme.page-money .network-option,
body.broker-theme.page-money .chain-btn,
body.broker-theme.page-money .btn-outline-light,
body.broker-theme.page-money .deposit-copy-address-btn{
  background:#fff!important;
  color:var(--sec-text)!important;
  border:1px solid var(--sec-border-strong)!important;
  box-shadow:none!important;
}
body.broker-theme.page-money .network-option.selected,
body.broker-theme.page-money .chain-btn.active,
body.broker-theme.page-money .chain-btn.btn-primary{
  background:var(--sec-selected)!important;
  color:var(--sec-blue)!important;
  border-color:#8db4ea!important;
  box-shadow:none!important;
}
body.broker-theme.page-money .network-option.selected *,
body.broker-theme.page-money .chain-btn.active *,
body.broker-theme.page-money .chain-btn.btn-primary *{color:var(--sec-blue)!important}

/* Language page — exactly the clean list treatment from the reference */
body.broker-theme.page-language .language-list{padding:14px 12px!important}
body.broker-theme.page-language .language-item{
  min-height:58px!important;
  margin:0 0 10px!important;
  padding:0 18px!important;
  border:1px solid transparent!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 2px 10px rgba(31,41,55,.035)!important;
}
body.broker-theme.page-language .language-item.active{
  background:#dce9fb!important;
  border-color:#d2e1f6!important;
  box-shadow:none!important;
}
body.broker-theme.page-language .language-item.active .language-name{color:var(--sec-heading)!important}
body.broker-theme.page-language .language-flag{
  background:var(--sec-blue-soft)!important;
  color:var(--sec-blue)!important;
  border:0!important;
  box-shadow:none!important;
}
body.broker-theme.page-language .language-check{
  background:var(--sec-mint)!important;
  color:#fff!important;
  border-radius:50%!important;
  padding:6px!important;
  box-shadow:none!important;
}

/* Profile/settings — simple stacked white rows */
body.broker-theme .profile-header,
body.broker-theme .welcome-section,
body.broker-theme .general-section{background:transparent!important;color:var(--sec-text)!important}
body.broker-theme .menu-item,
body.broker-theme .quick-option,
body.broker-theme .action-card{
  border:1px solid var(--sec-border)!important;
  border-radius:12px!important;
  box-shadow:0 2px 10px rgba(31,41,55,.035)!important;
}
body.broker-theme .menu-icon,
body.broker-theme .quick-option-icon,
body.broker-theme .action-card-icon,
body.broker-theme .safe-option-icon,
body.broker-theme .feature-icon{
  background:var(--sec-blue-soft)!important;
  color:var(--sec-blue)!important;
  border:0!important;
  box-shadow:none!important;
}

/* Fund/records — white cards with stronger information hierarchy */
body.broker-theme .balance-section,
body.broker-theme .portfolio-section,
body.broker-theme .history-section,
body.broker-theme .record-item{
  border:1px solid var(--sec-border)!important;
  border-radius:14px!important;
}
body.broker-theme .total-assets,
body.broker-theme .balance-amount,
body.broker-theme .portfolio-amount,
body.broker-theme .info-value,
body.broker-theme .stat-value{color:var(--sec-heading)!important}
body.broker-theme .positive,body.broker-theme .record-amount.positive{color:var(--sec-green)!important}
body.broker-theme .negative,body.broker-theme .record-amount.negative{color:var(--sec-red)!important}

/* Future/perpetual: no navy form controls or order-book blocks */
body.broker-theme.ig-future-page,
body.broker-theme.ig-future-page .bottom-section,
body.broker-theme.ig-future-page .position-tabs,
body.broker-theme.ig-future-page .order-book-title,
body.broker-theme.ig-future-page .contract-tabs,
body.broker-theme.ig-future-page .trading-pair-info{
  background:var(--sec-page)!important;
  background-image:none!important;
  color:var(--sec-text)!important;
}
body.broker-theme.ig-future-page .trading-form,
body.broker-theme.ig-future-page .order-list,
body.broker-theme.ig-future-page .position-content{
  background:#fff!important;
  border:1px solid var(--sec-border)!important;
  box-shadow:none!important;
}
body.broker-theme.ig-future-page .future-order-type-field,
body.broker-theme.ig-future-page .future-order-type-menu,
body.broker-theme.ig-future-page #leverage-select,
body.broker-theme.ig-future-page .percentage-btn,
body.broker-theme.ig-future-page .amount-control,
body.broker-theme.ig-future-page .total-control{
  background:#fff!important;
  color:var(--sec-heading)!important;
  border-color:var(--sec-border-strong)!important;
  box-shadow:none!important;
}
body.broker-theme.ig-future-page .future-order-type-menu{box-shadow:0 10px 24px rgba(31,41,55,.10)!important}
body.broker-theme.ig-future-page .position-tab.active,
body.broker-theme.ig-future-page .tab-btn.active{
  color:var(--sec-blue)!important;
  border-bottom-color:var(--sec-blue)!important;
  background:transparent!important;
}
body.broker-theme.ig-future-page .btn-buy-long{
  background:#eaf8f3!important;
  color:var(--sec-green)!important;
  border:1px solid #b8e2d4!important;
  box-shadow:none!important;
}
body.broker-theme.ig-future-page .btn-sell-short{
  background:#fff0f1!important;
  color:var(--sec-red)!important;
  border:1px solid #f1c7ca!important;
  box-shadow:none!important;
}

/* Binary/quote: white surrounding panels; financial chart itself remains readable */
body.broker-theme.ig-binary-page,
body.broker-theme.ig-binary-page .main-container,
body.broker-theme.ig-binary-page .price-section,
body.broker-theme.ig-binary-page .contract-tabs,
body.broker-theme.ig-binary-page .bottom-section{
  background:var(--sec-page)!important;
  color:var(--sec-text)!important;
}
body.broker-theme.ig-binary-page .market-pair,
body.broker-theme.ig-binary-page .buy-sell-buttons{
  background:#fff!important;
  border-color:var(--sec-border)!important;
  box-shadow:none!important;
}

/* Staking */
body.broker-theme .staking-summary,
body.broker-theme .staking-my-panel,
body.broker-theme .plan-card{
  background:#fff!important;
  border:1px solid var(--sec-border)!important;
  color:var(--sec-text)!important;
}
body.broker-theme .staking-toggle-btn.active,
body.broker-theme .summary-tab-pill{
  background:var(--sec-selected)!important;
  color:var(--sec-blue)!important;
  border-color:#bdd2ee!important;
}

/* Security/certification/password/payment-method */
body.broker-theme.page-password .password-input-container,
body.broker-theme.page-cert .cert-hero,
body.broker-theme.page-cert .preview-container,
body.broker-theme .security-option,
body.broker-theme .bank-list,
body.broker-theme .section-header{
  background:#fff!important;
  color:var(--sec-text)!important;
  border-color:var(--sec-border)!important;
  box-shadow:none!important;
}
body.broker-theme .section-header{border-bottom:1px solid var(--sec-border)!important}
body.broker-theme .bank-item{border-bottom:1px solid var(--sec-border)!important}
body.broker-theme .bank-item:hover{background:#f9fbfe!important}

/* Home: remove the leftover dark quick-action slab while preserving the blue promotional banner image */
body.broker-theme .functions-section,
body.broker-theme .quick-functions,
body.broker-theme .function-grid,
body.broker-theme .function-card,
body.broker-theme .product-recommendations,
body.broker-theme .trading-pairs-section{
  background:transparent!important;
  background-image:none!important;
  color:var(--sec-text)!important;
}
body.broker-theme .function-card,
body.broker-theme .forex-pair-card,
body.broker-theme .market-highlight,
body.broker-theme .trading-pair-item{
  background:#fff!important;
  color:var(--sec-text)!important;
  border:1px solid var(--sec-border)!important;
  box-shadow:0 2px 10px rgba(31,41,55,.035)!important;
}

/* Absolute last line of defense against old inline navy declarations */
body.broker-theme [style*="background:#0"],
body.broker-theme [style*="background: #0"],
body.broker-theme [style*="background-color:#0"],
body.broker-theme [style*="background-color: #0"],
body.broker-theme [style*="background:#1"],
body.broker-theme [style*="background: #1"],
body.broker-theme [style*="background-color:#1"],
body.broker-theme [style*="background-color: #1"],
body.broker-theme [style*="background:#2"],
body.broker-theme [style*="background: #2"],
body.broker-theme [style*="background-color:#2"],
body.broker-theme [style*="background-color: #2"],
body.broker-theme [style*="background:#3"],
body.broker-theme [style*="background: #3"],
body.broker-theme [style*="background-color:#3"],
body.broker-theme [style*="background-color: #3"]{
  background:#fff!important;
  background-image:none!important;
  color:var(--sec-text)!important;
  border-color:var(--sec-border)!important;
}

/* Important buttons remain obvious but never create large dark blocks */
body.broker-theme .submit-btn,
body.broker-theme button.btn-primary:not(.chain-btn),
body.broker-theme a.btn-primary:not(.chain-btn){
  background:var(--sec-blue)!important;
  color:#fff!important;
  border-color:var(--sec-blue)!important;
  box-shadow:0 4px 12px rgba(57,120,214,.16)!important;
}
body.broker-theme .submit-btn *,
body.broker-theme button.btn-primary:not(.chain-btn) *,
body.broker-theme a.btn-primary:not(.chain-btn) *{color:#fff!important}

/* Bottom navigation */
body.broker-theme iframe[src="nav.html"]{
  background:#fff!important;
  border-top:1px solid var(--sec-border)!important;
  box-shadow:0 -3px 12px rgba(31,41,55,.045)!important;
}

@media(max-width:600px), (min-width: 601px){
  body.broker-theme .card,
  body.broker-theme .balance-section,
  body.broker-theme .portfolio-section,
  body.broker-theme .history-section,
  body.broker-theme .record-item,
  body.broker-theme .security-option,
  body.broker-theme .crypto-option,
  body.broker-theme .deposit-option,
  body.broker-theme .channel-item,
  body.broker-theme .language-item{border-radius:12px!important}
}

/* v7 deposit final safety: legacy deposit markup must never restore navy surfaces */
body.broker-theme.page-money .modal-content,
body.broker-theme.page-money .modal-body,
body.broker-theme.page-money .crypto-option,
body.broker-theme.page-money .deposit-option,
body.broker-theme.page-money .channel-item,
body.broker-theme.page-money .form-section,
body.broker-theme.page-money .upload-area,
body.broker-theme.page-money .important-notice,
body.broker-theme.page-money .deposit-instructions{
  background-color:#fff!important;background-image:none!important;color:#111827!important;
}
body.broker-theme.page-money .modal-body{background-color:#f5f7fb!important;}

/* v14: quote binary available balance must remain visible on light theme.
   ig-trading-theme.css sets .ig-summary-row strong to white for the legacy dark theme;
   override it only for the binary quote panel while preserving green profit values. */
body.broker-theme.ig-binary-page .ig-binary-order-panel .ig-summary-row > strong {
  color: #101828 !important;
}
body.broker-theme.ig-binary-page .ig-binary-order-panel .ig-summary-row > strong.profit {
  color: #00a878 !important;
}
body.broker-theme.ig-binary-page #ig-binary-available-balance {
  color: #101828 !important;
  font-weight: 600 !important;
}
