/* AsiaStream Light-First Sakuga Polish for Blog & Article Pages */
.hero-glow-bg, .animate-ping { display: none !important; }
#btnLandingTheme, #landingThemeToggle, button[onclick*="toggleLandingTheme"] { display: none !important; }

/* Header matching Home (index.html) */
body.light-theme header {
  background: rgba(255,255,255,0.96) !important;
  border-bottom: 2px solid #0f172a !important;
}
body.light-theme header .text-white,
body.light-theme #langSwitcherWrap button,
body.light-theme #langSwitcherWrap span { color: #0f172a !important; }
body.light-theme #langSwitcherWrap button {
  background: #ffffff !important;
  border: 1.5px solid #0f172a !important;
  box-shadow: 2px 2px 0 #0f172a !important;
}
body.light-theme header a[href='/portal'] {
  background: #ffffff !important;
  background-image: none !important;
  color: #0f172a !important;
  border: 2px solid #0f172a !important;
  box-shadow: 2px 2px 0 #0f172a !important;
}
body.light-theme header a[href='/portal'] * { color: #0f172a !important; }

/* All Cards, List Rows, Rules Rows, Newsletter & Article Modal: clean white + #0f172a ink border */
body.light-theme .cyber-card,
body.light-theme .rules-card-item,
body.light-theme .tier-cyber-card,
body.light-theme #articleModal > div,
body.light-theme article,
body.light-theme main li[class*="bg-[#"],
body.light-theme main div[class*="bg-[#0"],
body.light-theme main div[class*="bg-[#1"],
body.light-theme div[class*="bg-[#161b22]"],
body.light-theme div[class*="from-[#161b22]"],
body.light-theme div[class*="from-gray-900"],
body.light-theme div[class*="bg-gradient-to-br"],
body.light-theme div[class*="from-amber-500/1"],
body.light-theme div[class*="from-emerald-500/"] {
  background: #ffffff !important;
  background-image: none !important;
  color: #0f172a !important;
  border: 2px solid #0f172a !important;
  box-shadow: 3px 3px 0 #0f172a !important;
}
body.light-theme .rules-card-item *,
body.light-theme .tier-cyber-card *,
body.light-theme main li[class*="bg-[#"] *,
body.light-theme main div[class*="bg-[#1"] *,
body.light-theme main div[class*="bg-[#0"] *,
body.light-theme div[class*="from-emerald-500/"] *,
body.light-theme div[class*="from-gray-900"] *,
body.light-theme div[class*="bg-gradient-to-br"] * { color: #1e293b !important; }
body.light-theme .rules-card-item strong,
body.light-theme .rules-card-item .text-white,
body.light-theme main li[class*="bg-[#"] strong,
body.light-theme main div[class*="bg-[#1"] strong,
body.light-theme main div[class*="bg-[#1"] .text-white,
body.light-theme main li[class*="bg-[#"] .text-white { color: #0f172a !important; font-weight: 800 !important; }
body.light-theme div[class*="from-gray-900"] a,
body.light-theme div[class*="bg-gradient-to-br"] a { color: #ffffff !important; }

/* Small section header icon boxes */
body.light-theme main h2 > span:first-child,
body.light-theme .w-7.h-7.rounded-lg,
body.light-theme .w-8.h-8.rounded-lg {
  background: #fff7ed !important;
  border: 1.5px solid #0f172a !important;
  box-shadow: 2px 2px 0 #0f172a !important;
}

/* Article Modal: Close button, Category badge, Canonical SEO Link bar */
body.light-theme #articleModal button[onclick*="closeArticleModal"] {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 2px solid #0f172a !important;
  box-shadow: 2px 2px 0 #0f172a !important;
}
body.light-theme #modalBadge,
body.light-theme #articleModal span[id*="Badge"] {
  background: #fff7ed !important;
  color: #ea580c !important;
  border: 1.5px solid #0f172a !important;
  box-shadow: 2px 2px 0 #0f172a !important;
}
body.light-theme #articleModal .bg-amber-500\/10,
body.light-theme #articleModal div[class*="border-amber-500"] {
  background: #f8fafc !important;
  border: 1.5px solid #0f172a !important;
  box-shadow: 2px 2px 0 #0f172a !important;
}
body.light-theme #articleModal div[class*="border-amber-500"] span { color: #0f172a !important; }
body.light-theme #articleModal button[onclick*="copyCanonical"],
body.light-theme #articleModal button.bg-amber-500 {
  background: #f97316 !important;
  color: #ffffff !important;
  border: 2px solid #0f172a !important;
  box-shadow: 2px 2px 0 #0f172a !important;
}
body.light-theme .cyber-card h1,
body.light-theme .cyber-card h2,
body.light-theme .cyber-card h3,
body.light-theme .cyber-card h4,
body.light-theme .cyber-card .text-white,
body.light-theme article h1,
body.light-theme article h2,
body.light-theme article h3,
body.light-theme article .text-white,
body.light-theme #articleModal h2,
body.light-theme #articleModal h3,
body.light-theme #articleModal h4,
body.light-theme #articleModal .text-white,
body.light-theme #articleModal b { color: #0f172a !important; }
body.light-theme .cyber-card p,
body.light-theme .cyber-card .text-gray-300,
body.light-theme .cyber-card .text-gray-400,
body.light-theme article p,
body.light-theme article li,
body.light-theme article .text-gray-300,
body.light-theme article .text-gray-400,
body.light-theme #articleModal p,
body.light-theme #articleModal li,
body.light-theme #articleModal .text-gray-200,
body.light-theme #articleModal .text-gray-300,
body.light-theme #articleModal .text-gray-400 { color: #334155 !important; }
body.light-theme #articleModal input {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1.5px solid #0f172a !important;
}
body.light-theme pre,
body.light-theme pre *,
body.light-theme #articleModal pre,
body.light-theme #articleModal pre * {
  background: #0f172a !important;
  color: #e2e8f0 !important;
}
body.light-theme footer {
  background: #ffffff !important;
  border-top: 2px solid #0f172a !important;
  color: #334155 !important;
}
body.light-theme footer .text-white { color: #0f172a !important; }
body.light-theme a.bg-gradient-to-r,
body.light-theme button.bg-gradient-to-r {
  color: #ffffff !important;
  border: 2px solid #0f172a !important;
  box-shadow: 3px 3px 0 #0f172a !important;
}

/* Auth Modal (#authModal / #modalLogin / #modalRegister / #modalForgot) loaded after Tailwind CDN */
#authModal > div,
#modalLogin,
#modalRegister,
#modalForgot {
  border: 2.5px solid #0f172a !important;
  box-shadow: 6px 6px 0 #0f172a !important;
}
#authModal label,
#modalLogin label,
#modalRegister label,
#modalForgot label {
  color: #0f172a !important;
  font-weight: 700 !important;
}
#authModal input[type="text"],
#authModal input[type="email"],
#authModal input[type="password"],
#authModal input[type="number"],
#modalLogin input,
#modalRegister input,
#modalForgot input {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 2px solid #0f172a !important;
  box-shadow: 2px 2px 0 #e2e8f0 !important;
}
#authModal input::placeholder,
#modalLogin input::placeholder,
#modalRegister input::placeholder,
#modalForgot input::placeholder {
  color: #64748b !important;
  opacity: 1 !important;
}
#authModal button[onclick*="switchAuthView"] {
  background: #fff7ed !important;
  color: #c2410c !important;
  border: 2px solid #0f172a !important;
  box-shadow: 2px 2px 0 #0f172a !important;
}
#authModal button[onclick*="switchAuthView"]:hover {
  background: #ffedd5 !important;
}
#btnLoginGetOtp,
#btnRegGetOtp {
  color: #ea580c !important;
  font-weight: 800 !important;
}
#authModal .text-amber-300,
#modalLogin .text-amber-300,
#modalRegister .text-amber-300,
#modalForgot .text-amber-300 {
  color: #b45309 !important;
  font-weight: 700 !important;
}
#authModal .bg-amber-500\/10,
#modalLogin .bg-amber-500\/10,
#modalRegister .bg-amber-500\/10,
#modalForgot .bg-amber-500\/10 {
  background: #fef3c7 !important;
  border: 2px solid #f59e0b !important;
}
#authModal .bg-\[\#0d1117\],
#modalLogin .bg-\[\#0d1117\],
#modalRegister .bg-\[\#0d1117\],
#modalForgot .bg-\[\#0d1117\] {
  background: #f8fafc !important;
  border: 2px solid #0f172a !important;
  box-shadow: 2px 2px 0 #e2e8f0 !important;
  color: #0f172a !important;
}
#authModal .bg-\[\#0d1117\] .text-white,
#authModal .bg-\[\#0d1117\] .text-gray-200,
#authModal .bg-\[\#0d1117\] .text-gray-300,
#modalRegister .bg-\[\#0d1117\] .text-white,
#modalRegister .bg-\[\#0d1117\] .text-gray-200,
#modalRegister .bg-\[\#0d1117\] .text-gray-300,
#modalForgot .bg-\[\#0d1117\] .text-white,
#modalForgot .bg-\[\#0d1117\] .text-gray-200,
#modalForgot .bg-\[\#0d1117\] .text-gray-300 {
  color: #0f172a !important;
  font-weight: 700 !important;
}
#authModal .bg-\[\#0d1117\] .text-gray-400,
#authModal .bg-\[\#0d1117\] .text-gray-500,
#modalRegister .bg-\[\#0d1117\] .text-gray-400,
#modalRegister .bg-\[\#0d1117\] .text-gray-500,
#modalForgot .bg-\[\#0d1117\] .text-gray-400,
#modalForgot .bg-\[\#0d1117\] .text-gray-500 {
  color: #475569 !important;
}

