:root,
html[data-theme="light"] {
    --bg-base: #f5f6f8;
    --bg-panel: #ffffff;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-dark: #f5f6f8;
    --bg-body: #f5f6f8;
    --bg-card-hover: #eceef2;

    --border-light: #e0e3e8;
    --border-color: #e0e3e8;
    --border-hover: #c5cad3;
    --border-highlight: #c5cad3;

    --primary: #0ecb81;
    --primary-light: #0ecb81;
    --primary-gradient: #0ecb81;

    --success: #0ecb81;
    --success-gradient: #0ecb81;
    --danger: #f6465d;

    --text-white: #1e2329;
    --text-heading: #1e2329;
    --text-main: #1e2329;
    --text-body: #1e2329;
    --text-muted: #707a8a;

    --shadow-glass: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    color-scheme: light;
}

html[data-theme="dark"] {
    --bg-base: #0b0e11 !important;
    --bg-panel: #161a1e !important;
    --bg-card: #1e2329 !important;
    --bg-sidebar: #161a1e !important;
    --bg-dark: #0b0e11 !important;
    --bg-body: #0b0e11 !important;
    --bg-card-hover: #2b3139 !important;

    --border-light: #2b3139 !important;
    --border-color: #2b3139 !important;
    --border-hover: #474d57 !important;
    --border-highlight: #474d57 !important;

    --primary: #0ecb81 !important;
    --primary-light: #0ecb81 !important;
    --primary-gradient: #0ecb81 !important;

    --success: #0ecb81 !important;
    --success-gradient: #0ecb81 !important;
    --danger: #f6465d !important;

    --text-white: #ffffff !important;
    --text-heading: #eaecef !important;
    --text-main: #eaecef !important;
    --text-body: #eaecef !important;
    --text-muted: #848e9c !important;

    --shadow-glass: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
    color-scheme: dark;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .dashboard-body,
html[data-theme="dark"] .main-content,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .glass-panel,
html[data-theme="dark"] .card,
html[data-theme="dark"] .section-card {
    background-color: var(--bg-base);
    color: var(--text-main);
}

html[data-theme="dark"] .tick-num,
html[data-theme="dark"] .price-value,
html[data-theme="dark"] .val-green,
html[data-theme="dark"] .val-red {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
}

html[data-theme="dark"] .val-green { color: #0ecb81 !important; }
html[data-theme="dark"] .val-red { color: #f6465d !important; }

/* ===== Forex terminal B&W polish (appended) ===== */
html[data-theme="light"] {
    --bg-base: #ffffff;
    --bg-body: #f7f8fa;
    --bg-panel: #ffffff;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-card-hover: #f0f1f3;
    --border-light: #eaecef;
    --border-color: #eaecef;
    --border-hover: #d1d5db;
    --text-heading: #0b0e11;
    --text-main: #1e2329;
    --text-body: #1e2329;
    --text-muted: #707a8a;
    --primary: #0ecb81;
    --danger: #f6465d;
    --gold: #c99400;
}

html[data-theme="dark"] {
    --bg-base: #0b0e11;
    --bg-body: #0b0e11;
    --bg-panel: #12161c;
    --bg-card: #1e2329;
    --bg-sidebar: #0f1419;
    --bg-card-hover: #2b3139;
    --border-light: #2b3139;
    --border-color: #2b3139;
    --border-hover: #474d57;
    --text-heading: #eaecef;
    --text-main: #eaecef;
    --text-body: #eaecef;
    --text-muted: #848e9c;
    --primary: #0ecb81;
    --danger: #f6465d;
    --gold: #f0b90b;
}

html[data-theme="light"] .t-navbar,
html[data-theme="light"] .terminal-container,
html[data-theme="light"] .market-panel {
    background: #ffffff !important;
    color: #1e2329 !important;
    border-color: #eaecef !important;
}

html[data-theme="dark"] .t-navbar,
html[data-theme="dark"] .terminal-container,
html[data-theme="dark"] .market-panel {
    background: #0b0e11 !important;
    color: #eaecef !important;
    border-color: #2b3139 !important;
}

html[data-theme="light"] .table-row:hover,
html[data-theme="light"] .market-row:hover {
    background: #f5f6f8 !important;
}

html[data-theme="dark"] .table-row:hover,
html[data-theme="dark"] .market-row:hover {
    background: #1e2329 !important;
}