/* IMR GOLD BRAND OVERRIDE — aligned with IMR Apps */
:root{--imr-primary:#DDB45F;--imr-reach:#DDB45F;--imr-navy:#0B0D11;--imr-text-soft:#B9B1A2;--imr-muted:#9B9488;--imr-bg:#0B0D11;--imr-surface:#211D12;--imr-surface-2:#292315;--imr-border:rgba(221,180,95,.20);--imr-cyan:#DDB45F;--imr-cyan-soft:rgba(221,180,95,.14);--imr-cyan-glow:rgba(221,180,95,.22)}
html[data-theme="dark"]{--imr-bg:#0B0D11;--imr-surface:#211D12;--imr-surface-2:#292315;--imr-border:rgba(221,180,95,.20);--imr-text:#F4EEE4;--imr-text-soft:#B9B1A2;--imr-muted:#9B9488;--imr-cyan:#DDB45F;--imr-cyan-soft:rgba(221,180,95,.14);--imr-cyan-glow:rgba(221,180,95,.22)}
html[data-theme="light"]{--imr-primary:#A97922;--imr-reach:#B98932;--imr-cyan:#B98932;--imr-cyan-soft:rgba(185,137,50,.12);--imr-cyan-glow:rgba(185,137,50,.18)}
html[data-theme="dark"] body,html[data-theme="dark"] .page,html[data-theme="dark"] .main,html[data-theme="dark"] .dashboard-shell{background:#0B0D11!important;color:#F4EEE4!important}
html[data-theme="dark"] .sidebar{background:#0B0D11!important;border-color:rgba(221,180,95,.12)!important}
html[data-theme="dark"] .card,html[data-theme="dark"] .imr-card,html[data-theme="dark"] .dashboard-card,html[data-theme="dark"] .expert-dashboard-card,html[data-theme="dark"] .analysis-card,html[data-theme="dark"] .record-wrapper,html[data-theme="dark"] .expert-stat,html[data-theme="dark"] .decision-main,html[data-theme="dark"] .confidence-box,html[data-theme="dark"] .level{background:#211D12!important;border-color:rgba(221,180,95,.16)!important;color:#F4EEE4!important}
html[data-theme="dark"] .nav-item.active,html[data-theme="dark"] .tab.active{background:rgba(221,180,95,.17)!important;color:#F2D18A!important}
html[data-theme="dark"] .btn-primary,html[data-theme="dark"] .button.primary,html[data-theme="dark"] .cta-button,html[data-theme="dark"] button.primary{background:#DDB45F!important;border-color:#DDB45F!important;color:#211807!important;box-shadow:0 8px 24px rgba(221,180,95,.14)!important}
html[data-theme="dark"] .btn-primary:hover,html[data-theme="dark"] .button.primary:hover,html[data-theme="dark"] .cta-button:hover{background:#F0CC7C!important}
html[data-theme="dark"] .eyebrow,html[data-theme="dark"] .section-label,html[data-theme="dark"] .accent,html[data-theme="dark"] .highlight{color:#DDB45F!important}
html[data-theme="dark"] input:focus,html[data-theme="dark"] select:focus,html[data-theme="dark"] textarea:focus{border-color:#DDB45F!important;box-shadow:0 0 0 3px rgba(221,180,95,.12)!important}
html[data-theme="dark"] .imr-theme-toggle{background:#211D12!important;color:#DDB45F!important;border-color:rgba(221,180,95,.28)!important}
html[data-theme="dark"] a:hover{color:#F2D18A}
html[data-theme="dark"] .dashboard-shell{background:radial-gradient(circle at 75% 0%,rgba(221,180,95,.045),transparent 30%),#0B0D11!important}


/* IMR CLIENT DARK GOLD — FINAL OVERRIDE LAYER */
html[data-theme="dark"] {
  color-scheme: dark;
  --imr-bg:#090B0E; --imr-surface:#211D13; --imr-surface-2:#292315;
  --imr-primary:#DDB45F; --imr-reach:#DDB45F; --imr-cyan:#DDB45F;
  --imr-text:#F4F0E8; --imr-text-soft:#BDB5A7; --imr-muted:#948B7D;
  --imr-border:rgba(221,180,95,.22);
}
html[data-theme="dark"] body,
html[data-theme="dark"] body > .page,
html[data-theme="dark"] .page,
html[data-theme="dark"] .main,
html[data-theme="dark"] main,
html[data-theme="dark"] .content,
html[data-theme="dark"] .content-area,
html[data-theme="dark"] .dashboard-shell,
html[data-theme="dark"] .dashboard-main,
html[data-theme="dark"] .main-content {
  background-color:#090B0E !important;
  background-image:none !important;
  color:#F4F0E8 !important;
}
html[data-theme="dark"] header,
html[data-theme="dark"] .navbar,
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] aside {
  background-color:#0B0D10 !important;
  border-color:rgba(221,180,95,.18) !important;
}
html[data-theme="dark"] .card,
html[data-theme="dark"] [class*="card"],
html[data-theme="dark"] [class*="panel"],
html[data-theme="dark"] [class*="widget"],
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .redeem-modal,
html[data-theme="dark"] .form-container {
  background-color:#211D13 !important;
  background-image:none !important;
  border-color:rgba(221,180,95,.20) !important;
  color:#F4F0E8 !important;
}
html[data-theme="dark"] table,
html[data-theme="dark"] thead,
html[data-theme="dark"] tbody,
html[data-theme="dark"] tr,
html[data-theme="dark"] th,
html[data-theme="dark"] td {
  background-color:transparent !important;
  color:#F4F0E8 !important;
  border-color:rgba(221,180,95,.16) !important;
}
html[data-theme="dark"] thead th,
html[data-theme="dark"] table thead,
html[data-theme="dark"] .table thead th {
  background:#292315 !important;
  color:#E8C477 !important;
}
html[data-theme="dark"] tbody tr:nth-child(odd),
html[data-theme="dark"] tbody tr:nth-child(even) {
  background:#211D13 !important;
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .form-control {
  background:#14130F !important;
  color:#F4F0E8 !important;
  border:1px solid rgba(221,180,95,.28) !important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color:#948B7D !important; }
html[data-theme="dark"] button,
html[data-theme="dark"] .btn,
html[data-theme="dark"] a.button,
html[data-theme="dark"] .button {
  border-color:rgba(221,180,95,.35);
}
html[data-theme="dark"] button:not(.btn-outline):not(.secondary):not([class*="danger"]):not([class*="sell"]),
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] .button.primary,
html[data-theme="dark"] .cta-button,
html[data-theme="dark"] a.btn-primary {
  background:#DDB45F !important;
  color:#211807 !important;
  border-color:#DDB45F !important;
}
html[data-theme="dark"] .nav-item.active,
html[data-theme="dark"] .sidebar a.active,
html[data-theme="dark"] .tab.active,
html[data-theme="dark"] .active {
  background:#302819 !important;
  color:#F0C66F !important;
  border-color:rgba(221,180,95,.28) !important;
}
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .section-label,
html[data-theme="dark"] .accent,
html[data-theme="dark"] .highlight,
html[data-theme="dark"] .nav-item.active,
html[data-theme="dark"] label {
  --unused:0;
}
html[data-theme="dark"] a:hover { color:#F2D18A; }
html[data-theme="dark"] .blue,
html[data-theme="dark"] .text-blue,
html[data-theme="dark"] [class*="blue-accent"] { color:#DDB45F !important; }
html[data-theme="dark"] .imr-theme-toggle {
  background:#211D13 !important; color:#DDB45F !important;
  border-color:rgba(221,180,95,.30) !important;
}
/* Keep semantic trading colors intact. */
html[data-theme="dark"] .sell,
html[data-theme="dark"] [class*="sell"] { color:#F05B63 !important; }
html[data-theme="dark"] .buy,
html[data-theme="dark"] [class*="buy"]:not([class*="button"]) { color:#55C58A !important; }