/* Blog Section Headers & Status Pills */
span:has(> [data-i18n="sysStatus"]),
[data-i18n="blogColSub"] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  border: 2px solid #0f172a !important;
  box-shadow: 2px 2px 0 #0f172a !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}
span:has(> [data-i18n="sysStatus"]) {
  background: #ecfdf5 !important;
  color: #047857 !important;
}
[data-i18n="blogColSub"] {
  background: #fff7ed !important;
  color: #c2410c !important;
}
span:has(> [data-feather="bell"]),
span:has(> [data-feather="book-open"]) {
  border: 2px solid #0f172a !important;
  box-shadow: 2px 2px 0 #0f172a !important;
}
#authModal input:focus {
  background: #ffffff !important;
  border-color: #f97316 !important;
  box-shadow: 2px 2px 0 #f97316 !important;
}
#authModal input::placeholder { color: #64748b !important; }
#authModal button[onclick*="closeAuth"],
#authModal button[onclick*="authModal"],
#authModal button[onclick*="toggleAuthMode"] {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 2px solid #0f172a !important;
  box-shadow: 2px 2px 0 #0f172a !important;
}

/* ===== Global Light-Sakuga Scrollbar (all pages, all scroll containers) ===== */
html {
  scrollbar-color: #f97316 #f1f5f9;
  scrollbar-width: auto;
}
* { scrollbar-color: #f97316 #f1f5f9; }
::-webkit-scrollbar,
body.light-theme ::-webkit-scrollbar {
  width: 12px !important;
  height: 12px !important;
}
::-webkit-scrollbar-track,
body.light-theme ::-webkit-scrollbar-track {
  background: #f1f5f9 !important;
  border-left: 2px solid #0f172a !important;
}
::-webkit-scrollbar-thumb,
body.light-theme ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f97316 0%, #c026d3 100%) !important;
  border: 2px solid #0f172a !important;
  border-radius: 999px !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35) !important;
}
::-webkit-scrollbar-thumb:hover,
body.light-theme ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ea580c 0%, #a21caf 100%) !important;
}
::-webkit-scrollbar-thumb:active,
body.light-theme ::-webkit-scrollbar-thumb:active {
  background: #0f172a !important;
}
::-webkit-scrollbar-corner { background: #f1f5f9 !important; }
/* Thinner scrollbars for inner panels (tables, lists, modals) */
main *::-webkit-scrollbar,
aside *::-webkit-scrollbar,
[role="dialog"] *::-webkit-scrollbar,
.table-scroll-wrap::-webkit-scrollbar,
.file-table-viewport::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}
main *::-webkit-scrollbar-track,
aside *::-webkit-scrollbar-track,
.table-scroll-wrap::-webkit-scrollbar-track,
.file-table-viewport::-webkit-scrollbar-track {
  border-left: 0 !important;
  border-radius: 999px !important;
}
main *::-webkit-scrollbar-thumb,
aside *::-webkit-scrollbar-thumb,
.table-scroll-wrap::-webkit-scrollbar-thumb,
.file-table-viewport::-webkit-scrollbar-thumb {
  border-width: 1.5px !important;
}

