/**
 * Eedeex — Light Mode (Binance-inspired)
 * يُحمَّل آخراً. يؤثر فقط على body.light-mode — لا يغيّر الوضع الداكن.
 */

body.light-mode {
  /* ——— Binance light palette ——— */
  --lm-bg: #fafafa;
  --lm-bg-soft: #ffffff;
  --lm-surface: #ffffff;
  --lm-surface-2: #fafafa;
  --lm-surface-3: #f5f5f5;
  --lm-border: #eaecef;
  --lm-border-strong: #d1d5db;
  --lm-text: #1e2329;
  --lm-text-secondary: #474d57;
  --lm-text-muted: #848e9c;
  --lm-text-disabled: #b7bdc6;
  --lm-accent: #c99400;
  --lm-accent-soft: #fef9e7;
  --lm-green: #0ecb81;
  --lm-green-hover: #2ebd85;
  --lm-green-soft: #eafff5;
  --lm-red: #f6465d;
  --lm-red-hover: #e03e52;
  --lm-red-soft: #fff0f1;
  --lm-gold: #f0b90b;
  --lm-gold-dark: #c99400;
  --lm-gold-soft: #fef6d8;
  --lm-shadow: none;
  --lm-shadow-sm: 0 0 0 1px var(--lm-border);
  --lm-radius: 8px;
  --lm-font: 'IBM Plex Sans Arabic', 'Inter', 'Tajawal', system-ui, sans-serif;
  --lm-mono: ui-monospace, 'IBM Plex Mono', 'Roboto Mono', monospace;

  background: var(--lm-bg) !important;
  background-image: none !important;
  color: var(--lm-text) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.light-mode::before {
  display: none !important;
  opacity: 0 !important;
  background: none !important;
}

/* ——— TradeX tokens ——— */
body.eedeex-tradex.light-mode {
  --tx-bg: var(--lm-bg);
  --tx-surface: var(--lm-surface);
  --tx-surface-soft: var(--lm-surface-2);
  --tx-border: var(--lm-border);
  --tx-border-strong: var(--lm-border);
  --tx-text: var(--lm-text);
  --tx-muted: var(--lm-text-muted);
  --tx-accent: var(--lm-green);
  --tx-gold: var(--lm-gold-dark);
  --tx-gold-bright: var(--lm-gold);
  --tx-gold-highlight: var(--lm-gold);
  --tx-emerald: var(--lm-green);
  --tx-sky: #1e80ff;
  --tx-link: var(--lm-gold-dark);
  --tx-glow: none;
}

@media (min-width: 769px) {
  body.eedeex-tradex.light-mode:not(.ref-page),
  body.eedeex-tradex.light-mode.ref-page {
    background: var(--lm-bg) !important;
    color: var(--lm-text) !important;
  }

  body.eedeex-tradex.light-mode:not(.ref-page)::before {
    display: none !important;
  }
}

/* ——— عناوين ——— */
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6,
body.light-mode .bot-title,
body.light-mode .bot-section-heading,
body.light-mode .price-levels-title,
body.light-mode .performance-section__title,
body.light-mode .trade-history-title,
body.light-mode .section-title,
body.light-mode .card-title,
body.light-mode .hero-content h1,
body.light-mode .header-title,
body.light-mode .settings-header-title,
body.light-mode .wallet-details-modal__title,
body.light-mode .instant-buy-modal__title,
body.light-mode .ref-title,
body.light-mode .ref-topbar-title,
body.light-mode #mainTitle,
body.light-mode strong,
body.light-mode b {
  color: var(--lm-text) !important;
  text-shadow: none !important;
  -webkit-text-fill-color: var(--lm-text) !important;
}

/* ——— أرقام وقيم ——— */
body.light-mode .price-value,
body.light-mode .cex-ticker__price,
body.light-mode .cex-ticker__pair,
body.light-mode .stat-value,
body.light-mode .bot-status__value,
body.light-mode .wallet-main-value-new,
body.light-mode #wallet-daily-value-new,
body.light-mode .position-metric-value,
body.light-mode .position-pnl-value,
body.light-mode .info-value,
body.light-mode .strategy-value,
body.light-mode .level-value,
body.light-mode .close-position-modal__quote-value,
body.light-mode .close-position-modal__avail-xaut,
body.light-mode .close-position-modal__sell-summary-xaut,
body.light-mode .wallet-details-kpi-value,
body.light-mode .wallet-details-stat-value,
body.light-mode .ref-stat .v,
body.light-mode .invited-profit,
body.light-mode .info-row .info-value,
body.light-mode .navbar-price,
body.light-mode .header-stats .stat-value,
body.light-mode .acct-ref-stat-value,
body.light-mode .acct-kv-card .value,
body.light-mode .instant-buy-modal__price-pill strong,
body.light-mode [id$="-value"],
body.light-mode [class*="__value"]:not(.position-pnl-value):not(.info-change) {
  color: var(--lm-text) !important;
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: 'tnum' 1 !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

body.light-mode .wallet-details-kpi-value--primary {
  color: var(--lm-text) !important;
}

body.light-mode .wallet-details-kpi-value--xaut {
  color: var(--lm-gold-dark) !important;
}

body.light-mode .wallet-details-kpi-hint {
  color: var(--lm-text-muted) !important;
}

body.light-mode .wallet-details-kpi-hint--muted {
  color: var(--lm-text-disabled) !important;
}

body.light-mode .wallet-details-kpi-tile--signed.is-positive .wallet-details-kpi-value {
  color: var(--lm-green) !important;
}

body.light-mode .wallet-details-kpi-tile--signed.is-negative .wallet-details-kpi-value {
  color: var(--lm-red) !important;
}

/* ——— تسميات ونصوص ثانوية ——— */
body.light-mode .info-label,
body.light-mode .stat-label,
body.light-mode .perf-label,
body.light-mode .bot-status__label,
body.light-mode .cex-ticker__m-label,
body.light-mode .input-plain-label,
body.light-mode .input-info,
body.light-mode .trade-box-heading,
body.light-mode .position-metric-label,
body.light-mode .level-label,
body.light-mode .level-hint,
body.light-mode .analysis-market-caption__text,
body.light-mode .wallet-label,
body.light-mode .ref-muted,
body.light-mode .invited-meta,
body.light-mode p,
body.light-mode .header-subtitle,
body.light-mode .bot-instant-buy-reveal__hint,
body.light-mode .close-position-modal__subtitle,
body.light-mode .instant-buy-modal__subtitle,
body.light-mode .instant-buy-modal__notional,
body.light-mode .wallet-details-modal__lead,
body.light-mode .wallet-details-stat-label,
body.light-mode .wallet-details-kpi-label,
body.light-mode .settings-pane-clean .settings-section h4,
body.light-mode #settingsModal .acct-kv-card label,
body.light-mode .acct-ref-stat-label {
  color: var(--lm-text-muted) !important;
}

body.light-mode a:not(.btn-primary):not(.buy-btn):not(.sell-btn):not(.ref-btn-primary) {
  color: var(--lm-gold-dark) !important;
}

/* ——— ألوان صعود / هبوط ——— */
body.light-mode .price-change.positive,
body.light-mode .profit,
body.light-mode .success,
body.light-mode .text-green,
body.light-mode .info-change.positive,
body.light-mode .position-pnl-value.positive,
body.light-mode .cex-ticker__pct.positive,
body.light-mode .positive,
body.light-mode [class*="positive"] .stat-value,
body.light-mode td.positive,
body.light-mode .trade-profit-positive {
  color: var(--lm-green) !important;
}

body.light-mode .price-change.negative,
body.light-mode .loss,
body.light-mode .error,
body.light-mode .text-red,
body.light-mode .info-change.negative,
body.light-mode .position-pnl-value.negative,
body.light-mode .cex-ticker__pct.negative,
body.light-mode .negative,
body.light-mode td.negative,
body.light-mode .trade-profit-negative {
  color: var(--lm-red) !important;
}

/* ——— شريط علوي + أخبار ——— */
body.light-mode .top-navbar,
body.light-mode header,
body.light-mode .header {
  background: var(--lm-surface) !important;
  border-color: var(--lm-border) !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--lm-border) !important;
}

body.light-mode .news-ticker-wrapper {
  background: var(--lm-surface) !important;
  border-bottom: 1px solid var(--lm-border) !important;
  box-shadow: none !important;
}

body.light-mode .news-ticker-label {
  background: var(--lm-red) !important;
  color: #ffffff !important;
  border-color: var(--lm-border) !important;
}

body.light-mode .news-ticker-content,
body.light-mode .news-ticker-item {
  color: var(--lm-text-secondary) !important;
}

body.light-mode .navbar-logo,
body.light-mode .bot-title,
body.light-mode .bot-title i,
body.light-mode .bot-title__icon {
  color: var(--lm-gold-dark) !important;
  text-shadow: none !important;
}

body.light-mode .nav-btn {
  background: var(--lm-surface) !important;
  color: var(--lm-text-secondary) !important;
  border: 1px solid var(--lm-border) !important;
  box-shadow: none !important;
}

body.light-mode .nav-btn:hover {
  background: var(--lm-surface-2) !important;
  color: var(--lm-text) !important;
  border-color: var(--lm-border-strong) !important;
}

body.light-mode .price-card {
  background: var(--lm-surface) !important;
  border: 1px solid var(--lm-border) !important;
  color: var(--lm-text) !important;
  box-shadow: none !important;
}

/* ——— بطاقات وأقسام ——— */
body.light-mode .wallet-card,
body.light-mode .chart-section,
body.light-mode .chart-box,
body.light-mode .bot-management-section,
body.light-mode .bot-management-section.mobile-bot-merged,
body.light-mode .performance-section,
body.light-mode .trade-history-section,
body.light-mode .trade-history-block,
body.light-mode .price-levels,
body.light-mode .mobile-levels-row,
body.light-mode .mobile-chart-stack,
body.light-mode .diagnostics-card,
body.light-mode .diagnostics-section--standalone,
body.light-mode .cex-ticker,
body.light-mode .card,
body.light-mode .pricing-card,
body.light-mode .ref-card,
body.light-mode .info-card,
body.light-mode .stat-card,
body.light-mode .content-section,
body.light-mode .referral-section,
body.light-mode .main-content,
body.light-mode .dashboard-grid,
body.light-mode #trade-unified-main {
  background: var(--lm-surface) !important;
  background-image: none !important;
  border: 1px solid var(--lm-border) !important;
  color: var(--lm-text) !important;
  box-shadow: none !important;
}

body.light-mode .trade-box,
body.light-mode .bot-status,
body.light-mode .bot-status__item,
body.light-mode .info-item,
body.light-mode .info-row,
body.light-mode .level-item,
body.light-mode .perf-card,
body.light-mode .stat-box,
body.light-mode .strategy-inline-box,
body.light-mode .bot-ai-profile,
body.light-mode .toggle-group,
body.light-mode .cex-ticker__metric,
body.light-mode .position-card,
body.light-mode .journal-row,
body.light-mode .trade-journal-detail,
body.light-mode .trade-journal-detail__card,
body.light-mode .header-icon-box {
  background: var(--lm-surface-2) !important;
  background-image: none !important;
  border: 1px solid var(--lm-border) !important;
  color: var(--lm-text) !important;
  box-shadow: none !important;
}

body.light-mode .level-item.entry-level,
body.light-mode .level-item.ratio-level {
  border-left: 3px solid var(--lm-gold) !important;
  background: var(--lm-gold-soft) !important;
}

body.light-mode .level-item.profit-level {
  border-left: 3px solid var(--lm-green) !important;
  background: var(--lm-green-soft) !important;
}

body.light-mode.mobile-layout-active .mobile-bot-merged,
body.light-mode.mobile-layout-active .mobile-bot-merged .trade-box,
body.light-mode.mobile-layout-active .mobile-bot-merged .trading-controls {
  background: var(--lm-surface) !important;
  border-color: var(--lm-border) !important;
}

body.light-mode.mobile-layout-active .mobile-bot-merged .trade-box .bot-status,
body.light-mode.mobile-layout-active .mobile-bot-merged .trade-box .trade-box-heading,
body.light-mode.mobile-layout-active .mobile-bot-merged .trade-box .bot-status__label {
  color: var(--lm-text-muted) !important;
}

body.light-mode.mobile-layout-active .mobile-bot-merged .trade-box .bot-status__value,
body.light-mode.mobile-layout-active .mobile-bot-merged .trade-box .bot-section-heading {
  color: var(--lm-text) !important;
}

body.light-mode .mobile-pull-refresh.is-pulling,
body.light-mode .mobile-pull-refresh.is-ready,
body.light-mode .mobile-pull-refresh.is-refreshing {
  background: rgba(250, 250, 250, 0.92) !important;
  backdrop-filter: blur(4px) !important;
}

body.light-mode .mobile-pull-refresh__spinner {
  border-color: rgba(132, 142, 156, 0.25) !important;
  border-top-color: var(--lm-gold) !important;
}

