/* theme-fix.css v4 — tube +18 é DARK. O light mode era retrofit quebrado
   (xadrez claro/escuro). Travamos no dark (via force-dark.js) e escondemos
   o toggle. Aqui ficam só os reparos do DARK (fundos claros inline que não
   flipam) + esconder o toggle. Protege QR Code Pix. */

/* esconder o toggle de tema (light quebrado) */
button[aria-label*="Modo"],
button[title*="Modo"],
[role="button"][aria-label*="Modo"],
button[aria-label*="tema"],
button[aria-label*="claro"],
button[aria-label*="escuro"] { display: none !important; }

/* ===== DARK: fundos CLAROS inline -> card escuro (modais, popups) ===== */
[data-theme="dark"] [style*="background: #fff"]:not(img):not([alt*="QR"]),
[data-theme="dark"] [style*="background:#fff"]:not(img):not([alt*="QR"]),
[data-theme="dark"] [style*="background: #ffffff"]:not(img),
[data-theme="dark"] [style*="background:#ffffff"]:not(img),
[data-theme="dark"] [style*="background: rgb(255, 255, 255)"]:not(img),
[data-theme="dark"] [style*="background: rgb(255,255,255)"]:not(img),
[data-theme="dark"] [style*="background: #fff9fc"],
[data-theme="dark"] [style*="background: #fff0f8"],
[data-theme="dark"] [style*="background: #fdf2fa"],
[data-theme="dark"] [style*="background: #fdf6ee"],
[data-theme="dark"] [style*="background: #FDF6EE"],
[data-theme="dark"] [style*="background: #fafafa"],
[data-theme="dark"] [style*="background: #f9f9f9"],
[data-theme="dark"] [style*="background: #f8faf9"],
[data-theme="dark"] [style*="background: #f0fdf4"],
[data-theme="dark"] [style*="background: rgb(240, 253, 244)"],
[data-theme="dark"] [style*="background-color: #fff"]:not(img),
[data-theme="dark"] [style*="linear-gradient(180deg, #fff"],
[data-theme="dark"] [style*="linear-gradient(180deg,#fff"],
[data-theme="dark"] [style*="linear-gradient(rgb(255, 255, 255)"],
[data-theme="dark"] [style*="linear-gradient(135deg, #fdf2fa"],
[data-theme="dark"] [style*="linear-gradient(135deg, #fff"],
[data-theme="dark"] [style*="linear-gradient(180deg, #ffffff"] {
  background: var(--bg-card, #17131f) !important;
  background-image: none !important;
}
[data-theme="dark"] .bg-white:not(img),
[data-theme="dark"] :is(.bg-gray-50,.bg-gray-100,.bg-slate-50,.bg-slate-100,.bg-neutral-50,.bg-neutral-100,.bg-zinc-50,.bg-stone-50):not(img) { background-color: var(--bg-card, #17131f) !important; }

/* texto escuro inline -> claro (dark) */
[data-theme="dark"] [style*="color: #111"],
[data-theme="dark"] [style*="color:#111"],
[data-theme="dark"] [style*="color: #000"],
[data-theme="dark"] [style*="color:#000"],
[data-theme="dark"] [style*="color: rgb(17, 17, 17)"],
[data-theme="dark"] [style*="color: rgb(0, 0, 0)"],
[data-theme="dark"] [style*="color: #1a1a1a"],
[data-theme="dark"] [style*="color: #222"],
[data-theme="dark"] [style*="color: #333"] {
  color: var(--text, #f0e6f6) !important;
}
