
/* IMR FINAL DARK GOLD CONSISTENCY PATCH — appended after page styles */
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"] .app-layout { background-color:#090B0E !important; color:#F4F0E8 !important; }
html[data-theme="dark"] .sidebar { background:#090B0E !important; border-right:1px solid rgba(221,180,95,.18) !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,
html[data-theme="dark"] .balance,
html[data-theme="dark"] .package-card,
html[data-theme="dark"] .reward-card,
html[data-theme="dark"] .redeem-card,
html[data-theme="dark"] .news-card,
html[data-theme="dark"] .insight-card,
html[data-theme="dark"] .expert-position-item,
html[data-theme="dark"] .expert-position-card { background:#211D13 !important; border-color:rgba(221,180,95,.22) !important; color:#F4F0E8 !important; }
html[data-theme="dark"] .decision-card,
html[data-theme="dark"] .decision-box,
html[data-theme="dark"] .market-decision,
html[data-theme="dark"] .result-card,
html[data-theme="dark"] .analysis-summary,
html[data-theme="dark"] .news-context,
html[data-theme="dark"] .news-panel,
html[data-theme="dark"] .expert-content,
html[data-theme="dark"] .expert-position-content,
html[data-theme="dark"] .expert-dashboard-card .inner,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .table-container { background:#211D13 !important; border-color:rgba(221,180,95,.2) !important; color:#F4F0E8 !important; }
/* Catch legacy navy/blue blocks and table bands */
html[data-theme="dark"] [style*="#071A38"],
html[data-theme="dark"] [style*="#0D2345"],
html[data-theme="dark"] [style*="#102A50"],
html[data-theme="dark"] [style*="#0b2345"],
html[data-theme="dark"] [style*="#102a50"],
html[data-theme="dark"] [style*="rgb(7, 26, 56)"],
html[data-theme="dark"] [style*="rgb(13, 35, 69)"] { background-color:#211D13 !important; border-color:rgba(221,180,95,.2) !important; }
html[data-theme="dark"] table thead,
html[data-theme="dark"] table th { background:#292315 !important; color:#E8C77F !important; border-color:rgba(221,180,95,.24) !important; }
html[data-theme="dark"] table tbody tr,
html[data-theme="dark"] table td,
html[data-theme="dark"] .table-row,
html[data-theme="dark"] .metric-row { background:#211D13 !important; color:#F4F0E8 !important; border-color:rgba(221,180,95,.16) !important; }
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .form-control { background:#17150F !important; color:#F4F0E8 !important; border:1px solid rgba(221,180,95,.3) !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"] .button,
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .button.primary,
html[data-theme="dark"] .cta-button,
html[data-theme="dark"] button.primary,
html[data-theme="dark"] .select-button,
html[data-theme="dark"] .buy-button { background:#DDB45F !important; border-color:#DDB45F !important; color:#211807 !important; }
html[data-theme="dark"] a { color:#DDB45F; }
html[data-theme="dark"] .nav-item { color:#BDB5A7 !important; }
html[data-theme="dark"] .nav-item.active,
html[data-theme="dark"] .nav-item:hover { background:rgba(221,180,95,.15) !important; color:#F2D18A !important; }
html[data-theme="dark"] .imr-theme-toggle { background:#DDB45F !important; color:#211807 !important; border-color:#DDB45F !important; }
html[data-theme="dark"] .navbar { background:#090B0E !important; border-color:rgba(221,180,95,.18) !important; }
html[data-theme="dark"] .hero-analysis-card,
html[data-theme="dark"] .analysis-hero,
html[data-theme="dark"] .request-analysis-card { background:#211D13 !important; border-color:rgba(221,180,95,.22) !important; }
html[data-theme="dark"] .expert-dashboard-card .expert-position-content,
html[data-theme="dark"] .expert-dashboard-card p,
html[data-theme="dark"] .expert-dashboard-card .description { background:#211D13 !important; }
html[data-theme="dark"] .status-buy { color:#43C98B !important; }
html[data-theme="dark"] .status-sell { color:#F06A70 !important; }
/* Public pages */
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .public-header,
html[data-theme="dark"] header { background:#090B0E !important; border-color:rgba(221,180,95,.18) !important; }
html[data-theme="dark"] .hero,
html[data-theme="dark"] .hero-section,
html[data-theme="dark"] .insights-hero,
html[data-theme="dark"] .insights-page,
html[data-theme="dark"] .insights-container { background:#090B0E !important; }
html[data-theme="dark"] .hero .btn-primary,
html[data-theme="dark"] .hero a.button,
html[data-theme="dark"] .nav-cta,
html[data-theme="dark"] .get-started,
html[data-theme="dark"] .btn-cta { background:#DDB45F !important; color:#211807 !important; border-color:#DDB45F !important; }
html[data-theme="dark"] .logo img,
html[data-theme="dark"] .brand img,
html[data-theme="dark"] .navbar-brand img { filter: sepia(1) saturate(1.7) hue-rotate(355deg) brightness(1.05) !important; }
/* Sidebar injected on legacy member pages */
.imr-injected-sidebar { position:fixed; z-index:9998; inset:0 auto 0 0; width:264px; padding:30px 18px 22px; display:flex; flex-direction:column; background:#090B0E; border-right:1px solid rgba(221,180,95,.18); }
.imr-injected-sidebar .brand { padding:0 12px 30px; }
.imr-injected-sidebar .brand img { width:58px; height:58px; object-fit:contain; }
.imr-injected-sidebar .brand-caption { margin-top:12px; color:#BDB5A7; font-size:10px; line-height:1.7; letter-spacing:2px; font-weight:700; }
.imr-injected-sidebar nav { display:flex; flex-direction:column; gap:8px; }
.imr-injected-sidebar nav a { display:flex; gap:14px; align-items:center; padding:14px 16px; border-radius:11px; text-decoration:none; color:#BDB5A7; font-size:14px; font-weight:600; }
.imr-injected-sidebar nav a.active,
.imr-injected-sidebar nav a:hover { color:#F2D18A; background:rgba(221,180,95,.15); }
.imr-injected-sidebar .bottom { margin-top:auto; color:#9B9488; font-size:11px; letter-spacing:1px; }
.imr-injected-sidebar .bottom a { display:block; margin-top:28px; color:#F4F0E8; text-decoration:none; font-size:14px; letter-spacing:0; }
body.imr-has-injected-sidebar { padding-left:264px !important; }
body.imr-has-injected-sidebar .navbar { display:none !important; }
@media(max-width:760px) {
 .imr-injected-sidebar { width:76px; padding:18px 8px; }
 .imr-injected-sidebar .brand { padding:0 5px 22px; }
 .imr-injected-sidebar .brand img { width:48px;height:48px; }
 .imr-injected-sidebar .brand-caption,.imr-injected-sidebar nav a .nav-label,.imr-injected-sidebar .bottom { display:none; }
 .imr-injected-sidebar nav a { justify-content:center; padding:14px 8px; font-size:18px; }
 body.imr-has-injected-sidebar { padding-left:76px !important; }
}