/* ——— حقول إدخال ——— */
body.light-mode input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
body.light-mode select,
body.light-mode textarea,
body.light-mode .input-group input,
body.light-mode .input-group select,
body.light-mode .bot-entry-field,
body.light-mode .bot-entry-field__glyph,
body.light-mode .bot-entry-field__suffix,
body.light-mode .bot-entry-field__input,
body.light-mode .eedeex-input,
body.light-mode .eedeex-address-box,
body.light-mode .settings-general-select,
body.light-mode .login-input,
body.light-mode .withdraw-input,
body.light-mode .withdraw-select,
body.light-mode .ref-w-input,
body.light-mode .ref-w-select,
body.light-mode .ref-invited-search,
body.light-mode .close-position-modal__target-field input {
  background: var(--lm-surface) !important;
  color: var(--lm-text) !important;
  border: 1px solid var(--lm-border) !important;
  box-shadow: none !important;
}

body.light-mode input::placeholder,
body.light-mode textarea::placeholder {
  color: var(--lm-text-disabled) !important;
}

body.light-mode .bot-entry-field:focus-within,
body.light-mode input:focus,
body.light-mode select:focus,
body.light-mode textarea:focus,
body.light-mode .eedeex-input:focus {
  border-color: var(--lm-gold) !important;
  box-shadow: 0 0 0 2px rgba(240, 185, 11, 0.15) !important;
  outline: none !important;
}

body.light-mode .bot-entry-label-ico {
  color: var(--lm-gold-dark) !important;
}

body.light-mode .bot-management-section .trade-box-heading .ui-ico--sm,
body.light-mode .bot-management-section .trade-box-heading .ui-ico--sm i {
  color: var(--lm-text-muted) !important;
}

/* ——— أزرار تداول (Binance flat) ——— */
body.light-mode .buy-btn {
  background: var(--lm-green) !important;
  border: 1px solid var(--lm-green) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body.light-mode .sell-btn,
body.light-mode .trade-action-btn {
  background: var(--lm-red) !important;
  border: 1px solid var(--lm-red) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body.light-mode .buy-btn:hover {
  background: var(--lm-green-hover) !important;
  border-color: var(--lm-green-hover) !important;
  color: #ffffff !important;
}

body.light-mode .sell-btn:hover,
body.light-mode .trade-action-btn:hover:not(:disabled) {
  background: var(--lm-red-hover) !important;
  border-color: var(--lm-red-hover) !important;
  color: #ffffff !important;
}

body.light-mode .btn-primary,
body.light-mode .confirm-btn:not(#settingsModal .confirm-btn):not(.modal-close-btn),
body.light-mode .modal-buttons .confirm-btn:not(.modal-close-btn) {
  background: var(--lm-gold) !important;
  border: 1px solid var(--lm-gold) !important;
  color: var(--lm-text) !important;
  box-shadow: none !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

body.light-mode .btn-primary:hover,
body.light-mode .confirm-btn:not(#settingsModal .confirm-btn):not(.modal-close-btn):hover,
body.light-mode .modal-buttons .confirm-btn:not(.modal-close-btn):hover {
  background: #fcd535 !important;
  border-color: #fcd535 !important;
  color: var(--lm-text) !important;
  filter: none !important;
}

body.light-mode .confirm-btn.modal-close-btn:not(#settingsModal .confirm-btn),
body.light-mode .modal-buttons .confirm-btn.modal-close-btn,
body.light-mode .cancel-btn.modal-close-btn,
body.light-mode .trial-upgrade-btn-dismiss {
  background: var(--lm-surface) !important;
  border: 1px solid var(--lm-border) !important;
  color: var(--lm-text-secondary) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body.light-mode .confirm-btn.modal-close-btn:not(#settingsModal .confirm-btn):hover,
body.light-mode .modal-buttons .confirm-btn.modal-close-btn:hover,
body.light-mode .cancel-btn.modal-close-btn:hover,
body.light-mode .trial-upgrade-btn-dismiss:hover {
  background: var(--lm-surface-2) !important;
  color: var(--lm-text) !important;
  border-color: var(--lm-border-strong) !important;
  filter: none !important;
}

body.light-mode .cancel-btn {
  background: var(--lm-surface) !important;
  border: 1px solid var(--lm-border) !important;
  color: var(--lm-text-secondary) !important;
}

body.light-mode .cancel-btn:hover {
  background: var(--lm-surface-2) !important;
  color: var(--lm-text) !important;
  border-color: var(--lm-border-strong) !important;
}

body.light-mode .close-btn {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: var(--lm-text-muted) !important;
}

body.light-mode .close-btn:hover {
  background: var(--lm-surface-2) !important;
  border-color: var(--lm-border) !important;
  color: var(--lm-text) !important;
}

body.light-mode .settings-header .close-btn {
  background: transparent !important;
  color: var(--lm-text-muted) !important;
}

/* ——— نوافذ منبثقة ——— */
body.light-mode .modal {
  background-color: rgba(30, 35, 41, 0.45) !important;
  backdrop-filter: blur(2px) !important;
}

body.light-mode .modal-content,
body.light-mode .settings-modal-content,
body.light-mode #walletDetailModal .modal-content,
body.light-mode .instant-buy-modal__content,
body.light-mode #manualCloseModal .close-position-modal__content,
body.light-mode .wallet-tier-modal__content,
body.light-mode .cex-bind-modal__panel,
body.light-mode .recovery-modal-content,
body.light-mode .ref-modal-card,
body.light-mode .withdraw-modal-card,
body.light-mode .wallet-disconnect-modal-content,
body.light-mode .trial-upgrade-modal-content,
body.light-mode .app-download-modal-content {
  background: var(--lm-surface) !important;
  background-image: none !important;
  border: 1px solid var(--lm-border) !important;
  color: var(--lm-text) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
}

body.light-mode .settings-header,
body.light-mode .settings-tabs,
body.light-mode .settings-footer,
body.light-mode .description-tabs-nav,
body.light-mode .description-header-premium,
body.light-mode .description-footer-premium,
body.light-mode .instant-buy-modal__head,
body.light-mode .instant-buy-modal__footer,
body.light-mode #manualCloseModal .close-position-modal__footer,
body.light-mode .close-position-modal__head {
  background: var(--lm-surface) !important;
  border-color: var(--lm-border) !important;
}

body.light-mode .settings-content,
body.light-mode .description-content-premium {
  background: var(--lm-bg) !important;
  color: var(--lm-text) !important;
}

body.light-mode .settings-tab,
body.light-mode .desc-tab-btn,
body.light-mode .frame-btn {
  background: var(--lm-surface) !important;
  color: var(--lm-text-muted) !important;
  border: 1px solid var(--lm-border) !important;
}

body.light-mode .settings-tab:hover,
body.light-mode .desc-tab-btn:hover,
body.light-mode .frame-btn:hover {
  background: var(--lm-surface-2) !important;
  color: var(--lm-text) !important;
}

body.light-mode .settings-tab.active,
body.light-mode .desc-tab-btn.active,
body.light-mode .frame-btn.active {
  background: var(--lm-gold-soft) !important;
  color: var(--lm-gold-dark) !important;
  border-color: rgba(201, 148, 0, 0.35) !important;
}

body.light-mode #settingsModal .settings-footer .confirm-btn,
body.light-mode #desktopPageSettings .settings-footer .confirm-btn {
  background: var(--lm-gold) !important;
  border: 1px solid var(--lm-gold) !important;
  color: var(--lm-text) !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

body.light-mode #settingsModal .settings-footer .confirm-btn i,
body.light-mode #desktopPageSettings .settings-footer .confirm-btn i {
  color: inherit !important;
  opacity: 1 !important;
}

body.light-mode #settingsModal .settings-footer .confirm-btn:hover,
body.light-mode #desktopPageSettings .settings-footer .confirm-btn:hover {
  background: #fcd535 !important;
  color: var(--lm-text) !important;
  border-color: #fcd535 !important;
}

body.light-mode #settingsModal .settings-footer .cancel-btn,
body.light-mode #settingsModal .settings-footer .cancel-btn.settings-footer-back {
  background: var(--lm-surface) !important;
  border: 1px solid var(--lm-border) !important;
  color: var(--lm-text-secondary) !important;
}

body.light-mode .settings-pane-clean .settings-section,
body.light-mode #settingsModal .acct-kv-panel,
body.light-mode #settingsModal .acct-ref-panel--pro,
body.light-mode #settingsModal #wallet-tab .wallet-tab-panel-card,
body.light-mode #settingsModal .acct-linked-panel {
  background: var(--lm-surface) !important;
  border: 1px solid var(--lm-border) !important;
}

body.light-mode #walletDetailModal .wallet-details-kpi-tile,
body.light-mode #walletDetailModal .wallet-details-stats-panel {
  background: var(--lm-surface-2) !important;
  border: 1px solid var(--lm-border) !important;
}

body.light-mode #walletDetailModal .wallet-details-modal__error {
  color: var(--lm-red) !important;
  background: var(--lm-red-soft) !important;
  border: 1px solid rgba(246, 70, 93, 0.25) !important;
}

/* ——— إغلاق / شراء فوري ——— */
body.light-mode .close-position-modal__quote,
body.light-mode .close-position-modal__avail,
body.light-mode .close-position-modal__sell-summary,
body.light-mode .close-position-modal__advanced,
body.light-mode .instant-buy-modal__price-pill {
  background: var(--lm-surface-2) !important;
  border: 1px solid var(--lm-border) !important;
  color: var(--lm-text-muted) !important;
}

body.light-mode .close-position-modal__pct-btn {
  background: var(--lm-surface) !important;
  border: 1px solid var(--lm-border) !important;
  color: var(--lm-text-secondary) !important;
}

body.light-mode .close-position-modal__pct-btn.is-active {
  background: var(--lm-gold-soft) !important;
  border-color: rgba(201, 148, 0, 0.4) !important;
  color: var(--lm-gold-dark) !important;
}

body.light-mode .close-position-modal__confirm-btn {
  background: var(--lm-red) !important;
  border: 1px solid var(--lm-red) !important;
  color: #ffffff !important;
}

body.light-mode .close-position-modal__save-btn {
  background: var(--lm-surface) !important;
  border: 1px solid var(--lm-border) !important;
  color: var(--lm-text) !important;
}

body.light-mode .close-position-modal__save-btn:hover:not(:disabled) {
  background: var(--lm-surface-2) !important;
  border-color: var(--lm-border-strong) !important;
}

body.light-mode .instant-buy-modal__btn--ghost {
  background: var(--lm-surface) !important;
  color: var(--lm-text-secondary) !important;
  border: 1px solid var(--lm-border) !important;
}

/* ——— محفظة ——— */
body.light-mode .eedeex-cta-btn,
body.light-mode .eedeex-cta-btn span {
  background: var(--lm-surface) !important;
  color: var(--lm-text) !important;
  border: 1px solid var(--lm-border) !important;
}

body.light-mode #walletSelectionModal .wallet-exchange-card.wallet-option-card,
body.light-mode .eedeex-dex-card.wallet-option-card {
  background: var(--lm-surface) !important;
  border: 1px solid var(--lm-border) !important;
  box-shadow: none !important;
}

body.light-mode .wallet-option-name,
body.light-mode .wallet-selection-desc {
  color: var(--lm-text) !important;
}

body.light-mode .wallet-connect-cta {
  background: var(--lm-surface-2) !important;
  color: var(--lm-text) !important;
  border: 1px solid var(--lm-border) !important;
}

/* ——— جداول وسجل ——— */
body.light-mode table.trade-table th,
body.light-mode table th {
  background: var(--lm-surface-2) !important;
  color: var(--lm-text-muted) !important;
  border-color: var(--lm-border) !important;
  font-weight: 500 !important;
}

body.light-mode table.trade-table td,
body.light-mode table td {
  background: var(--lm-surface) !important;
  color: var(--lm-text) !important;
  border-color: var(--lm-border) !important;
}

body.light-mode table.trade-table tbody tr:hover td,
body.light-mode table tbody tr:hover td {
  background: var(--lm-surface-2) !important;
}

body.light-mode .trade-history-item,
body.light-mode .history-row {
  background: var(--lm-surface) !important;
  border: 1px solid var(--lm-border) !important;
  color: var(--lm-text) !important;
}

body.light-mode .trade-history-section,
body.light-mode .trade-history-section--embed,
body.light-mode .trade-history-block,
body.light-mode .trade-unified-box,
body.light-mode .trade-unified-main,
body.light-mode .trade-unified-tabs,
body.light-mode .trade-unified-tab,
body.light-mode .trade-unified-positions-pane,
body.light-mode .trade-unified-journal-pane {
  background: var(--lm-surface) !important;
  background-image: none !important;
  color: var(--lm-text) !important;
  border-color: var(--lm-border) !important;
  box-shadow: none !important;
}

body.light-mode .trade-unified-tab--active.trade-unified-tab--positions {
  background: var(--lm-green-soft) !important;
  color: var(--lm-green) !important;
  border-color: rgba(14, 203, 129, 0.35) !important;
}

body.light-mode .trade-unified-tab--active:not(.trade-unified-tab--positions) {
  background: var(--lm-gold-soft) !important;
  color: var(--lm-gold-dark) !important;
  border-color: rgba(201, 148, 0, 0.35) !important;
}

body.light-mode .trade-unified-tab:not(.trade-unified-tab--active) {
  background: var(--lm-surface) !important;
  color: var(--lm-text-muted) !important;
  border: 1px solid var(--lm-border) !important;
}

body.light-mode .journal-row,
body.light-mode .trade-unified-journal-head__label {
  color: var(--lm-text) !important;
}

/* ——— تنبيهات ——— */
body.light-mode .alert-notification {
  background: var(--lm-surface) !important;
  color: var(--lm-text) !important;
  border: 1px solid var(--lm-border) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .alert-notification.success {
  background: var(--lm-green-soft) !important;
  border-color: rgba(14, 203, 129, 0.35) !important;
  color: var(--lm-text) !important;
}

body.light-mode .alert-notification.error {
  background: var(--lm-red-soft) !important;
  border-color: rgba(246, 70, 93, 0.35) !important;
  color: var(--lm-text) !important;
}

/* ——— سطح المكتب ——— */
@media (min-width: 769px) {
  body.light-mode.desktop-tradex .top-navbar,
  body.light-mode.desktop-tradex .wallet-card,
  body.light-mode.desktop-tradex .chart-section,
  body.light-mode.desktop-tradex .header,
  body.light-mode.desktop-tradex .header-icon-box,
  body.light-mode.desktop-tradex .header-stats .stat-box,
  body.light-mode.desktop-tradex .bot-status,
  body.light-mode.desktop-tradex .info-item {
    background: var(--lm-surface) !important;
    border: 1px solid var(--lm-border) !important;
    box-shadow: none !important;
  }

  body.light-mode.desktop-tradex .bot-title,
  body.light-mode.desktop-tradex #mainTitle,
  body.light-mode.desktop-tradex .header-stats .stat-value,
  body.light-mode.desktop-tradex #wallet-daily-value-new {
    color: var(--lm-text) !important;
    text-shadow: none !important;
  }

  body.light-mode.desktop-tradex .bot-title,
  body.light-mode.desktop-tradex .bot-title i,
  body.light-mode.desktop-tradex .news-ticker-label i {
    color: var(--lm-gold-dark) !important;
  }

  body.light-mode.desktop-tradex .news-ticker-label {
    color: #ffffff !important;
  }

  body.light-mode.layout-desktop #desktopPageSettings .settings-modal-content,
  body.light-mode.layout-desktop #desktopPageSettings .settings-header,
  body.light-mode.layout-desktop #desktopPageSettings .settings-tabs,
  body.light-mode.layout-desktop #desktopPageSettings .settings-content,
  body.light-mode.layout-desktop #desktopPageSettings .settings-footer {
    background: var(--lm-surface) !important;
    background-image: none !important;
    border-color: var(--lm-border) !important;
  }

  body.light-mode.layout-desktop #desktopPageSettings .settings-header-title {
    color: var(--lm-text) !important;
  }

  body.light-mode.layout-desktop #desktopPageSettings .settings-tab {
    color: var(--lm-text-muted) !important;
  }

  body.light-mode.layout-desktop #desktopPageSettings .settings-tab.active {
    background: var(--lm-gold-soft) !important;
    color: var(--lm-gold-dark) !important;
  }
}

