/*! Hyper Man — Legacy pages auto-fix
    Add this AFTER theme.css to override hardcoded dark colors in legacy pages.
    This ensures ALL pages automatically adopt the current theme. */

/* Override hardcoded dark backgrounds */
body[style*="background:#050507"],
body[style*="background: #050507"] {
  background: var(--bg-grad, var(--bg-body)) !important;
  background-attachment: fixed !important;
  color: var(--text-primary) !important;
}

/* Fix any element still using old dark colors */
[style*="#0c0c10"],
[style*="#0a0a0e"],
[style*="#060608"],
[style*="#050507"] {
  color: var(--text-primary);
}

/* Legacy pages that use inline body background */
html[data-theme="light"] body {
  background: var(--bg-grad, #f0f4f8) !important;
  background-attachment: fixed !important;
  color: var(--text-primary, #1a202c) !important;
}

html[data-theme="dark"] body {
  background: var(--bg-grad, #0c0c18) !important;
  background-attachment: fixed !important;
  color: var(--text-primary, #e2e8f0) !important;
}
