/* theme_light.css — giao diện thống nhất toàn hệ thống (29/11/2026): nền trắng, xanh dương đậm làm màu chính, viền xanh nhạt.
   Chỉ đổi MÀU HIỂN THỊ (biến CSS + lớp chung). Không đổi logic, không đổi dữ liệu. Gỡ dòng <link> là trở lại giao diện cũ. */
:root {
  /* dashboard / admin / user */
  --neon:#1e40af; --neon2:#1d4ed8; --neon3:#2563eb;
  --bg0:#ffffff; --bg1:#f8fbff; --card:#ffffff; --card2:#f0f7ff; --border:#bfdbfe;
  --text1:#1e293b; --text2:#475569; --text3:#64748b;
  --hud:rgba(30,64,175,0.08); --hud2:rgba(30,64,175,0.06);
  --accent:#1e40af; --green:#15803d; --red:#dc2626; --yellow:#b45309;
  /* fifa (Sport/Esport/Up/Down) */
  --bg:#ffffff; --bg-header:#ffffff; --card-in:#f0f7ff; --line:#bfdbfe; --line-soft:#dbeafe;
  --tx:#1e293b; --tx2:#334155; --dim:#64748b; --dim2:#94a3b8;
  --blue:#1e40af; --blue-dk:#1e3a8a; --cyan:#0369a1; --green-dk:#166534; --red-dk:#b91c1c;
  --orange:#c2410c; --purple:#7e22ce; --pink:#be185d;
}
html, body { background:#ffffff !important; color:#1e293b !important; }
body::before, body::after { display:none !important; }   /* bỏ lớp lưới/hiệu ứng nền tối */
a { color:#1d4ed8; }
header, .topbar, .header, nav.top, .navbar { background:#ffffff !important; border-bottom:2px solid #bfdbfe !important; box-shadow:0 1px 6px rgba(30,58,138,.08) !important; }
.glass, .card, .panel, .box, section, .stat, .kpi, .widget, .modal-content, .sidebar {
  background:#ffffff !important; border-color:#bfdbfe !important; color:#1e293b; box-shadow:0 1px 4px rgba(30,58,138,.06);
}
.sidebar { border-right:1px solid #bfdbfe !important; }
h1, h2, h3, .sec-title, .title { color:#1e3a8a; }
table th { background:#f4f8ff !important; color:#1e3a8a !important; }
table td { border-color:#e8f0fb !important; }
tr:hover td { background:#fafcff; }
input, select, textarea { background:#ffffff !important; color:#1e293b !important; border:1.5px solid #93c5fd !important; border-radius:7px; }
button, .btn { background:#ffffff; color:#1e3a8a; border:1.5px solid #93c5fd; border-radius:7px; font-weight:600; }
button:hover, .btn:hover { background:#f0f7ff; border-color:#1d4ed8; }
button.primary, .btn-primary, .btn.primary { background:#1e40af !important; color:#fff !important; border-color:#1e40af !important; }
button.danger, .btn-danger, .btn.danger { background:#fff !important; color:#dc2626 !important; border-color:#dc2626 !important; }
pre, code { background:#f8fafc !important; color:#334155 !important; border-color:#dbeafe !important; }
::-webkit-scrollbar-track { background:#f1f5f9 !important; } ::-webkit-scrollbar-thumb { background:#bfdbfe !important; }
/* nền tối viết cứng trong style="" của trang cũ */
[style*="background:#0b1120"], [style*="background:#0f172a"], [style*="background:#111c2e"], [style*="background:#162035"], [style*="background:#0b1220"], [style*="background:#111a2e"], [style*="background: #0b1120"], [style*="background: #0f172a"] { background:#ffffff !important; color:#1e293b !important; }
[style*="color:#f1f5f9"], [style*="color:#e5e7eb"], [style*="color: #f1f5f9"] { color:#1e293b !important; }

/* Tailwind (dashboard chính): nền tối → sáng, chữ nhạt → đậm */
.bg-slate-600, .bg-slate-700, .bg-slate-800, .bg-slate-900, .bg-gray-700, .bg-gray-800, .bg-gray-900, .bg-black, [class*="bg-black/"], [class*="bg-slate-800/"], [class*="bg-slate-900/"], [class*="bg-gray-900/"], .sysact-filter-btn {
  background:#ffffff !important; color:#1e3a8a !important; border:1.5px solid #93c5fd !important;
}
.hover\:bg-slate-600:hover, .hover\:bg-slate-700:hover, .hover\:bg-slate-800:hover { background:#f0f7ff !important; }
.sysact-filter-btn.active, .sysact-filter-btn[aria-pressed="true"] { background:#1e40af !important; color:#fff !important; }
.text-white:not([class*="bg-"]), .text-gray-100, .text-gray-200, .text-slate-100, .text-slate-200 { color:#1e293b !important; }
.text-gray-300, .text-gray-400, .text-gray-500, .text-slate-300, .text-slate-400, .text-slate-500 { color:#475569 !important; }
.text-cyan-200, .text-cyan-300, .text-cyan-400, .text-sky-300, .text-sky-400, .neon, .neon2 { color:#1d4ed8 !important; text-shadow:none !important; }
.text-red-300, .text-red-400, .text-rose-300, .text-rose-400 { color:#dc2626 !important; }
.text-yellow-200, .text-yellow-300, .text-yellow-400, .text-amber-300, .text-amber-400 { color:#b45309 !important; }
.text-emerald-300, .text-emerald-400, .text-green-300, .text-green-400 { color:#15803d !important; }
.text-purple-300, .text-violet-300, .text-fuchsia-300 { color:#7e22ce !important; }
[class*="border-cyan-400/"], [class*="border-slate-"], [class*="border-gray-"] { border-color:#bfdbfe !important; }
.glitch::before, .glitch::after, .hud-corners { display:none !important; }

/* ── 29/11 SỬA NÚT KHÔNG ĐỌC ĐƯỢC ──
   Nút/ô có nền tối (đã đổi sang trắng) → chữ xanh đậm cho chính nó VÀ mọi phần tử con (trước đây text-white giữ nguyên → chữ trắng trên nền trắng). */
.bg-slate-600, .bg-slate-700, .bg-slate-800, .bg-slate-900, .bg-gray-700, .bg-gray-800, .bg-gray-900, .bg-black, [class*="bg-black/"], [class*="bg-slate-800/"], [class*="bg-slate-900/"], [class*="bg-gray-900/"], .sysact-filter-btn,
.bg-slate-600 *, .bg-slate-700 *, .bg-slate-800 *, .bg-slate-900 *, .bg-gray-800 *, .bg-gray-900 *, .sysact-filter-btn * { color:#1e3a8a !important; opacity:1 !important; }
/* Nút màu đặc (xanh lá, đỏ, cam, tím, xanh dương…) → nền giữ màu, chữ TRẮNG đậm, không mờ */
[class*="bg-emerald-"]:not([class*="/"]), [class*="bg-green-"]:not([class*="/"]), [class*="bg-red-"]:not([class*="/"]), [class*="bg-rose-"]:not([class*="/"]),
[class*="bg-blue-"]:not([class*="/"]), [class*="bg-sky-"]:not([class*="/"]), [class*="bg-indigo-"]:not([class*="/"]), [class*="bg-violet-"]:not([class*="/"]),
[class*="bg-purple-"]:not([class*="/"]), [class*="bg-fuchsia-"]:not([class*="/"]), [class*="bg-orange-"]:not([class*="/"]), [class*="bg-amber-6"], [class*="bg-amber-7"], [class*="bg-teal-"]:not([class*="/"]), [class*="bg-cyan-6"], [class*="bg-cyan-7"] {
  color:#ffffff !important; opacity:1 !important; text-shadow:none !important; font-weight:700;
}
[class*="bg-emerald-"]:not([class*="/"]) *, [class*="bg-red-"]:not([class*="/"]) *, [class*="bg-blue-"]:not([class*="/"]) *, [class*="bg-indigo-"]:not([class*="/"]) *, [class*="bg-violet-"]:not([class*="/"]) *, [class*="bg-purple-"]:not([class*="/"]) *, [class*="bg-orange-"]:not([class*="/"]) *, [class*="bg-teal-"]:not([class*="/"]) * { color:#ffffff !important; }
/* Nền màu nhạt dạng trong suốt (bg-xxx-500/20…) → chữ đậm cùng tông, viền rõ */
[class*="bg-emerald-"][class*="/"], [class*="bg-green-"][class*="/"] { background:#dcfce7 !important; color:#166534 !important; border-color:#86efac !important; }
[class*="bg-red-"][class*="/"], [class*="bg-rose-"][class*="/"] { background:#fee2e2 !important; color:#b91c1c !important; border-color:#fca5a5 !important; }
[class*="bg-amber-"][class*="/"], [class*="bg-yellow-"][class*="/"] { background:#fef3c7 !important; color:#92400e !important; border-color:#fcd34d !important; }
[class*="bg-cyan-"][class*="/"], [class*="bg-sky-"][class*="/"], [class*="bg-blue-"][class*="/"] { background:#dbeafe !important; color:#1e40af !important; border-color:#93c5fd !important; }
[class*="bg-purple-"][class*="/"], [class*="bg-violet-"][class*="/"], [class*="bg-indigo-"][class*="/"] { background:#ede9fe !important; color:#5b21b6 !important; border-color:#c4b5fd !important; }
button:disabled, .opacity-50, .opacity-40, .opacity-60 { opacity:.75 !important; }
button, .btn, [role="button"] { font-weight:600; letter-spacing:.1px; }

/* ── 29/11 (lần 3) NÚT HỆ THỐNG: độ ưu tiên cao (html body …) để thắng mọi style nằm sau trong trang ── */
html body button, html body .btn, html body [role="tab"], html body .tab-btn, html body .sysact-filter-btn,
html body button.bg-slate-600, html body button.bg-slate-700, html body button.bg-slate-800, html body button.bg-slate-900,
html body button.bg-gray-700, html body button.bg-gray-800, html body button.bg-gray-900, html body button[class*="bg-black"] {
  background:#ffffff !important; color:#1e3a8a !important; border:1.5px solid #93c5fd !important; opacity:1 !important; text-shadow:none !important; font-weight:600;
}
html body button *, html body .tab-btn *, html body .sysact-filter-btn * { color:inherit !important; opacity:1 !important; }
html body button:hover, html body .tab-btn:hover { background:#eff6ff !important; border-color:#1d4ed8 !important; }
html body .tab-nav { background:#ffffff !important; border-bottom:2px solid #bfdbfe !important; gap:6px; }
html body .tab-btn { border-radius:8px 8px 0 0 !important; }
html body .tab-btn.active, html body .sysact-filter-btn.active, html body .dash-sub button.on, html body button.on, html body button.active {
  background:#1e40af !important; color:#ffffff !important; border-color:#1e40af !important;
}
/* Nút màu đặc giữ màu riêng, chữ trắng */
html body button[class*="bg-red-"]:not([class*="/"]), html body button[class*="bg-rose-"]:not([class*="/"]) { background:#dc2626 !important; color:#fff !important; border-color:#b91c1c !important; }
html body button[class*="bg-green-"]:not([class*="/"]), html body button[class*="bg-emerald-"]:not([class*="/"]) { background:#15803d !important; color:#fff !important; border-color:#166534 !important; }
html body button[class*="bg-blue-"]:not([class*="/"]), html body button[class*="bg-sky-"]:not([class*="/"]), html body button[class*="bg-indigo-"]:not([class*="/"]), html body button[class*="bg-cyan-6"], html body button[class*="bg-cyan-7"] { background:#1d4ed8 !important; color:#fff !important; border-color:#1e40af !important; }
html body button[class*="bg-purple-"]:not([class*="/"]), html body button[class*="bg-violet-"]:not([class*="/"]), html body button[class*="bg-fuchsia-"]:not([class*="/"]) { background:#7e22ce !important; color:#fff !important; border-color:#6b21a8 !important; }
html body button[class*="bg-orange-"]:not([class*="/"]), html body button[class*="bg-amber-6"], html body button[class*="bg-amber-7"], html body button[class*="bg-yellow-6"] { background:#c2410c !important; color:#fff !important; border-color:#9a3412 !important; }
html body button[class*="bg-teal-"]:not([class*="/"]) { background:#0f766e !important; color:#fff !important; border-color:#115e59 !important; }
/* Nút nền nhạt trong suốt (bg-xxx-500/20) → chữ đậm cùng tông */
html body button[class*="bg-red-"][class*="/"], html body button[class*="bg-rose-"][class*="/"] { background:#fee2e2 !important; color:#b91c1c !important; border-color:#fca5a5 !important; }
html body button[class*="bg-emerald-"][class*="/"], html body button[class*="bg-green-"][class*="/"] { background:#dcfce7 !important; color:#166534 !important; border-color:#86efac !important; }
html body button[class*="bg-amber-"][class*="/"], html body button[class*="bg-yellow-"][class*="/"] { background:#fef3c7 !important; color:#92400e !important; border-color:#fcd34d !important; }
html body button[class*="bg-cyan-"][class*="/"], html body button[class*="bg-sky-"][class*="/"], html body button[class*="bg-blue-"][class*="/"] { background:#dbeafe !important; color:#1e40af !important; border-color:#93c5fd !important; }
html body button[class*="bg-purple-"][class*="/"], html body button[class*="bg-violet-"][class*="/"] { background:#ede9fe !important; color:#5b21b6 !important; border-color:#c4b5fd !important; }
html body button:disabled { opacity:.6 !important; cursor:not-allowed; }
/* Ô số liệu đầu trang (Số dư, Lệnh mở…) và thẻ tối */
html body .state-strip, html body .state-strip .state-card, html body .metric-card, html body .panel, html body .panel-sm, html body .help-box, html body .ver-stat,
html body [class*="bg-black/"], html body .bg-slate-800, html body .bg-slate-900, html body .bg-gray-800, html body .bg-gray-900 { background:#ffffff !important; border-color:#bfdbfe !important; color:#1e293b !important; }
html body #v1AccountOverview [id^="hdr"], html body .state-card .mono { color:#1e3a8a !important; opacity:1 !important; }
html body .text-white:not(button):not([class*="bg-"]) { color:#1e293b !important; }