/* ——— أدمن + دعم ——— */
body.light-mode .admin-shell,
body.light-mode .admin-sidebar,
body.light-mode .admin-main,
body.light-mode .admin-card,
body.light-mode .admin-panel,
body.light-mode .tx-table-wrap,
body.light-mode main.support-page {
  background: var(--lm-surface) !important;
  border-color: var(--lm-border) !important;
  color: var(--lm-text) !important;
}

/* ——— صفحة الهبوط ——— */
body.light-mode .hero-content p,
body.light-mode nav a,
body.light-mode .card-description,
body.light-mode .card-features li,
body.light-mode .locale-chip {
  color: var(--lm-text-secondary) !important;
}

body.light-mode .recovery-modal-backdrop {
  background: rgba(30, 35, 41, 0.45) !important;
}

body.light-mode .recovery-modal-content h3,
body.light-mode .recovery-user-id,
body.light-mode .recovery-phrase-box {
  color: var(--lm-text) !important;
}

body.light-mode .recovery-modal-lead,
body.light-mode .recovery-modal-notice {
  color: var(--lm-text-muted) !important;
}

/* ——— إحالات ——— */
body.light-mode .ref-history-row,
body.light-mode .invited-row {
  background: var(--lm-surface-2) !important;
  border: 1px solid var(--lm-border) !important;
}

body.light-mode .ref-promo-line {
  color: var(--lm-text-secondary) !important;
}

body.light-mode .ref-btn-primary,
body.light-mode .ref-w-btn-primary {
  background: var(--lm-gold) !important;
  border: 1px solid var(--lm-gold) !important;
  color: var(--lm-text) !important;
}

/* ——— تجاوز أنماط inline داكنة ——— */
body.light-mode .settings-content [style*="color: #cbd5e1"],
body.light-mode .settings-content [style*="color: #94a3b8"],
body.light-mode .settings-content [style*="color: #e0e6ff"],
body.light-mode .settings-content [style*="color: #64748b"],
body.light-mode .settings-content [style*="color: #7dd3fc"],
body.light-mode .settings-content [style*="color: #93c5fd"],
body.light-mode .modal-content [style*="color: #cbd5e1"],
body.light-mode .modal-content [style*="color: #94a3b8"],
body.light-mode .modal-content [style*="color: #e0e6ff"],
body.light-mode .modal-content [style*="color: #64748b"] {
  color: var(--lm-text-muted) !important;
}

body.light-mode .settings-content [style*="background: rgba(0, 0, 0"],
body.light-mode .settings-content [style*="background: rgba(15, 23, 42"],
body.light-mode .settings-content [style*="background: rgba(10, 14, 39"],
body.light-mode .settings-content [style*="background: rgba(2, 6, 23"],
body.light-mode .modal-content [style*="background: rgba(15, 23, 42"],
body.light-mode .modal-content [style*="background: rgba(2, 6, 23"] {
  background: var(--lm-surface-2) !important;
  border-color: var(--lm-border) !important;
}

/* ——— شريط تمرير ——— */
body.light-mode ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body.light-mode ::-webkit-scrollbar-track {
  background: var(--lm-bg) !important;
}

body.light-mode ::-webkit-scrollbar-thumb {
  background: var(--lm-border-strong) !important;
  border-radius: 4px;
}

body.light-mode ::-webkit-scrollbar-thumb:hover {
  background: var(--lm-text-disabled) !important;
}

/* ——— زر حفظ الإعدادات (أصفر Binance) — light only ——— */
body.light-mode #settingsModal .settings-footer .confirm-btn,
body.light-mode #desktopPageSettings .settings-footer .confirm-btn {
  background: var(--lm-gold) !important;
  border: 1px solid var(--lm-gold) !important;
  color: var(--lm-text) !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: var(--lm-text) !important;
  box-shadow: none !important;
}

body.light-mode #settingsModal .settings-footer .confirm-btn span,
body.light-mode #settingsModal .settings-footer .confirm-btn i,
body.light-mode #desktopPageSettings .settings-footer .confirm-btn span,
body.light-mode #desktopPageSettings .settings-footer .confirm-btn i,
body.light-mode #settingsModal .settings-footer .confirm-btn #i18n-save-settings-btn,
body.light-mode #desktopPageSettings .settings-footer .confirm-btn #i18n-save-settings-btn {
  color: var(--lm-text) !important;
  -webkit-text-fill-color: var(--lm-text) !important;
  opacity: 1 !important;
}

body.light-mode #settingsModal .settings-footer .confirm-btn:hover,
body.light-mode #desktopPageSettings .settings-footer .confirm-btn:hover {
  background: #fcd535 !important;
  border-color: #fcd535 !important;
  color: var(--lm-text) !important;
  -webkit-text-fill-color: var(--lm-text) !important;
  filter: none !important;
}

/* ===================================================================
   طبقة إصلاح — تتغلب على قواعد index.html / account.html (#id + !important)
   =================================================================== */

@media (min-width: 769px) {
  body.eedeex-tradex.light-mode.desktop-tradex,
  body.light-mode.desktop-tradex,
  body.light-mode.layout-desktop {
    --ui-bg: var(--lm-bg);
    --ui-surface: var(--lm-surface);
    --ui-surface-soft: var(--lm-surface-2);
    --ui-border: var(--lm-border);
    --ui-border-strong: var(--lm-border);
    --ui-text: var(--lm-text);
    --ui-muted: var(--lm-text-muted);
    --ui-accent: var(--lm-green);
    --tx-glow: none;
  }

  body.light-mode.desktop-tradex,
  body.light-mode.layout-desktop.desktop-tradex {
    background: var(--lm-bg) !important;
    background-image: none !important;
    color: var(--lm-text) !important;
  }

  body.light-mode.desktop-tradex::before,
  body.light-mode.layout-desktop.desktop-tradex::before {
    display: none !important;
    opacity: 0 !important;
    background: none !important;
  }

  body.light-mode.desktop-tradex .top-navbar,
  body.light-mode.layout-desktop .top-navbar {
    background: var(--lm-surface) !important;
    border-bottom: 1px solid var(--lm-border) !important;
    box-shadow: none !important;
  }

  body.light-mode.desktop-tradex .navbar-logo-text {
    color: var(--lm-gold-dark) !important;
    text-shadow: none !important;
  }

  body.light-mode.desktop-tradex .wallet-card,
  body.light-mode.desktop-tradex .chart-section,
  body.light-mode.desktop-tradex .chart-box,
  body.light-mode.desktop-tradex .bot-management-section,
  body.light-mode.desktop-tradex .performance-section,
  body.light-mode.desktop-tradex .trade-history-section,
  body.light-mode.desktop-tradex .price-levels,
  body.light-mode.desktop-tradex .cex-ticker,
  body.light-mode.desktop-tradex .header,
  body.light-mode.desktop-tradex .header-icon-box,
  body.light-mode.desktop-tradex .header-stats .stat-box,
  body.light-mode.desktop-tradex .bot-status,
  body.light-mode.desktop-tradex .info-item,
  body.light-mode.layout-desktop .wallet-card,
  body.light-mode.layout-desktop .chart-section {
    background: var(--lm-surface) !important;
    background-image: none !important;
    border: 1px solid var(--lm-border) !important;
    box-shadow: none !important;
    color: var(--lm-text) !important;
  }

  body.light-mode.desktop-tradex .wallet-main-value-new,
  body.light-mode.desktop-tradex .wallet-label,
  body.light-mode.desktop-tradex .navbar-price,
  body.light-mode.desktop-tradex .header-stats .stat-value,
  body.light-mode.desktop-tradex #wallet-daily-value-new,
  body.light-mode.desktop-tradex .bot-title,
  body.light-mode.desktop-tradex #mainTitle {
    color: var(--lm-text) !important;
    -webkit-text-fill-color: var(--lm-text) !important;
    text-shadow: none !important;
  }

  body.light-mode.layout-desktop .top-navbar .price-card {
    background: var(--lm-surface) !important;
    border: 1px solid var(--lm-border) !important;
  }
}

body.light-mode.mobile-layout-active .wallet-card,
body.light-mode.mobile-layout-active .chart-section,
body.light-mode.mobile-layout-active .price-levels,
body.light-mode.mobile-layout-active .performance-section,
body.light-mode.mobile-layout-active .bot-management-section,
body.light-mode.mobile-layout-active .trade-history-section,
body.light-mode.mobile-layout-active .trade-box,
body.light-mode.mobile-layout-active .info-item,
body.light-mode.mobile-layout-active .level-item,
body.light-mode.mobile-layout-active .perf-card,
body.light-mode.mobile-layout-active .stat-box,
body.light-mode.mobile-layout-active .mobile-bot-merged,
body.light-mode.mobile-layout-active .mobile-bot-merged .trade-box,
body.light-mode.mobile-layout-active .mobile-levels-row .price-levels,
body.light-mode.mobile-layout-active .mobile-levels-row .performance-section,
body.light-mode.mobile-layout-active .chart-section > .bot-management-section.mobile-bot-merged {
  background: var(--lm-surface) !important;
  background-image: none !important;
  border: 1px solid var(--lm-border) !important;
  box-shadow: none !important;
  color: var(--lm-text) !important;
}

body.light-mode .wallet-card::before {
  background: linear-gradient(90deg, var(--lm-gold), var(--lm-green), var(--lm-gold)) !important;
  opacity: 0.85;
}

/* ——— نافذة الإعدادات (#settingsModal) ——— */
body.light-mode #settingsModal .modal-content.settings-modal-content,
body.light-mode #settingsModal .settings-modal-content,
body.light-mode #desktopPageSettings .settings-modal-content {
  background: var(--lm-surface) !important;
  background-image: none !important;
  border: 1px solid var(--lm-border) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
  color: var(--lm-text) !important;
}

body.light-mode #settingsModal .settings-header,
body.light-mode #desktopPageSettings .settings-header {
  background: var(--lm-surface) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--lm-border) !important;
  box-shadow: none !important;
}

body.light-mode #settingsModal .settings-header-icon-wrap {
  background: var(--lm-gold-soft) !important;
  border: 1px solid rgba(201, 148, 0, 0.25) !important;
  box-shadow: none !important;
}

body.light-mode #settingsModal .settings-header-icon,
body.light-mode #settingsModal .settings-header-title,
body.light-mode #settingsModal .settings-header-eyebrow,
body.light-mode #desktopPageSettings .settings-header-title,
body.light-mode #desktopPageSettings .settings-header-eyebrow {
  color: var(--lm-text) !important;
  -webkit-text-fill-color: var(--lm-text) !important;
  text-shadow: none !important;
}

body.light-mode #settingsModal .settings-header-eyebrow,
body.light-mode #desktopPageSettings .settings-header-eyebrow {
  color: var(--lm-text-muted) !important;
}

body.light-mode #settingsModal .settings-tabs,
body.light-mode #desktopPageSettings .settings-tabs {
  background: var(--lm-surface) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--lm-border) !important;
  box-shadow: none !important;
}

body.light-mode #settingsModal .settings-tab,
body.light-mode #desktopPageSettings .settings-tab {
  color: var(--lm-text-muted) !important;
  background: transparent !important;
  border-bottom-color: transparent !important;
}

body.light-mode #settingsModal .settings-tab i,
body.light-mode #settingsModal .settings-tab span,
body.light-mode #desktopPageSettings .settings-tab i,
body.light-mode #desktopPageSettings .settings-tab span {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

body.light-mode #settingsModal .settings-tab:hover,
body.light-mode #desktopPageSettings .settings-tab:hover {
  color: var(--lm-text) !important;
  background: var(--lm-surface-2) !important;
}

body.light-mode #settingsModal .settings-tab.active,
body.light-mode #desktopPageSettings .settings-tab.active {
  color: var(--lm-gold-dark) !important;
  background: var(--lm-gold-soft) !important;
  border-bottom-color: var(--lm-gold) !important;
}

body.light-mode #settingsModal .settings-content,
body.light-mode #desktopPageSettings .settings-content {
  background: var(--lm-bg) !important;
  color: var(--lm-text) !important;
  scrollbar-color: var(--lm-border-strong) var(--lm-bg) !important;
}

body.light-mode #settingsModal .settings-content::-webkit-scrollbar-track,
body.light-mode #desktopPageSettings .settings-content::-webkit-scrollbar-track {
  background: var(--lm-bg) !important;
}

body.light-mode #settingsModal .settings-content::-webkit-scrollbar-thumb,
body.light-mode #desktopPageSettings .settings-content::-webkit-scrollbar-thumb {
  background: var(--lm-border-strong) !important;
  border-color: var(--lm-bg) !important;
}

body.light-mode #settingsModal .settings-footer,
body.light-mode #desktopPageSettings .settings-footer {
  background: var(--lm-surface) !important;
  background-image: none !important;
  border-top: 1px solid var(--lm-border) !important;
  box-shadow: none !important;
}

body.light-mode #settingsModal .settings-footer .cancel-btn.settings-footer-cancel,
body.light-mode #settingsModal .settings-footer .cancel-btn.settings-footer-back,
body.light-mode #desktopPageSettings .settings-footer .cancel-btn.settings-footer-cancel,
body.light-mode #desktopPageSettings .settings-footer .cancel-btn.settings-footer-back {
  background: var(--lm-surface) !important;
  border: 1px solid var(--lm-border) !important;
  color: var(--lm-text-secondary) !important;
  box-shadow: none !important;
}

body.light-mode #settingsModal .settings-footer .cancel-btn.settings-footer-cancel:hover,
body.light-mode #settingsModal .settings-footer .cancel-btn.settings-footer-back:hover,
body.light-mode #desktopPageSettings .settings-footer .cancel-btn.settings-footer-cancel:hover,
body.light-mode #desktopPageSettings .settings-footer .cancel-btn.settings-footer-back:hover {
  background: var(--lm-surface-2) !important;
  border-color: var(--lm-border-strong) !important;
  color: var(--lm-text) !important;
}

body.light-mode #settingsModal .acct-kv-panel,
body.light-mode #settingsModal .acct-kv-card,
body.light-mode #settingsModal .acct-ref-panel--pro,
body.light-mode #settingsModal .wallet-tab-panel-card,
body.light-mode #settingsModal .acct-linked-panel,
body.light-mode #settingsModal #wallet-tab .wallet-tab-panel-card,
body.light-mode #desktopPageSettings .acct-kv-panel,
body.light-mode #desktopPageSettings .acct-kv-card,
body.light-mode #desktopPageSettings .acct-ref-panel--pro,
body.light-mode #desktopPageSettings #wallet-tab .wallet-tab-panel-card,
body.light-mode #desktopPageSettings .acct-linked-panel,
body.light-mode #settingsModal .settings-pane-clean .settings-section,
body.light-mode #desktopPageSettings .settings-pane-clean .settings-section {
  background: var(--lm-surface) !important;
  background-image: none !important;
  border: 1px solid var(--lm-border) !important;
  box-shadow: none !important;
  color: var(--lm-text) !important;
}

body.light-mode #settingsModal .acct-kv-label,
body.light-mode #settingsModal .acct-info-section-title,
body.light-mode #settingsModal .wallet-tab-panel-card__hint,
body.light-mode #settingsModal .wallet-tab-panel-card__title,
body.light-mode #desktopPageSettings .acct-kv-label,
body.light-mode #desktopPageSettings .acct-info-section-title,
body.light-mode #desktopPageSettings #wallet-tab .wallet-tab-panel-card__title {
  color: var(--lm-text-muted) !important;
}

body.light-mode #settingsModal .acct-kv-value,
body.light-mode #settingsModal .acct-ref-stat-value,
body.light-mode #settingsModal .wallet-tab-panel-card__title,
body.light-mode #desktopPageSettings .acct-kv-value,
body.light-mode #desktopPageSettings .acct-ref-stat-value {
  color: var(--lm-text) !important;
  -webkit-text-fill-color: var(--lm-text) !important;
}

body.light-mode #settingsModal #wallet-tab .wallet-tab-panel-card__head,
body.light-mode #desktopPageSettings #wallet-tab .wallet-tab-panel-card__head {
  background: var(--lm-surface-2) !important;
  border-color: var(--lm-border) !important;
}

body.light-mode #settingsModal #wallet-tab .wallet-connect-cta,
body.light-mode #desktopPageSettings #wallet-tab .wallet-connect-cta {
  background: var(--lm-surface-2) !important;
  border: 1px solid var(--lm-border) !important;
  color: var(--lm-text) !important;
}

body.light-mode #settingsModal .settings-pane-clean,
body.light-mode #settingsModal .settings-pane-clean *,
body.light-mode #desktopPageSettings .settings-pane-clean,
body.light-mode #desktopPageSettings .settings-pane-clean * {
  color: inherit;
}

body.light-mode #settingsModal .settings-pane-clean label,
body.light-mode #settingsModal .settings-pane-clean .input-info,
body.light-mode #desktopPageSettings .settings-pane-clean label {
  color: var(--lm-text-muted) !important;
}

body.light-mode #settingsModal .settings-pane-clean h4,
body.light-mode #settingsModal .settings-pane-clean .settings-section-title,
body.light-mode #desktopPageSettings .settings-pane-clean h4 {
  color: var(--lm-text) !important;
}

/* ——— نوافذ Eedeex (إيداع/سحب) ——— */
body.light-mode .eedeex-modal--withdraw,
body.light-mode .eedeex-modal--deposit,
body.light-mode #eedeexDepositModal .modal-content,
body.light-mode #eedeexWithdrawModal .modal-content {
  background: var(--lm-surface) !important;
  background-image: none !important;
  border: 1px solid var(--lm-border) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
  color: var(--lm-text) !important;
}

body.light-mode .eedeex-wd-header,
body.light-mode .eedeex-deposit-hero {
  background: var(--lm-surface) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--lm-border) !important;
}

body.light-mode .eedeex-wd-header__title,
body.light-mode .eedeex-deposit-hero__title,
body.light-mode .eedeex-wd-asset-card__amount,
body.light-mode .eedeex-wd-token-badge__symbol,
body.light-mode .eedeex-deposit-balance-card__value {
  color: var(--lm-text) !important;
}

body.light-mode .eedeex-wd-asset-card__label,
body.light-mode .eedeex-wd-token-badge__name,
body.light-mode .eedeex-wd-asset-card__hint,
body.light-mode .eedeex-withdraw-note,
body.light-mode .eedeex-deposit-hero__subtitle {
  color: var(--lm-text-muted) !important;
}

body.light-mode .eedeex-wd-asset-card,
body.light-mode .eedeex-withdraw-amount-block,
body.light-mode .eedeex-deposit-balance-card {
  background: var(--lm-surface-2) !important;
  border: 1px solid var(--lm-border) !important;
  background-image: none !important;
}

body.light-mode .eedeex-wd-header__badge,
body.light-mode .eedeex-wd-asset-card__meta-tag {
  color: #15803d !important;
  background: rgba(34, 197, 94, 0.1) !important;
  border-color: rgba(34, 197, 94, 0.22) !important;
}

body.light-mode .eedeex-wd-header__badge--deposit,
body.light-mode .eedeex-wd-asset-card__meta-tag--deposit {
  color: #1d4ed8 !important;
  background: rgba(37, 99, 235, 0.1) !important;
  border-color: rgba(37, 99, 235, 0.22) !important;
}

body.light-mode .eedeex-wd-header .close-btn {
  background: var(--lm-surface-2) !important;
  border-color: var(--lm-border) !important;
  color: var(--lm-text-muted) !important;
}

body.light-mode .eedeex-withdraw-field .eedeex-input,
body.light-mode .eedeex-deposit-body .eedeex-withdraw-field .eedeex-input,
body.light-mode .eedeex-withdraw-amount-block .eedeex-input-with-suffix .eedeex-input,
body.light-mode .eedeex-modal--deposit .eedeex-dp-address-panel,
body.light-mode .eedeex-modal--deposit .eedeex-address-box {
  background: var(--lm-surface) !important;
  border-color: var(--lm-border) !important;
  color: var(--lm-text) !important;
}

body.light-mode .eedeex-modal--deposit .eedeex-dp-address-panel,
body.light-mode .eedeex-modal--deposit .eedeex-dp-card,
body.light-mode .eedeex-modal--deposit .eedeex-dp-network-picker,
body.light-mode .eedeex-modal--deposit button.eedeex-dp-network-selected {
  background: var(--lm-surface-2) !important;
  background-image: linear-gradient(
    148deg,
    rgba(37, 99, 235, 0.06) 0%,
    rgba(255, 255, 255, 0) 55%
  ) !important;
}

body.light-mode .eedeex-modal--deposit #eedeexDepositNetworkSelect.eedeex-input {
  background: var(--lm-surface) !important;
  color: var(--lm-text) !important;
  border-color: var(--lm-border) !important;
}

body.light-mode .eedeex-dp-network-value {
  color: var(--lm-text) !important;
}

body.light-mode button.eedeex-dp-network-selected {
  background: var(--lm-surface-2) !important;
  background-image: linear-gradient(
    148deg,
    rgba(37, 99, 235, 0.06) 0%,
    rgba(255, 255, 255, 0) 55%
  ) !important;
  border-color: var(--lm-border) !important;
}

body.light-mode .eedeex-dp-network-selected__change,
body.light-mode .eedeex-dp-network-chevron {
  color: #2563eb !important;
}

body.light-mode .eedeex-dp-network-selected__change {
  color: #1d4ed8 !important;
  background: rgba(37, 99, 235, 0.1) !important;
  border-color: rgba(37, 99, 235, 0.22) !important;
}

body.light-mode .eedeex-modal--withdraw .eedeex-chip-btn {
  background: var(--lm-surface) !important;
  border-color: var(--lm-border) !important;
  color: var(--lm-text-muted) !important;
}

body.light-mode .eedeex-modal--withdraw .eedeex-chip-btn--max {
  color: #1d4ed8 !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
  background: rgba(37, 99, 235, 0.08) !important;
}

body.light-mode .eedeex-wd-percent-label {
  color: #2563eb !important;
}

/* ——— صفحة حسابي (account.html) ——— */
body.light-mode .container .header,
body.light-mode .content-section,
body.light-mode .info-card,
body.light-mode .stat-card,
body.light-mode .referral-section,
body.light-mode .withdraw-modal-card,
body.light-mode .login-section,
body.light-mode .account-panel {
  background: var(--lm-surface) !important;
  background-image: none !important;
  border: 1px solid var(--lm-border) !important;
  box-shadow: none !important;
  color: var(--lm-text) !important;
}

body.light-mode .header-title,
body.light-mode .section-title,
body.light-mode .referral-title,
body.light-mode .withdraw-modal-title,
body.light-mode .account-user-name,
body.light-mode .info-value,
body.light-mode .stat-value,
body.light-mode .withdraw-balance strong {
  color: var(--lm-text) !important;
  -webkit-text-fill-color: var(--lm-text) !important;
}

body.light-mode .info-label,
body.light-mode .stat-label,
body.light-mode .withdraw-label,
body.light-mode .withdraw-balance,
body.light-mode .login-section p,
body.light-mode .referral-pro-line2,
body.light-mode .referral-pro-stat-cap,
body.light-mode .referral-pro-cta-hint {
  color: var(--lm-text-muted) !important;
}

body.light-mode .back-button,
body.light-mode .logout-button,
body.light-mode .theme-toggle-btn {
  color: var(--lm-text-secondary) !important;
  border-color: var(--lm-border) !important;
}

body.light-mode .referral-section--pro {
  background: var(--lm-green-soft) !important;
  border: 1px solid rgba(14, 203, 129, 0.25) !important;
}

body.light-mode .referral-pro-line1 {
  color: var(--lm-text) !important;
}

body.light-mode .referral-pro-stat {
  background: var(--lm-surface-2) !important;
  border: 1px solid var(--lm-border) !important;
}

/* ——— نصوص فاتحة متبقية على خلفية بيضاء ——— */
body.light-mode .wallet-label,
body.light-mode .wallet-daily-label,
body.light-mode .cex-ticker__m-label,
body.light-mode .bot-status__label,
body.light-mode .trade-box-heading,
body.light-mode .level-hint,
body.light-mode .diagnostics-card,
body.light-mode .diagnostics-section--standalone {
  color: var(--lm-text-muted) !important;
}

body.light-mode .wallet-main-value-new,
body.light-mode .cex-ticker__price,
body.light-mode .cex-ticker__pair,
body.light-mode .price-value,
body.light-mode .stat-value,
body.light-mode .bot-status__value,
body.light-mode .level-value,
body.light-mode .position-metric-value {
  color: var(--lm-text) !important;
  -webkit-text-fill-color: var(--lm-text) !important;
}

body.light-mode [style*="color: #e0e6ff"],
body.light-mode [style*="color: #cbd5e1"],
body.light-mode [style*="color: #94a3b8"],
body.light-mode [style*="color: #8b9dc4"],
body.light-mode [style*="color: #f8fafc"],
body.light-mode [style*="color: #e2e8f0"],
body.light-mode [style*="color: #e0e0e0"] {
  color: var(--lm-text-muted) !important;
}

body.light-mode [style*="color: #fff"],
body.light-mode [style*="color: #ffffff"],
body.light-mode [style*="color: white"] {
  color: var(--lm-text) !important;
}

/* ——— قسم سيولة EDX في الإعدادات ——— */
body.light-mode #settingsModal .acct-liquidity-panel {
  background: var(--lm-surface) !important;
  border: 1px solid var(--lm-border) !important;
  box-shadow: var(--lm-shadow-sm) !important;
}

body.light-mode #settingsModal .acct-liquidity-lead,
body.light-mode #settingsModal .acct-liquidity-cta-hint {
  color: var(--lm-text-secondary) !important;
}

body.light-mode #settingsModal .acct-liquidity-rate-badge {
  background: var(--lm-green-soft) !important;
  color: var(--lm-green) !important;
  border-color: rgba(14, 203, 129, 0.28) !important;
}

body.light-mode #settingsModal .acct-liquidity-cta {
  background: var(--lm-surface-2) !important;
  border-color: var(--lm-border) !important;
  color: var(--lm-text) !important;
}

body.light-mode #settingsModal .acct-liquidity-section-h {
  color: var(--lm-green) !important;
}

/* ——— صفحة توفير السيولة edx-liquidity.html ——— */
body.eedeex-page-liquidity.light-mode {
  --ui-bg: var(--lm-bg);
  --ui-surface: var(--lm-surface);
  --ui-surface-soft: var(--lm-surface-2);
  --bg: var(--lm-bg);
  --panel: var(--lm-surface);
  --panel2: var(--lm-surface-2);
  --border: var(--lm-border);
  --border-dim: var(--lm-border);
  --txt: var(--lm-text);
  --muted: var(--lm-text-muted);
  --green: var(--lm-green);
  --green-deep: #0a7d55;
  --green-glow: rgba(14, 203, 129, 0.15);
  --cyan: #1e80ff;
  background: var(--lm-bg) !important;
  color: var(--lm-text) !important;
}

body.eedeex-page-liquidity.light-mode::before {
  display: none !important;
}

body.eedeex-page-liquidity.light-mode .main-card,
body.eedeex-page-liquidity.light-mode .positions-panel,
body.eedeex-page-liquidity.light-mode .bottom-dock,
body.eedeex-page-liquidity.light-mode .modal-box,
body.eedeex-page-liquidity.light-mode .liq-share-modal__box,
body.eedeex-page-liquidity.light-mode .account-pill,
body.eedeex-page-liquidity.light-mode .icon-btn,
body.eedeex-page-liquidity.light-mode .stat-tile,
body.eedeex-page-liquidity.light-mode .gain-card,
body.eedeex-page-liquidity.light-mode .chart-wrap,
body.eedeex-page-liquidity.light-mode .plan-dropdown-menu,
body.eedeex-page-liquidity.light-mode .pos-row {
  background: var(--lm-surface) !important;
  border-color: var(--lm-border) !important;
  color: var(--lm-text) !important;
  box-shadow: var(--lm-shadow-sm) !important;
}

body.eedeex-page-liquidity.light-mode .brand-name,
body.eedeex-page-liquidity.light-mode .pair-pair-label,
body.eedeex-page-liquidity.light-mode .gain-value,
body.eedeex-page-liquidity.light-mode .pct-value,
body.eedeex-page-liquidity.light-mode .pair-apr,
body.eedeex-page-liquidity.light-mode .stat-value,
body.eedeex-page-liquidity.light-mode .live-price-label,
body.eedeex-page-liquidity.light-mode h2,
body.eedeex-page-liquidity.light-mode h3 {
  color: var(--lm-text) !important;
}

body.eedeex-page-liquidity.light-mode .brand-sub,
body.eedeex-page-liquidity.light-mode .lbl,
body.eedeex-page-liquidity.light-mode .cap,
body.eedeex-page-liquidity.light-mode .disclaimer,
body.eedeex-page-liquidity.light-mode .apr-mini-lbl {
  color: var(--lm-text-muted) !important;
}

body.eedeex-page-liquidity.light-mode .trial-banner {
  background: var(--lm-gold-soft) !important;
  border-color: rgba(201, 148, 0, 0.25) !important;
  color: var(--lm-text-secondary) !important;
}

body.eedeex-page-liquidity.light-mode .btn-primary {
  background: linear-gradient(135deg, var(--lm-green) 0%, var(--lm-green-hover) 100%) !important;
  color: #fff !important;
}

body.eedeex-page-liquidity.light-mode .btn-outline {
  background: var(--lm-surface) !important;
  border-color: var(--lm-border-strong) !important;
  color: var(--lm-text-secondary) !important;
}

body.eedeex-page-liquidity.light-mode .stake-input-hero,
body.eedeex-page-liquidity.light-mode input[type="number"] {
  background: var(--lm-surface-2) !important;
  border-color: var(--lm-border) !important;
  color: var(--lm-text) !important;
}

body.eedeex-page-liquidity.light-mode .liq-promo-rail {
  background: var(--lm-accent-soft) !important;
  border-color: var(--lm-border) !important;
}

body.eedeex-page-liquidity.light-mode .loading {
  color: var(--lm-text-muted) !important;
}

/* ===================================================================
   وضع النهار الاحترافي — طبقة تداول (Binance / Bybit style)
   =================================================================== */

html.light-mode {
  color-scheme: light;
}

html:not(.light-mode) {
  color-scheme: dark;
}

body.light-mode {
  font-family: var(--lm-font) !important;
}

/* ——— شريط علوي + أزرار (تغلب على desktop-tradex الداكن) ——— */
@media (min-width: 769px) {
  body.light-mode.desktop-tradex .top-navbar {
    background: var(--lm-surface) !important;
    border-bottom: 1px solid var(--lm-border) !important;
    box-shadow: 0 1px 0 var(--lm-border) !important;
  }

  body.light-mode.desktop-tradex .top-navbar .price-card {
    background: var(--lm-surface-2) !important;
    border: 1px solid var(--lm-border) !important;
    box-shadow: none !important;
  }

  body.light-mode.desktop-tradex .top-navbar .price-card:hover {
    border-color: var(--lm-border-strong) !important;
    background: var(--lm-surface-3) !important;
  }

  body.light-mode.desktop-tradex .top-navbar .price-symbol {
    color: var(--lm-text-muted) !important;
    text-shadow: none !important;
  }

  body.light-mode.desktop-tradex .top-navbar .price-value {
    color: var(--lm-text) !important;
    text-shadow: none !important;
  }

  body.light-mode.desktop-tradex .top-navbar .price-change.positive {
    background: var(--lm-green-soft) !important;
    color: var(--lm-green) !important;
  }

  body.light-mode.desktop-tradex .top-navbar .price-change.negative {
    background: var(--lm-red-soft) !important;
    color: var(--lm-red) !important;
  }

  body.light-mode.desktop-tradex .nav-btn {
    background: var(--lm-surface) !important;
    border: 1px solid var(--lm-border) !important;
    color: var(--lm-text-secondary) !important;
    box-shadow: none !important;
  }

  body.light-mode.desktop-tradex .nav-btn:hover {
    background: var(--lm-surface-2) !important;
    border-color: var(--lm-border-strong) !important;
    color: var(--lm-text) !important;
    box-shadow: none !important;
  }

  body.light-mode.desktop-tradex .nav-btn--theme {
    background: var(--lm-gold-soft) !important;
    border-color: rgba(201, 148, 0, 0.28) !important;
    color: var(--lm-gold-dark) !important;
  }

  body.light-mode.desktop-tradex .news-ticker-wrapper {
    background: var(--lm-surface) !important;
    border-bottom: 1px solid var(--lm-border) !important;
  }

  body.light-mode.desktop-tradex .news-ticker-label {
    background: var(--lm-red) !important;
    color: #fff !important;
    border-inline-end-color: var(--lm-border) !important;
  }

  body.light-mode.desktop-tradex .news-ticker-label i {
    color: #fff !important;
  }

  body.light-mode.desktop-tradex .header-subtitle {
    color: var(--lm-text-muted) !important;
  }
}

/* ——— رسم بياني ——— */
body.light-mode .chart-box,
body.light-mode .chart-container,
body.light-mode #priceChart {
  background: var(--lm-surface) !important;
}

body.light-mode .chart-info,
body.light-mode .chart-right-column {
  background: transparent !important;
}

body.light-mode .current-price-hero,
body.light-mode .current-price-hero--analysis-fullbleed {
  background: var(--lm-surface) !important;
  border: 1px solid var(--lm-border) !important;
  box-shadow: none !important;
}

body.light-mode .analysis-market-caption__text {
  color: var(--lm-text-muted) !important;
}

/* ——— محفظة + عائد يومي ——— */
body.light-mode .wallet-card {
  border: 1px solid var(--lm-border) !important;
}

body.light-mode .wallet-daily-badge {
  background: var(--lm-surface-2) !important;
  border: 1px solid var(--lm-border) !important;
  box-shadow: none !important;
}

body.light-mode .wallet-daily-badge:not(.wallet-daily-badge--loss) #wallet-daily-value-new {
  color: var(--lm-green) !important;
}

body.light-mode .wallet-daily-badge.wallet-daily-badge--loss {
  background: var(--lm-red-soft) !important;
  border-color: rgba(246, 70, 93, 0.28) !important;
}

body.light-mode .wallet-daily-badge.wallet-daily-badge--loss #wallet-daily-value-new {
  color: var(--lm-red) !important;
}

body.light-mode .wallet-daily-badge__sub {
  color: var(--lm-text-muted) !important;
}

body.light-mode .wallet-show-more-btn,
body.light-mode .wallet-eye-toggle {
  color: var(--lm-text-muted) !important;
  border-color: var(--lm-border) !important;
}

/* ——— مراكز مفتوحة + سجل ——— */
body.light-mode .position-card {
  background: var(--lm-surface) !important;
  border: 1px solid var(--lm-border) !important;
  box-shadow: none !important;
}

body.light-mode .position-symbol {
  color: var(--lm-text) !important;
}

body.light-mode .position-meta-chip {
  background: var(--lm-surface-2) !important;
  color: var(--lm-text-secondary) !important;
  border: 1px solid var(--lm-border) !important;
}

body.light-mode .position-metric {
  background: var(--lm-surface-2) !important;
  border: 1px solid var(--lm-border) !important;
}

body.light-mode .position-metric-label {
  color: var(--lm-text-muted) !important;
}

body.light-mode .position-action-btn {
  border: 1px solid var(--lm-border) !important;
}

body.light-mode .journal-row-wrap {
  background: var(--lm-surface) !important;
  border: 1px solid var(--lm-border) !important;
}

body.light-mode .journal-row {
  color: var(--lm-text) !important;
}

body.light-mode .journal-row:hover {
  background: var(--lm-surface-2) !important;
}

body.light-mode .journal-row-wrap--selected {
  border-color: rgba(30, 128, 255, 0.35) !important;
  background: rgba(30, 128, 255, 0.06) !important;
  box-shadow: none !important;
}

body.light-mode .journal-inline-detail {
  background: var(--lm-surface-2) !important;
  border-top-color: var(--lm-border) !important;
}

body.light-mode .trade-terminal-icon-btn,
body.light-mode .trade-terminal-badge {
  background: var(--lm-surface-2) !important;
  border: 1px solid var(--lm-border) !important;
  color: var(--lm-text-secondary) !important;
}

body.light-mode .trade-terminal-icon-btn:hover {
  background: var(--lm-surface-3) !important;
  color: var(--lm-text) !important;
}

/* ——— بوت + مفاتيح ——— */
body.light-mode .bot-management-section .bot-section-heading,
body.light-mode .trading-controls,
body.light-mode .toggle-group {
  color: var(--lm-text) !important;
}

body.light-mode .bot-start-btn,
body.light-mode .bot-stop-btn {
  box-shadow: none !important;
  font-weight: 700 !important;
}

body.light-mode .toggle-slider {
  background: var(--lm-border-strong) !important;
}

body.light-mode input:checked + .toggle-slider {
  background: var(--lm-green) !important;
}

body.light-mode .strategy-inline-box,
body.light-mode .bot-ai-profile {
  background: var(--lm-surface-2) !important;
  border: 1px solid var(--lm-border) !important;
}

/* ——— نافذة أرباح الفترة ——— */
body.light-mode #profitFrameModal .profit-frame-modal__content {
  background: var(--lm-surface) !important;
  background-image: none !important;
  border: 1px solid var(--lm-border) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
}

body.light-mode .profit-frame-modal__close-x {
  background: var(--lm-surface-2) !important;
  border-color: var(--lm-border) !important;
  color: var(--lm-text-muted) !important;
}

body.light-mode .profit-frame-modal__close-x:hover {
  background: var(--lm-surface-3) !important;
  color: var(--lm-text) !important;
  border-color: var(--lm-border-strong) !important;
}

body.light-mode .profit-frame-modal__heading,
body.light-mode .profit-frame-modal__heading span,
body.light-mode #profit-frame-modal-title-inner {
  color: var(--lm-text) !important;
}

body.light-mode .profit-frame-modal__sub,
body.light-mode #profit-frame-modal-sub {
  color: var(--lm-text-muted) !important;
}

body.light-mode .profit-frame-modal__glyph {
  background: var(--lm-gold-soft) !important;
  border: 1px solid rgba(201, 148, 0, 0.25) !important;
  color: var(--lm-gold-dark) !important;
  box-shadow: none !important;
}

body.light-mode .profit-frame-summary {
  background: var(--lm-surface-2) !important;
  border: 1px solid var(--lm-border) !important;
}

body.light-mode .profit-frame-summary__caption,
body.light-mode .profit-frame-summary__count {
  color: var(--lm-text-muted) !important;
}

body.light-mode #profit-frame-value,
body.light-mode #profit-frame-percent {
  color: var(--lm-text) !important;
}

body.light-mode .profit-frame-period-btns .frame-btn.active {
  background: var(--lm-gold-soft) !important;
  color: var(--lm-gold-dark) !important;
  border-color: rgba(201, 148, 0, 0.35) !important;
}

body.light-mode .profit-share-btn {
  background: var(--lm-surface) !important;
  border: 1px solid var(--lm-border) !important;
  color: var(--lm-text-secondary) !important;
}

/* ——— تذييل موبايل / قوائم ——— */
body.light-mode .mobile-dock,
body.light-mode .mobile-dock__btn,
body.light-mode .mobile-tab-strip {
  background: var(--lm-surface) !important;
  border-color: var(--lm-border) !important;
  color: var(--lm-text-muted) !important;
}

body.light-mode .mobile-dock__btn.is-active,
body.light-mode .mobile-tab-strip__item.is-active {
  color: var(--lm-gold-dark) !important;
}

/* ——— وصف / ترويج ——— */
body.light-mode .description-modal .modal-content,
body.light-mode .description-content-premium {
  background: var(--lm-bg) !important;
  color: var(--lm-text) !important;
}

body.light-mode .edx-promo-card {
  background: var(--lm-surface) !important;
  border: 1px solid var(--lm-border) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .edx-promo-card__title {
  color: var(--lm-text) !important;
}

body.light-mode .edx-promo-card__lead {
  color: var(--lm-text-muted) !important;
}

body.light-mode .edx-promo-card__apr-row {
  background: var(--lm-gold-soft) !important;
  border-color: rgba(201, 148, 0, 0.22) !important;
}

/* ——— تمرير ——— */
body.light-mode ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

body.light-mode ::-webkit-scrollbar-thumb {
  background: #c2c8d0;
  border-radius: 8px;
}

body.light-mode ::-webkit-scrollbar-track {
  background: var(--lm-bg);
}

/* ===================================================================
   day-pro-3 — توحيد المتغيرات + نصوص inline + صفحات فرعية
   =================================================================== */

html.light-mode,
body.light-mode {
  --ui-bg: var(--lm-bg);
  --ui-surface: var(--lm-surface);
  --ui-surface-soft: var(--lm-surface-2);
  --ui-border: var(--lm-border);
  --ui-border-strong: var(--lm-border-strong);
  --ui-text: var(--lm-text);
  --ui-muted: var(--lm-text-muted);
  --ui-accent: var(--lm-green);
  --bg-1: var(--lm-bg);
  --bg-2: var(--lm-surface-2);
  --panel: var(--lm-surface);
  --panel-border: var(--lm-border);
  --text-main: var(--lm-text);
  --text-sub: var(--lm-text-secondary);
  --gold: var(--lm-gold-dark);
  --blue: #1e80ff;
}

body.light-mode [style*="color: #e0e6ff"],
body.light-mode [style*="color:#e0e6ff"],
body.light-mode [style*="color: #cbd5e1"],
body.light-mode [style*="color:#cbd5e1"],
body.light-mode [style*="color: #94a3b8"],
body.light-mode [style*="color:#94a3b8"],
body.light-mode [style*="color: #8b9dc4"],
body.light-mode [style*="color:#8b9dc4"],
body.light-mode [style*="color: #64748b"],
body.light-mode [style*="color:#64748b"],
body.light-mode [style*="color: #e2e8f0"],
body.light-mode [style*="color:#e2e8f0"],
body.light-mode [style*="color: #e0e0e0"],
body.light-mode [style*="color:#e0e0e0"],
body.light-mode [style*="color: #aebfe7"],
body.light-mode [style*="color:#aebfe7"] {
  color: var(--lm-text-muted) !important;
}

body.light-mode [style*="color: #f8fafc"],
body.light-mode [style*="color:#f8fafc"],
body.light-mode [style*="color: #f3f6ff"],
body.light-mode [style*="color:#f3f6ff"] {
  color: var(--lm-text) !important;
}

body.light-mode [style*="color: #10b981"],
body.light-mode [style*="color:#10b981"],
body.light-mode [style*="color: #22c55e"],
body.light-mode [style*="color:#22c55e"],
body.light-mode [style*="color: #34d399"],
body.light-mode [style*="color:#34d399"],
body.light-mode [style*="color: #0ecb81"],
body.light-mode [style*="color:#0ecb81"],
body.light-mode [style*="color: #6ee7b7"],
body.light-mode [style*="color:#6ee7b7"] {
  color: var(--lm-green) !important;
}

body.light-mode [style*="color: #ef4444"],
body.light-mode [style*="color:#ef4444"],
body.light-mode [style*="color: #f87171"],
body.light-mode [style*="color:#f87171"],
body.light-mode [style*="color: #fca5a5"],
body.light-mode [style*="color:#fca5a5"] {
  color: var(--lm-red) !important;
}

body.light-mode [style*="color: #f59e0b"],
body.light-mode [style*="color:#f59e0b"],
body.light-mode [style*="color: #fbbf24"],
body.light-mode [style*="color:#fbbf24"],
body.light-mode [style*="color: #fcd34d"],
body.light-mode [style*="color:#fcd34d"],
body.light-mode [style*="color: #fde68a"],
body.light-mode [style*="color:#fde68a"],
body.light-mode [style*="color: #e7c86a"],
body.light-mode [style*="color:#e7c86a"] {
  color: var(--lm-gold-dark) !important;
}

body.light-mode [style*="color: #60a5fa"],
body.light-mode [style*="color:#60a5fa"],
body.light-mode [style*="color: #3b82f6"],
body.light-mode [style*="color:#3b82f6"],
body.light-mode [style*="color: #7dd3fc"],
body.light-mode [style*="color:#7dd3fc"],
body.light-mode [style*="color: #93c5fd"],
body.light-mode [style*="color:#93c5fd"],
body.light-mode [style*="color: #bfdbfe"],
body.light-mode [style*="color:#bfdbfe"] {
  color: #1e80ff !important;
}

body.light-mode [style*="color: #fff"],
body.light-mode [style*="color:#fff"],
body.light-mode [style*="color: #ffffff"],
body.light-mode [style*="color:#ffffff"] {
  color: var(--lm-text) !important;
}

body.light-mode .stake-input-hero,
body.light-mode .stake-input-hero[style*="color"] {
  color: rgba(255, 255, 255, 0.95) !important;
}

body.light-mode #settingsModal .acct-ref-section-h { color: var(--lm-green) !important; }
body.light-mode #settingsModal .acct-linked-section-h { color: var(--lm-gold-dark) !important; }
body.light-mode #settingsModal .acct-ref-lead-highlight { color: var(--lm-gold-dark) !important; }

body.light-mode #wallet-xaut-main { color: var(--lm-gold-dark) !important; }
body.light-mode #wallet-weight-main { color: var(--lm-green) !important; }

body.light-mode .container > .header {
  background: var(--lm-surface) !important;
  border-bottom: 1px solid var(--lm-border) !important;
}

body.light-mode header:not(.settings-header) {
  background: var(--lm-surface) !important;
  border-color: var(--lm-border) !important;
}

body.light-mode .panel,
body.light-mode .issues-panel,
body.light-mode .chat-panel,
body.light-mode .issue-picker-btn,
body.light-mode .composer input {
  background: var(--lm-surface) !important;
  border-color: var(--lm-border) !important;
  color: var(--lm-text) !important;
}

body.light-mode .panel-title { color: var(--lm-text) !important; }
body.light-mode .panel-sub { color: var(--lm-text-muted) !important; }

/* ——— صفحة سيولة EDX: عزل + وضوح (لا تتأثر بقواعد اللوحة العامة) ——— */
body.eedeex-page-liquidity {
  color: var(--txt);
}

body.eedeex-page-liquidity.light-mode {
  --ui-bg: var(--lm-bg);
  --ui-surface: var(--lm-surface);
  --ui-surface-soft: var(--lm-surface-2);
  --bg: var(--lm-bg);
  --panel: var(--lm-surface);
  --panel2: var(--lm-surface-2);
  --border: var(--lm-border);
  --border-dim: var(--lm-border);
  --txt: var(--lm-text);
  --muted: var(--lm-text-muted);
  --green: var(--lm-green);
  --green-deep: #0a7d55;
  --green-glow: rgba(14, 203, 129, 0.2);
  --cyan: #1e80ff;
  background: var(--lm-bg) !important;
  background-image: none !important;
  color: var(--lm-text) !important;
}

body.eedeex-page-liquidity.light-mode::before {
  display: none !important;
}

body.eedeex-page-liquidity #pageContent:not([hidden]) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.eedeex-page-liquidity.light-mode .main-card,
body.eedeex-page-liquidity.light-mode .positions-panel,
body.eedeex-page-liquidity.light-mode .chart-block,
body.eedeex-page-liquidity.light-mode .pair-row,
body.eedeex-page-liquidity.light-mode .balance-chip,
body.eedeex-page-liquidity.light-mode .gain-box,
body.eedeex-page-liquidity.light-mode .chart-wrap,
body.eedeex-page-liquidity.light-mode .bottom-stack,
body.eedeex-page-liquidity.light-mode .apr-dock,
body.eedeex-page-liquidity.light-mode .account-pill,
body.eedeex-page-liquidity.light-mode .icon-btn,
body.eedeex-page-liquidity.light-mode .pos-item {
  background: var(--lm-surface) !important;
  border-color: var(--lm-border) !important;
  color: var(--lm-text) !important;
  box-shadow: var(--lm-shadow-sm) !important;
}

body.eedeex-page-liquidity.light-mode .pair-row {
  background: var(--lm-surface-2) !important;
}

body.eedeex-page-liquidity.light-mode .apr-big,
body.eedeex-page-liquidity.light-mode .gain-total,
body.eedeex-page-liquidity.light-mode .gain-pct,
body.eedeex-page-liquidity.light-mode .chart-apr-hero,
body.eedeex-page-liquidity.light-mode .chart-price-live,
body.eedeex-page-liquidity.light-mode .balance-chip .val,
body.eedeex-page-liquidity.light-mode .num-accrued.pos-profit {
  color: var(--lm-green) !important;
  text-shadow: none !important;
}

body.eedeex-page-liquidity.light-mode .cap,
body.eedeex-page-liquidity.light-mode .lbl,
body.eedeex-page-liquidity.light-mode .preview-line,
body.eedeex-page-liquidity.light-mode .chart-top,
body.eedeex-page-liquidity.light-mode .chart-range-labels,
body.eedeex-page-liquidity.light-mode .yield-row,
body.eedeex-page-liquidity.light-mode .apr-label-row,
body.eedeex-page-liquidity.light-mode .disclaimer {
  color: var(--lm-text-muted) !important;
}

body.eedeex-page-liquidity.light-mode .plan-dropdown-btn {
  background: var(--lm-surface) !important;
  color: var(--lm-text) !important;
  border-color: var(--lm-border) !important;
}

body.eedeex-page-liquidity.light-mode .plan-dropdown-menu {
  background: var(--lm-surface) !important;
  border-color: var(--lm-border) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12) !important;
}

body.eedeex-page-liquidity.light-mode .plan-dropdown-item {
  color: var(--lm-text-secondary) !important;
}

body.eedeex-page-liquidity.light-mode .plan-dropdown-item.active {
  background: var(--lm-green-soft) !important;
  color: var(--lm-green) !important;
}

body.eedeex-page-liquidity.light-mode .stake-input-hero {
  background: linear-gradient(180deg, var(--lm-green) 0%, var(--lm-green-hover) 100%) !important;
  color: #fff !important;
}

body.eedeex-page-liquidity.light-mode .page-shell,
body.eedeex-page-liquidity.light-mode #pageRoot {
  opacity: 1 !important;
  visibility: visible !important;
}

body.eedeex-page-liquidity.light-mode .loading {
  color: var(--lm-text-muted) !important;
}

body.eedeex-page-liquidity.light-mode .err-box {
  color: var(--lm-red) !important;
  background: var(--lm-red-soft) !important;
  border: 1px solid rgba(246, 70, 93, 0.3) !important;
  border-radius: 12px;
  padding: 16px;
}

body.light-mode label:not(.buy-btn):not(.sell-btn):not(.btn-primary),
body.light-mode .hint,
body.light-mode .caption,
body.light-mode .subtext {
  color: var(--lm-text-muted);
}

/* ===================================================================
   day-pro-4 — سجل المحفظة، تبويب عام، بوت، سحب، تسميات
   =================================================================== */

body.light-mode .eedeex-history-modal {
  background: var(--lm-surface) !important;
  border: 1px solid var(--lm-border) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
}

body.light-mode .eedeex-history-modal__head {
  border-bottom-color: var(--lm-border) !important;
}

body.light-mode .eedeex-history-modal__title {
  color: var(--lm-text) !important;
}

body.light-mode .eedeex-history-modal__summary,
body.light-mode .eedeex-history-empty {
  color: var(--lm-text-muted) !important;
}

body.light-mode .eedeex-history-tab {
  background: var(--lm-surface) !important;
  border-color: var(--lm-border) !important;
  color: var(--lm-text-muted) !important;
}

body.light-mode .eedeex-history-tab.is-active {
  background: rgba(30, 128, 255, 0.1) !important;
  border-color: rgba(30, 128, 255, 0.35) !important;
  color: #1e80ff !important;
}

body.light-mode .eedeex-history-card {
  background: var(--lm-surface-2) !important;
  border: 1px solid var(--lm-border) !important;
}

body.light-mode .eedeex-history-card__kind,
body.light-mode .eedeex-history-card__time {
  color: var(--lm-text) !important;
}

body.light-mode .eedeex-history-card__addr,
body.light-mode .eedeex-history-card__meta {
  color: var(--lm-text-muted) !important;
}

body.light-mode .eedeex-history-card--deposit .eedeex-history-card__amt {
  color: var(--lm-green) !important;
}

body.light-mode .eedeex-history-card--withdraw .eedeex-history-card__amt {
  color: var(--lm-gold-dark) !important;
}

body.light-mode .eedeex-history-badge {
  background: var(--lm-green-soft) !important;
  color: var(--lm-green) !important;
  border: 1px solid rgba(14, 203, 129, 0.25) !important;
}

body.light-mode .eedeex-history-net-pill {
  color: var(--lm-text-secondary) !important;
  background: var(--lm-surface-3) !important;
  border-color: var(--lm-border) !important;
}

body.light-mode .trade-unified-main .empty,
body.light-mode .empty {
  background: var(--lm-surface-2) !important;
  color: var(--lm-text-muted) !important;
  border: 1px dashed var(--lm-border) !important;
}

body.light-mode .bot-status__label,
body.light-mode .bot-status__title {
  color: var(--lm-text-secondary) !important;
}

body.light-mode .top-navbar .price-card,
body.light-mode .navbar-price .price-card {
  background: var(--lm-surface) !important;
  border: 1px solid var(--lm-border) !important;
}

body.light-mode .top-navbar .price-symbol,
body.light-mode .navbar-price .price-symbol {
  color: var(--lm-text-muted) !important;
}

body.light-mode .top-navbar .price-value,
body.light-mode .navbar-price .price-value {
  color: var(--lm-text) !important;
}

body.light-mode #bot-start-btn.btn.start {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

body.light-mode .wallet-show-more-btn {
  background: var(--lm-surface-2) !important;
  border: 1px solid var(--lm-border) !important;
  color: var(--lm-text) !important;
}

body.light-mode #settingsModal .acct-kv-label,
body.light-mode #desktopPageSettings .acct-kv-label,
body.light-mode #settingsModal .wallet-tab-panel-card label,
body.light-mode #settingsModal .input-group > label {
  color: var(--lm-text-secondary) !important;
}

body.light-mode #settingsModal .about-box--pro,
body.light-mode #settingsModal .about-box--pro .about-card__inner {
  background: var(--lm-surface) !important;
  border: 1px solid var(--lm-border) !important;
}

body.light-mode #settingsModal .about-box--pro .about-product-title,
body.light-mode #settingsModal .about-features--pro .about-features-title {
  color: var(--lm-text) !important;
  text-shadow: none !important;
}

body.light-mode #settingsModal .about-box--pro .about-lead,
body.light-mode #settingsModal .about-eyebrow,
body.light-mode #settingsModal .about-card__pill {
  color: var(--lm-text-secondary) !important;
}

body.light-mode #settingsModal .about-box--pro .about-lead {
  background: var(--lm-surface-2) !important;
  border-color: var(--lm-border) !important;
}

body.light-mode #settingsModal .about-features-list-pro .about-feat-row {
  background: var(--lm-surface-2) !important;
  border: 1px solid var(--lm-border) !important;
  color: var(--lm-text-secondary) !important;
  box-shadow: none !important;
}

body.light-mode #settingsModal .about-features-list-pro .about-feat-row strong {
  color: var(--lm-text) !important;
}

body.light-mode #settingsModal .about-features-list-pro .feat-ico {
  background: var(--lm-green-soft) !important;
  color: var(--lm-green) !important;
  border-color: rgba(14, 203, 129, 0.25) !important;
}

body.light-mode #settingsModal .about-footer,
body.light-mode #settingsModal .about-footer p {
  color: var(--lm-text-muted) !important;
}

body.light-mode .eedeex-wd-pin-hero__desc,
body.light-mode .eedeex-wd-pin-hero__title,
body.light-mode .eedeex-wd-pin-hint,
body.light-mode #eedeexWithdrawPinGateModal .eedeex-field-label,
body.light-mode #eedeexWithdrawPinGateModal .eedeex-modal-sub {
  color: var(--lm-text-secondary) !important;
}

body.light-mode .modal.active {
  background: rgba(15, 23, 42, 0.35) !important;
}

body.light-mode #eedeexWithdrawPinGateModal .modal-content,
body.light-mode #eedeexWithdrawPinSetupModal .modal-content {
  background: var(--lm-surface) !important;
  color: var(--lm-text) !important;
  border: 1px solid var(--lm-border) !important;
}

body.light-mode .eedeex-deposit-warning,
body.light-mode .eedeex-deposit-note {
  color: var(--lm-gold-dark) !important;
  background: var(--lm-gold-soft) !important;
  border-color: rgba(201, 148, 0, 0.35) !important;
}

body.light-mode .eedeex-deposit-body .eedeex-field-label,
body.light-mode .eedeex-deposit-hint {
  color: var(--lm-text-secondary) !important;
}

/* ——— صفحة سحب USDT المستقلة ——— */
body.eedeex-page-withdraw.light-mode {
  --wd-bg: var(--lm-bg);
  --wd-bg-2: var(--lm-surface-2);
  --wd-surface: var(--lm-surface);
  --wd-surface-2: var(--lm-surface-2);
  --wd-surface-3: var(--lm-surface-3);
  --wd-border: var(--lm-border);
  --wd-border-strong: var(--lm-border-strong);
  --wd-text: var(--lm-text);
  --wd-text-soft: var(--lm-text-secondary);
  --wd-muted: var(--lm-text-muted);
  --wd-muted-2: var(--lm-text-muted);
  --wd-accent: #1e80ff;
  --wd-accent-soft: rgba(30, 128, 255, 0.1);
  --wd-success: var(--lm-green);
  --wd-success-bg: var(--lm-green-soft);
  --wd-danger: var(--lm-red);
  --wd-danger-bg: var(--lm-red-soft);
  --wd-gold: var(--lm-gold-dark);
  --wd-shadow: var(--lm-shadow-sm);
  background: var(--lm-bg) !important;
  color: var(--lm-text) !important;
}

body.eedeex-page-withdraw.light-mode .wd-card,
body.eedeex-page-withdraw.light-mode .wd-panel {
  background: var(--lm-surface) !important;
  border: 1px solid var(--lm-border) !important;
  box-shadow: var(--lm-shadow-sm) !important;
}

body.eedeex-page-withdraw.light-mode .wd-back {
  background: var(--lm-surface) !important;
  border-color: var(--lm-border) !important;
  color: var(--lm-text-muted) !important;
}

body.eedeex-page-withdraw.light-mode .wd-input,
body.eedeex-page-withdraw.light-mode .wd-select {
  background: var(--lm-surface) !important;
  border-color: var(--lm-border) !important;
  color: var(--lm-text) !important;
}

body.eedeex-page-withdraw.light-mode .wd-btn-primary {
  color: #fff !important;
}

/* ===================================================================
   day-pro-5 — إزالة كل الخلفيات السوداء/الداكنة (هاتف + مكتب + inline)
   =================================================================== */

html.light-mode,
body.light-mode {
  color-scheme: light;
}

html[data-light-mode-disabled="1"] .nav-btn--theme,
html[data-light-mode-disabled="1"] .icon-btn--theme,
html[data-light-mode-disabled="1"] .theme-toggle-btn,
html[data-light-mode-disabled="1"] #liqThemeToggle,
html[data-light-mode-disabled="1"] #themeToggleBtn,
html[data-light-mode-disabled="1"] .input-group:has(#themeSelect) {
  display: none !important;
}

body.light-mode,
body.light-mode .container {
  background: var(--lm-bg) !important;
  background-image: none !important;
  color: var(--lm-text) !important;
}

body.light-mode::before {
  display: none !important;
  opacity: 0 !important;
  background: none !important;
}

/* تجاوز inline داكن على أي عنصر */
body.light-mode [style*="background:#0"],
body.light-mode [style*="background: #0"],
body.light-mode [style*="background:#1"],
body.light-mode [style*="background: #1"],
body.light-mode [style*="background:rgb(15"],
body.light-mode [style*="background: rgb(15"],
body.light-mode [style*="background:rgba(15"],
body.light-mode [style*="background: rgba(15"],
body.light-mode [style*="background:rgba(10"],
body.light-mode [style*="background: rgba(10"],
body.light-mode [style*="background:rgba(2, 6"],
body.light-mode [style*="background: rgba(2, 6"],
body.light-mode [style*="background:rgba(11"],
body.light-mode [style*="background: rgba(11"],
body.light-mode [style*="background:rgba(12"],
body.light-mode [style*="background: rgba(12"],
body.light-mode [style*="background:rgba(17"],
body.light-mode [style*="background: rgba(17"],
body.light-mode [style*="background:linear-gradient"][style*="#0f"],
body.light-mode [style*="background: linear-gradient"][style*="#0f"],
body.light-mode [style*="background:linear-gradient"][style*="#0b"],
body.light-mode [style*="background: linear-gradient"][style*="#0b"],
body.light-mode [style*="background:linear-gradient"][style*="rgba(15"],
body.light-mode [style*="background: linear-gradient"][style*="rgba(15"],
body.light-mode [style*="background:linear-gradient"][style*="rgba(10"],
body.light-mode [style*="background: linear-gradient"][style*="rgba(10"] {
  background: var(--lm-surface) !important;
  background-image: none !important;
  border-color: var(--lm-border) !important;
}

body.light-mode .modal,
body.light-mode .modal.active {
  background: rgba(30, 35, 41, 0.4) !important;
}

body.light-mode .modal-content,
body.light-mode .eedeex-modal__panel,
body.light-mode .eedeex-modal__body,
body.light-mode .eedeex-deposit-panel,
body.light-mode .eedeex-dp-step,
body.light-mode .eedeex-dp-network-list,
body.light-mode .eedeex-chip,
body.light-mode .eedeex-network-card,
body.light-mode .trial-upgrade-modal .modal-content,
body.light-mode .confirm-modal .modal-content {
  background: var(--lm-surface) !important;
  background-image: none !important;
  border-color: var(--lm-border) !important;
  color: var(--lm-text) !important;
}

body.light-mode .trade-box,
body.light-mode .trade-unified-box,
body.light-mode .trade-unified-main,
body.light-mode .trade-unified-tabs,
body.light-mode .trade-unified-tab,
body.light-mode .trade-unified-positions-pane,
body.light-mode .trade-unified-journal-pane,
body.light-mode .trade-journal-detail,
body.light-mode .bot-console,
body.light-mode .bot-console-inner,
body.light-mode .bot-trade-panel,
body.light-mode .stake-zone,
body.light-mode .bot-instant-buy-reveal,
body.light-mode .wallet-show-more-wrap,
body.light-mode .wallet-details-modal__content,
body.light-mode .instant-buy-modal__content,
body.light-mode .close-position-modal__content,
body.light-mode .diagnostics-card,
body.light-mode .diagnostics-section--standalone,
body.light-mode .notification-item,
body.light-mode .alert-box,
body.light-mode .strategy-card,
body.light-mode .plan-card,
body.light-mode .subscription-card,
body.light-mode .cex-bind-panel,
body.light-mode .wallet-exchange-card,
body.light-mode .eedeex-dex-card {
  background: var(--lm-surface) !important;
  background-image: none !important;
  border-color: var(--lm-border) !important;
  box-shadow: var(--lm-shadow-sm) !important;
  color: var(--lm-text) !important;
}

body.light-mode .info-item,
body.light-mode .level-item,
body.light-mode .perf-card,
body.light-mode .analysis-item,
body.light-mode .stat-box,
body.light-mode .header-icon-box,
body.light-mode .bot-status,
body.light-mode .wallet-eye-btn,
body.light-mode .nav-btn,
body.light-mode .wallet-more-btn,
body.light-mode .wallet-show-more-btn,
body.light-mode .trade-unified-tab,
body.light-mode .position-card,
body.light-mode .position-row,
body.light-mode .journal-row {
  background: var(--lm-surface) !important;
  background-image: none !important;
  border-color: var(--lm-border) !important;
  color: var(--lm-text) !important;
}

body.light-mode .wallet-show-more-btn,
body.light-mode #walletShowMoreBtn {
  background: var(--lm-surface-2) !important;
  color: var(--lm-text) !important;
}

/* ——— هاتف: تجاوز كتلة index @media max-width 768px ——— */
@media (max-width: 768px) {
  body.light-mode:not(.eedeex-page-parametre):not(.ref-page) {
    background: var(--lm-bg) !important;
    color: var(--lm-text) !important;
  }

  body.light-mode:not(.eedeex-page-parametre):not(.ref-page)::before {
    display: none !important;
    opacity: 0 !important;
    background: none !important;
  }

  body.light-mode:not(.eedeex-page-parametre) .top-navbar {
    background: var(--lm-surface) !important;
    border-bottom: 1px solid var(--lm-border) !important;
    box-shadow: none !important;
  }

  body.light-mode:not(.eedeex-page-parametre) .navbar-logo-text {
    color: var(--lm-gold-dark) !important;
  }

  body.light-mode:not(.eedeex-page-parametre) .top-navbar .price-card {
    background: var(--lm-surface) !important;
    border: 1px solid var(--lm-border) !important;
    box-shadow: none !important;
  }

  body.light-mode:not(.eedeex-page-parametre) .top-navbar .price-symbol {
    color: var(--lm-text-muted) !important;
  }

  body.light-mode:not(.eedeex-page-parametre) .top-navbar .price-value {
    color: var(--lm-text) !important;
  }

  body.light-mode:not(.eedeex-page-parametre) .news-ticker-wrapper {
    background: var(--lm-surface) !important;
    border-bottom: 1px solid var(--lm-border) !important;
  }

  body.light-mode:not(.eedeex-page-parametre) .news-ticker-label,
  body.light-mode:not(.eedeex-page-parametre) .news-item-text {
    color: var(--lm-text-secondary) !important;
  }

  body.light-mode:not(.eedeex-page-parametre) .wallet-card,
  body.light-mode:not(.eedeex-page-parametre) .header,
  body.light-mode:not(.eedeex-page-parametre) .chart-section,
  body.light-mode:not(.eedeex-page-parametre) .bot-management-section,
  body.light-mode:not(.eedeex-page-parametre) .performance-section,
  body.light-mode:not(.eedeex-page-parametre) .card,
  body.light-mode:not(.eedeex-page-parametre) .trade-box,
  body.light-mode:not(.eedeex-page-parametre) .trade-history-section,
  body.light-mode:not(.eedeex-page-parametre) .price-levels,
  body.light-mode.mobile-layout-active .mobile-bot-merged,
  body.light-mode.mobile-layout-active .mobile-bot-merged .trade-box,
  body.light-mode.mobile-layout-active .mobile-levels-row .price-levels,
  body.light-mode.mobile-layout-active .mobile-levels-row .performance-section {
    background: var(--lm-surface) !important;
    background-image: none !important;
    border: 1px solid var(--lm-border) !important;
    box-shadow: none !important;
    color: var(--lm-text) !important;
  }

  body.light-mode:not(.eedeex-page-parametre) .wallet-main-value-new {
    background: none !important;
    -webkit-text-fill-color: var(--lm-text) !important;
    color: var(--lm-text) !important;
  }

  body.light-mode:not(.eedeex-page-parametre) .wallet-label,
  body.light-mode:not(.eedeex-page-parametre) .detail-label,
  body.light-mode:not(.eedeex-page-parametre) .info-label,
  body.light-mode:not(.eedeex-page-parametre) .perf-label,
  body.light-mode:not(.eedeex-page-parametre) .level-label,
  body.light-mode:not(.eedeex-page-parametre) .header-stats .stat-label,
  body.light-mode:not(.eedeex-page-parametre) .bot-status__label,
  body.light-mode:not(.eedeex-page-parametre) .bot-status__title {
    color: var(--lm-text-muted) !important;
  }

  body.light-mode:not(.eedeex-page-parametre) .bot-title,
  body.light-mode:not(.eedeex-page-parametre) .card-title,
  body.light-mode:not(.eedeex-page-parametre) .section-title,
  body.light-mode:not(.eedeex-page-parametre) .detail-value,
  body.light-mode:not(.eedeex-page-parametre) .level-value,
  body.light-mode:not(.eedeex-page-parametre) .perf-value,
  body.light-mode:not(.eedeex-page-parametre) .info-value {
    color: var(--lm-text) !important;
    text-shadow: none !important;
  }

  body.light-mode:not(.eedeex-page-parametre) .bot-management-section .bot-section-heading,
  body.light-mode:not(.eedeex-page-parametre) .trade-box-heading {
    color: var(--lm-text-secondary) !important;
  }

  body.light-mode:not(.eedeex-page-parametre) .info-item,
  body.light-mode:not(.eedeex-page-parametre) .level-item,
  body.light-mode:not(.eedeex-page-parametre) .perf-card,
  body.light-mode:not(.eedeex-page-parametre) .analysis-item,
  body.light-mode:not(.eedeex-page-parametre) .header-stats .stat-box {
    background: var(--lm-surface-2) !important;
    border-color: var(--lm-border) !important;
  }

  body.light-mode:not(.eedeex-page-parametre) .nav-btn,
  body.light-mode:not(.eedeex-page-parametre) .wallet-more-btn,
  body.light-mode.mobile-layout-active:not(.eedeex-page-parametre) .wallet-eye-btn {
    background: var(--lm-surface) !important;
    border-color: var(--lm-border) !important;
    color: var(--lm-text-secondary) !important;
  }

  body.light-mode:not(.eedeex-page-parametre) .empty,
  body.light-mode:not(.eedeex-page-parametre) .trade-unified-main .empty {
    background: var(--lm-surface-2) !important;
    color: var(--lm-text-muted) !important;
    border: 1px dashed var(--lm-border) !important;
  }
}

/* ——— مكتب TradeX: تجاوز gradients داكنة ——— */
@media (min-width: 769px) {
  body.light-mode.desktop-tradex,
  body.light-mode.eedeex-tradex.desktop-tradex,
  body.light-mode.layout-desktop.desktop-tradex {
    background: var(--lm-bg) !important;
    background-image: none !important;
  }

  body.light-mode.desktop-tradex::before,
  body.light-mode.eedeex-tradex.desktop-tradex::before {
    display: none !important;
  }

  body.light-mode.desktop-tradex .top-navbar {
    background: var(--lm-surface) !important;
    border-bottom: 1px solid var(--lm-border) !important;
    box-shadow: none !important;
  }

  body.light-mode.desktop-tradex .wallet-card,
  body.light-mode.desktop-tradex .chart-section,
  body.light-mode.desktop-tradex .chart-box,
  body.light-mode.desktop-tradex .bot-management-section,
  body.light-mode.desktop-tradex .performance-section,
  body.light-mode.desktop-tradex .trade-history-section,
  body.light-mode.desktop-tradex .trade-box,
  body.light-mode.desktop-tradex .trade-unified-box,
  body.light-mode.desktop-tradex .bot-status,
  body.light-mode.desktop-tradex .cex-ticker,
  body.light-mode.desktop-tradex .price-levels,
  body.light-mode.desktop-tradex .header,
  body.light-mode.desktop-tradex .header-stats .stat-box,
  body.light-mode.desktop-tradex .info-item,
  body.light-mode.desktop-tradex .level-item,
  body.light-mode.desktop-tradex .perf-card,
  body.light-mode.desktop-tradex .nav-btn {
    background: var(--lm-surface) !important;
    background-image: none !important;
    border: 1px solid var(--lm-border) !important;
    box-shadow: none !important;
    color: var(--lm-text) !important;
  }

  body.light-mode.desktop-tradex .top-navbar .price-card {
    background: var(--lm-surface) !important;
    border: 1px solid var(--lm-border) !important;
  }

  body.light-mode.desktop-tradex .wallet-daily-badge {
    background: var(--lm-green-soft) !important;
    border-color: rgba(14, 203, 129, 0.3) !important;
  }

  body.light-mode.desktop-tradex .wallet-daily-badge.wallet-daily-badge--loss {
    background: var(--lm-red-soft) !important;
    border-color: rgba(246, 70, 93, 0.3) !important;
  }

  body.light-mode.desktop-tradex .wallet-main-value-new,
  body.light-mode.desktop-tradex .navbar-logo-text {
    color: var(--lm-text) !important;
    text-shadow: none !important;
  }
}

/* ——— دعم / إحالات / هبوط ——— */
body.light-mode header,
body.light-mode .issues-panel,
body.light-mode .chat-panel,
body.light-mode .issue-picker-btn,
body.light-mode .composer,
body.light-mode .composer input,
body.light-mode .msg,
body.light-mode .ref-card,
body.light-mode .ref-panel,
body.light-mode .ref-stat,
body.light-mode .hero-section,
body.light-mode .feature-card,
body.light-mode .pricing-card,
body.light-mode .landing-card {
  background: var(--lm-surface) !important;
  background-image: none !important;
  border-color: var(--lm-border) !important;
  color: var(--lm-text) !important;
}

body.light-mode .ref-topbar,
body.light-mode .ref-history-panel {
  background: var(--lm-surface) !important;
  border-color: var(--lm-border) !important;
}

