/* =========================================================
   NICOMANGA EDITORIAL LIGHT THEME v6 (WARM PAPER + VERMILION)
   Palette: Warm Porcelain (#F7F7F5) + Pure White (#FFFFFF)
            + Deep Editorial Ink (#111827) + Vermilion Coral (#EA580C / #C2410C)
            + Charcoal Slate (#1E293B)  [NO purple, NO harsh neon green]
   ========================================================= */

/* Smooth Circular Reveal View Transition (1650ms grainy wavefront) */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 9999; }

html.nico-theme-transitioning,
html.nico-theme-transitioning *,
html.nico-theme-transitioning *::before,
html.nico-theme-transitioning *::after {
  transition: background-color 0.9s cubic-bezier(0.3, 0.08, 0.22, 1),
              color 0.9s cubic-bezier(0.3, 0.08, 0.22, 1),
              border-color 0.9s cubic-bezier(0.3, 0.08, 0.22, 1),
              box-shadow 0.9s cubic-bezier(0.3, 0.08, 0.22, 1) !important;
}

/* Editorial Warm-Paper Light Tokens */
html[data-theme="light"] {
  color-scheme: light;

  --background: #f7f7f5;
  --foreground: #111827;

  --bg-primary: #f7f7f5;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f2f0;
  --bg-hover: #eceee9;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #ffffff;

  --border-primary: #e5e7eb;
  --border-hover: #d1d5db;
  --border-accent: rgba(234, 88, 12, 0.35);

  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-dim: #9ca3af;
  --text-accent: #c2410c;
  --text-chapter: #c2410c;

  /* Editorial Vermilion-Coral accent (no purple, no neon green) */
  --gradient-primary: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  --primary-gradient: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  --primary-color: #ea580c;
  --accent-primary: #ea580c;

  --glass-bg: rgba(255, 255, 255, 0.96);
  --glass-border: rgba(17, 24, 39, 0.08);
  --glass-shadow: 0 8px 28px rgba(17, 24, 39, 0.06);

  /* Chapter Reader Tokens */
  --bg-dark: #f7f7f5;
  --border-color: rgba(17, 24, 39, 0.11);

  /* Comment v2 Tokens */
  --nk-primary: #ea580c;
  --nk-primary-hover: #c2410c;
  --nk-primary-light: rgba(234, 88, 12, 0.1);
  --nk-bg-primary: #f7f7f5;
  --nk-bg-secondary: #ffffff;
  --nk-bg-tertiary: #f3f4f6;
  --nk-bg-hover: #e5e7eb;
  --nk-text-primary: #111827;
  --nk-text-secondary: #374151;
  --nk-text-muted: #6b7280;
  --nk-border: #e5e7eb;
  --nk-border-focus: #ea580c;
  --nk-shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.05);
  --nk-shadow: 0 4px 14px rgba(17, 24, 39, 0.06);
  --nk-shadow-lg: 0 10px 24px rgba(17, 24, 39, 0.08);
  --nk-shadow-xl: 0 18px 36px rgba(17, 24, 39, 0.11);

  /* UCP v2 Design System Tokens */
  --bg-void: #f7f7f5;
  --bg-surface: #ffffff;
  --bg-overlay: #ffffff;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --border-light: rgba(17, 24, 39, 0.09);
  --border-active: rgba(234, 88, 12, 0.45);
  --shadow-card: 0 4px 20px rgba(17, 24, 39, 0.05);
  --shadow-elevated: 0 10px 32px rgba(17, 24, 39, 0.1);
}

html[data-theme="light"] body {
  background: #f7f7f5 !important;
  color: #111827 !important;
}

/* =========================================================
   1. MAIN NAVBAR, DROPDOWNS & SEARCH OVERLAY
   ========================================================= */
html[data-theme="light"] .dark-navbar {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid #e5e7eb !important;
  box-shadow: 0 2px 14px rgba(17, 24, 39, 0.05) !important;
  backdrop-filter: blur(12px);
}
html[data-theme="light"] .dark-navbar .brand-text { color: #111827 !important; }
html[data-theme="light"] .dark-navbar .nav-link { color: #374151 !important; }
html[data-theme="light"] .dark-navbar .nav-link:hover {
  background: #fff7ed !important;
  color: #c2410c !important;
}
html[data-theme="light"] .dark-navbar .nav-icon-btn,
html[data-theme="light"] .dark-navbar .lang-trigger,
html[data-theme="light"] .dark-navbar .auth-link:not(.register-link),
html[data-theme="light"] .dark-navbar .user-menu-trigger,
html[data-theme="light"] .dark-navbar .mobile-menu-toggle,
html[data-theme="light"] .dark-navbar .notification-bell {
  background: #f9fafb !important;
  border: 1px solid #d1d5db !important;
  color: #374151 !important;
}
html[data-theme="light"] .dark-navbar .nav-icon-btn:hover,
html[data-theme="light"] .dark-navbar .lang-trigger:hover,
html[data-theme="light"] .dark-navbar .lang-trigger.open,
html[data-theme="light"] .dark-navbar .auth-link:not(.register-link):hover,
html[data-theme="light"] .dark-navbar .user-menu-trigger:hover {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #c2410c !important;
}
html[data-theme="light"] .dark-navbar .register-link,
html[data-theme="light"] .dark-navbar a.register-link {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 3px 12px rgba(234, 88, 12, 0.25) !important;
}
html[data-theme="light"] .dark-navbar .register-link * { color: #ffffff !important; }
html[data-theme="light"] .dark-navbar #btn-ucp-search,
html[data-theme="light"] .dark-navbar #btn-theme-toggle { color: #111827 !important; }

html[data-theme="light"] .dark-navbar .user-dropdown-menu,
html[data-theme="light"] .dark-navbar .lang-dropdown,
html[data-theme="light"] .dark-navbar .lang-menu,
html[data-theme="light"] .dark-navbar .genres-dropdown {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 14px 38px rgba(17, 24, 39, 0.12) !important;
}
html[data-theme="light"] .dark-navbar .lang-menu-title {
  color: #6b7280 !important;
  border-bottom-color: #e5e7eb !important;
}
html[data-theme="light"] .dark-navbar .user-dropdown-menu .dropdown-item,
html[data-theme="light"] .dark-navbar .dropdown-item,
html[data-theme="light"] .dark-navbar .lang-option {
  color: #374151 !important;
  border-bottom-color: #f3f4f6 !important;
}
html[data-theme="light"] .dark-navbar .user-dropdown-menu .dropdown-item:hover,
html[data-theme="light"] .dark-navbar .dropdown-item:hover,
html[data-theme="light"] .dark-navbar .lang-option:hover,
html[data-theme="light"] .dark-navbar .lang-option.active {
  background: #fff7ed !important;
  color: #c2410c !important;
}
html[data-theme="light"] .dark-navbar .user-dropdown-menu .dropdown-divider {
  background: #e5e7eb !important;
}

/* Search Overlay & High-Contrast Alt-Title Highlight */
html[data-theme="light"] .ucp-search-overlay { background: rgba(247, 247, 245, 0.97) !important; }
html[data-theme="light"] #nico-search-backdrop { background: rgba(17, 24, 39, 0.34) !important; }
html[data-theme="light"] .ucp-search-form {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.1) !important;
}
html[data-theme="light"] .ucp-search-input { color: #111827 !important; }
html[data-theme="light"] .ucp-search-input::placeholder { color: #6b7280 !important; }
html[data-theme="light"] .search-close-btn,
html[data-theme="light"] .search-clear-btn { color: #4b5563 !important; }
html[data-theme="light"] .search-submit-btn { color: #ea580c !important; }
html[data-theme="light"] .ucp-search-dropdown {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.13) !important;
}
html[data-theme="light"] .search-results-header,
html[data-theme="light"] #ucp-search-results-footer,
html[data-theme="light"] .search-results-footer {
  background: #f9fafb !important;
  border-color: #e5e7eb !important;
  color: #4b5563 !important;
}
html[data-theme="light"] .search-result-item,
html[data-theme="light"] .nico-sr-item {
  border-bottom-color: #f3f4f6 !important;
  color: #111827 !important;
}
html[data-theme="light"] .search-result-item:hover,
html[data-theme="light"] .nico-sr-item:hover,
html[data-theme="light"] .nico-sr-item.is-active { background: #fff7ed !important; }
html[data-theme="light"] .nico-sr-title,
html[data-theme="light"] .search-result-title { color: #111827 !important; }
html[data-theme="light"] .search-result-alt { color: #4b5563 !important; }
html[data-theme="light"] .search-hl,
html[data-theme="light"] .search-result-title mark,
html[data-theme="light"] .search-result-alt mark,
html[data-theme="light"] .nico-sr-title mark {
  background: #ffedd5 !important;
  color: #9a3412 !important;
  padding: 1px 4px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
}
html[data-theme="light"] .nico-sr-meta,
html[data-theme="light"] .search-result-chapter,
html[data-theme="light"] #ucp-search-results-footer a,
html[data-theme="light"] .search-footer-link { color: #c2410c !important; font-weight: 600 !important; }

/* =========================================================
   2. GLOBAL TAILWIND DARK-CLASS & EDITORIAL TYPOGRAPHY
   ========================================================= */
html[data-theme="light"] .bg-\[\#0a0a0c\],
html[data-theme="light"] .bg-\[\#0f1419\],
html[data-theme="light"] .bg-\[\#111115\],
html[data-theme="light"] .bg-\[\#111115\]\/90 { background-color: #f7f7f5 !important; }
html[data-theme="light"] .bg-gray-900,
html[data-theme="light"] .bg-gray-900\/80,
html[data-theme="light"] .bg-\[\#1a1a24\] {
  background-color: #ffffff !important;
  border-color: #e5e7eb !important;
}
html[data-theme="light"] .bg-gray-800 { background-color: #e5e7eb !important; }
html[data-theme="light"] .hover\:bg-gray-800\/50:hover,
html[data-theme="light"] .hover\:bg-gray-800:hover {
  background-color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08) !important;
}
html[data-theme="light"] .border-gray-800,
html[data-theme="light"] .border-gray-700\/50,
html[data-theme="light"] .border-white\/5,
html[data-theme="light"] .border-white\/10 { border-color: #e5e7eb !important; }
html[data-theme="light"] .ring-white\/5 { --tw-ring-color: rgba(17, 24, 39, 0.07) !important; }
html[data-theme="light"] .bg-white\/5,
html[data-theme="light"] .bg-white\/\[0\.03\] { background-color: #f9fafb !important; }
html[data-theme="light"] .hover\:bg-white\/10:hover,
html[data-theme="light"] .bg-white\/10 { background-color: #eceee9 !important; }

html[data-theme="light"] .text-white,
html[data-theme="light"] .text-gray-200,
html[data-theme="light"] body a.manga-name,
html[data-theme="light"] body .manga-name,
html[data-theme="light"] .name-tittle,
html[data-theme="light"] .section-title,
html[data-theme="light"] .manga-title,
html[data-theme="light"] .card-title,
html[data-theme="light"] .widget-title { color: #111827 !important; }
html[data-theme="light"] .text-gray-300 { color: #374151 !important; }
html[data-theme="light"] .text-gray-400,
html[data-theme="light"] .text-gray-500 { color: #6b7280 !important; }
html[data-theme="light"] .group:hover .name-tittle,
html[data-theme="light"] body a.manga-name:hover { color: #c2410c !important; }

/* Darken faint cyan/sky chapter texts on light cards (Home, Manga List, Search) */
html[data-theme="light"] .text-cyan-300,
html[data-theme="light"] .text-cyan-400,
html[data-theme="light"] .text-sky-300,
html[data-theme="light"] .text-sky-400,
html[data-theme="light"] .text-teal-300,
html[data-theme="light"] .text-teal-400 {
  color: #c2410c !important;
}

/* Keep crisp white on cover overlays & solid dark/colored badges */
html[data-theme="light"] .absolute .name-tittle,
html[data-theme="light"] .absolute h3.text-white,
html[data-theme="light"] .absolute a.text-gray-300,
html[data-theme="light"] .bg-black\/60,
html[data-theme="light"] .bg-black\/50 { color: #ffffff !important; }
html[data-theme="light"] .absolute .name-tittle { text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85) !important; }
html[data-theme="light"] .bg-black\/60,
html[data-theme="light"] .bg-black\/50 { background-color: rgba(15, 23, 42, 0.78) !important; }
html[data-theme="light"] .bg-black\/60 *,
html[data-theme="light"] .bg-black\/50 *,
html[data-theme="light"] .manga-cover-overlay,
html[data-theme="light"] .manga-cover-overlay *,
html[data-theme="light"] .ml-btn-primary,
html[data-theme="light"] .ml-btn-primary *,
html[data-theme="light"] .bg-emerald-500,
html[data-theme="light"] .bg-emerald-500\/90,
html[data-theme="light"] .bg-orange-500,
html[data-theme="light"] .bg-red-600\/90,
html[data-theme="light"] .\!text-white,
html[data-theme="light"] .badge-primary,
html[data-theme="light"] .status-badge,
html[data-theme="light"] .comment-chapter-tag,
html[data-theme="light"] .bg-gradient-to-r.text-white,
html[data-theme="light"] .bg-gradient-to-r .text-white { color: #ffffff !important; }

html[data-theme="light"] .aspect-\[3\/4\],
html[data-theme="light"] .aspect-\[2\/3\] {
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.08) !important;
  border: 1px solid rgba(17, 24, 39, 0.07);
}

/* =========================================================
   3. HOME PROMO, AI TRANSLATION BANNER & MANGA DETAIL
   ========================================================= */
/* Home App Promo Card (Warm Editorial White + Charcoal/Vermilion CTA) */
html[data-theme="light"] .cyber-promo-card-neat {
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%) !important;
  border: 1px solid #fed7aa !important;
  box-shadow: 0 6px 24px rgba(234, 88, 12, 0.07) !important;
}
html[data-theme="light"] .cyber-badge-neat,
html[data-theme="light"] .cyber-promo-card-neat .app-badge {
  background: #fff7ed !important;
  border: 1px solid #fdba74 !important;
  color: #c2410c !important;
}
html[data-theme="light"] .cyber-title-neat {
  color: #111827 !important;
  text-shadow: none !important;
}
html[data-theme="light"] .cyber-desc-neat,
html[data-theme="light"] .cyber-promo-card-neat span { color: #4b5563 !important; }
html[data-theme="light"] .cyber-promo-card-neat strong { color: #c2410c !important; }
html[data-theme="light"] .feat-icon-neat {
  background: #ffedd5 !important;
  color: #c2410c !important;
  border: 1px solid #fed7aa !important;
}
html[data-theme="light"] .cyber-promo-card-neat a[class*="btn"],
html[data-theme="light"] .cyber-btn-neat,
html[data-theme="light"] .apk-download-btn {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
  border: 1px solid #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18) !important;
}
html[data-theme="light"] .cyber-promo-card-neat a[class*="btn"] *,
html[data-theme="light"] .cyber-btn-neat *,
html[data-theme="light"] .apk-download-btn * {
  color: #ffffff !important;
}

/* Home AI Translation Banner (#ai-feature-banner) — Full Light Mode! */
html[data-theme="light"] #ai-feature-banner {
  background-color: #ffffff !important;
  background-image: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%) !important;
  border: 1px solid #fed7aa !important;
  box-shadow: 0 6px 24px rgba(234, 88, 12, 0.08) !important;
}
html[data-theme="light"] #ai-banner-title {
  color: #111827 !important;
}
html[data-theme="light"] #ai-feature-banner span:not(#ai-banner-title) {
  background-color: #ea580c !important;
  color: #ffffff !important;
}
html[data-theme="light"] #ai-banner-desc {
  color: #4b5563 !important;
}
html[data-theme="light"] #ai-banner-desc strong {
  color: #c2410c !important;
}
html[data-theme="light"] #ai-banner-learn {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25) !important;
}
html[data-theme="light"] #ai-banner-dismiss {
  color: #6b7280 !important;
}
html[data-theme="light"] #ai-banner-dismiss:hover {
  color: #111827 !important;
}

/* Admin Actions widget on Manga Detail */
html[data-theme="light"] .user-action-widget {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(17, 24, 39, 0.05) !important;
}
html[data-theme="light"] .user-action-widget .widget-header {
  background: #f9fafb !important;
  border-bottom: 1px solid #e5e7eb !important;
}
html[data-theme="light"] .user-action-widget .widget-icon {
  background: #fff7ed !important;
  color: #c2410c !important;
}
html[data-theme="light"] .user-action-widget .widget-title { color: #111827 !important; }
html[data-theme="light"] .user-action-widget .action-btn {
  background: #f9fafb !important;
  border: 1px solid #d1d5db !important;
  color: #1f2937 !important;
}
html[data-theme="light"] .user-action-widget .action-btn:hover {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #c2410c !important;
}
html[data-theme="light"] .user-action-widget .action-btn i,
html[data-theme="light"] .user-action-widget .action-btn span { color: inherit !important; }

/* RECENT UPDATES card + "1 NEW" badge contrast fix */
html[data-theme="light"] .text-amber-200,
html[data-theme="light"] .text-amber-200\/80,
html[data-theme="light"] .text-amber-300,
html[data-theme="light"] .text-amber-400,
html[data-theme="light"] .text-yellow-300,
html[data-theme="light"] .text-yellow-400 {
  color: #b45309 !important;
}
html[data-theme="light"] .text-rose-300,
html[data-theme="light"] .text-rose-200 {
  color: #be123c !important;
  background-color: #ffe4e6 !important;
  border-color: #fda4af !important;
}
html[data-theme="light"] [class*="border-amber"] {
  background-color: #fffbeb !important;
  border-color: #fcd34d !important;
}
html[data-theme="light"] [class*="border-amber"] .text-amber-100,
html[data-theme="light"] [class*="border-amber"] .font-bold {
  color: #111827 !important;
}
html[data-theme="light"] [class*="border-amber"] span.bg-gradient-to-r,
html[data-theme="light"] [class*="border-amber"] .bg-orange-500 {
  color: #ffffff !important;
}

/* Show All button in ChaptersList */
html[data-theme="light"] button[class*="border-emerald"],
html[data-theme="light"] .chapters-show-all-btn {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #c2410c !important;
}
html[data-theme="light"] button[class*="border-emerald"]:hover,
html[data-theme="light"] .chapters-show-all-btn:hover {
  background: #ffedd5 !important;
  color: #9a3412 !important;
}

/* Community Banner ("Join the NicoManga Community") — Fix white-on-white! */
html[data-theme="light"] .nico-community-box {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.05) !important;
}
html[data-theme="light"] .nico-community-box h3 {
  color: #111827 !important;
}
html[data-theme="light"] .nico-community-box p {
  color: #4b5563 !important;
}

/* Reaction Box ("WHAT DO YOU THINK ABOUT THIS MANGA?") — Remove muddy dark-gray gradient! */
html[data-theme="light"] .nk-chapter-reactions {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 4px 18px rgba(17, 24, 39, 0.05) !important;
}
html[data-theme="light"] .nk-cr-title { color: #111827 !important; }
html[data-theme="light"] .nk-cr-btn {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
}
html[data-theme="light"] .nk-cr-btn:hover {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.12) !important;
}
html[data-theme="light"] .nk-cr-label { color: #374151 !important; }
html[data-theme="light"] .nk-cr-count {
  background: #e5e7eb !important;
  color: #1f2937 !important;
}

/* Tag pills & TopAllSidebar pills */
html[data-theme="light"] body a[class*="rounded-full"][class*="bg-white"] {
  background: #f3f4f6 !important;
  border: 1px solid #d1d5db !important;
  color: #1f2937 !important;
}
html[data-theme="light"] body a[class*="rounded-full"][class*="bg-white"]:hover {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #c2410c !important;
}
html[data-theme="light"] body a[class*="rounded-lg"][class*="bg-white"] {
  background: #fff7ed !important;
  border: 1px solid #fed7aa !important;
  color: #c2410c !important;
}
html[data-theme="light"] body .breadcrumb-navigation,
html[data-theme="light"] body .breadcrumb-bar {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #4b5563 !important;
}
html[data-theme="light"] body .breadcrumb-navigation *,
html[data-theme="light"] body .breadcrumb-bar *,
html[data-theme="light"] body .breadcrumb li,
html[data-theme="light"] body .breadcrumb li a { color: #4b5563 !important; }
html[data-theme="light"] body .breadcrumb-navigation > *:last-child,
html[data-theme="light"] body .breadcrumb-bar > *:last-child,
html[data-theme="light"] body .breadcrumb li.active,
html[data-theme="light"] body .breadcrumb-item.active { color: #111827 !important; font-weight: 600 !important; }

html[data-theme="light"] .thumb-item-flow,
html[data-theme="light"] .manga-card,
html[data-theme="light"] .card,
html[data-theme="light"] .card-dark,
html[data-theme="light"] .manga-info-container,
html[data-theme="light"] .chapters-container,
html[data-theme="light"] .sidebar-box,
html[data-theme="light"] .top-all-widget,
html[data-theme="light"] .reading-history-widget {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 2px 12px rgba(17, 24, 39, 0.04) !important;
}

/* =========================================================
   4. MANGA LIST PAGE (WARM VERMILION + CHARCOAL — NO PURPLE/GREEN)
   ========================================================= */
html[data-theme="light"] .ml-scope .manga-list-controls.premium-controls,
html[data-theme="light"] .ml-scope .manga-list-container,
html[data-theme="light"] .ml-scope .filter-controls-bar,
html[data-theme="light"] .ml-scope .smart-genre-widget,
html[data-theme="light"] .ml-scope .advanced-search-panel {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 2px 14px rgba(17, 24, 39, 0.05) !important;
}
html[data-theme="light"] .ml-scope .quick-filters,
html[data-theme="light"] .ml-scope .view-mode-toggle,
html[data-theme="light"] .ml-scope .per-page-options,
html[data-theme="light"] .ml-scope .sort-direction {
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
}
html[data-theme="light"] .ml-scope .list-header,
html[data-theme="light"] .ml-scope .widget-header {
  background: #f9fafb !important;
  border-bottom: 1px solid #e5e7eb !important;
}
html[data-theme="light"] .ml-scope .list-title i,
html[data-theme="light"] .ml-scope .results-count i,
html[data-theme="light"] .ml-scope .widget-header i { color: #ea580c !important; }

/* Fix faint cyan "Last chapter: 23" on Manga List cards */
html[data-theme="light"] .ml-scope .manga-chapter,
html[data-theme="light"] .ml-scope .chapter-link,
html[data-theme="light"] .ml-scope .last-chapter,
html[data-theme="light"] .ml-scope .manga-card .manga-meta a,
html[data-theme="light"] .ml-scope .manga-card a[href*="chapter"],
html[data-theme="light"] .ml-scope .manga-card .chapter-info,
html[data-theme="light"] .ml-scope .manga-card .manga-latest-chapter {
  color: #c2410c !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .ml-scope .quick-filter-btn,
html[data-theme="light"] .ml-scope .chapter-pill,
html[data-theme="light"] .ml-scope .chapter-presets a,
html[data-theme="light"] .ml-scope .chapter-presets button,
html[data-theme="light"] .ml-scope .genre-tag,
html[data-theme="light"] .ml-scope .view-btn,
html[data-theme="light"] .ml-scope .direction-btn,
html[data-theme="light"] .ml-scope .per-page-btn,
html[data-theme="light"] .ml-scope .page-link {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #374151 !important;
}
html[data-theme="light"] .ml-scope .adv-search-toggle,
html[data-theme="light"] .ml-scope .mobile-adv-btn {
  background: #fff7ed !important;
  border: 1px solid #fdba74 !important;
  color: #c2410c !important;
}
html[data-theme="light"] .ml-scope .adv-search-toggle:hover {
  background: #ffedd5 !important;
  color: #9a3412 !important;
}
html[data-theme="light"] .ml-scope .quick-filter-btn.active,
html[data-theme="light"] .ml-scope .quick-filter-btn.active *,
html[data-theme="light"] .ml-scope .chapter-pill.active,
html[data-theme="light"] .ml-scope .chapter-presets .active,
html[data-theme="light"] .ml-scope .chapter-presets .active *,
html[data-theme="light"] .ml-scope .view-btn.active,
html[data-theme="light"] .ml-scope .direction-btn.active,
html[data-theme="light"] .ml-scope .per-page-btn.active,
html[data-theme="light"] .ml-scope .page-link.active,
html[data-theme="light"] .ml-scope .chap-apply-btn,
html[data-theme="light"] .ml-scope .logic-btn.active {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.24) !important;
}
html[data-theme="light"] .ml-scope .manga-cover {
  background: #e5e7eb !important;
  border: 1px solid rgba(17, 24, 39, 0.08);
}
html[data-theme="light"] .ml-scope input,
html[data-theme="light"] .ml-scope select {
  background: #f9fafb !important;
  border-color: #d1d5db !important;
  color: #111827 !important;
}
html[data-theme="light"] .ml-scope .empty-state {
  background: #f9fafb !important;
  border-color: #e5e7eb !important;
}
html[data-theme="light"] .ml-scope .ml-btn-primary {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.26) !important;
}
html[data-theme="light"] .ml-scope .ml-btn-secondary {
  background: #ffffff !important;
  color: #374151 !important;
  border-color: #d1d5db !important;
}

/* =========================================================
   5. CHAPTER READER, VIP NAVBAR, CHAPTER SIDEBAR & BOTTOM NAV
   ========================================================= */
html[data-theme="light"] .skeleton-loader { background-color: #e5e7eb !important; }
html[data-theme="light"] .chapter-header,
html[data-theme="light"] .reader-header,
html[data-theme="light"] .chapter-navigation-footer,
html[data-theme="light"] .floating-controls,
html[data-theme="light"] .reader-toolbar,
html[data-theme="light"] .breadcrumb-container,
html[data-theme="light"] .chapter-controls-bar,
html[data-theme="light"] .nico-ad-block,
html[data-theme="light"] .nico-donation-box,
html[data-theme="light"] #seo-block {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #111827 !important;
  box-shadow: 0 4px 18px rgba(17, 24, 39, 0.05) !important;
}
html[data-theme="light"] body .chapter-header .manga-name,
html[data-theme="light"] body .chapter-header .breadcrumb-item,
html[data-theme="light"] body .chapter-header .breadcrumb-item a,
html[data-theme="light"] .chapter-list-title,
html[data-theme="light"] .nico-ad-title,
html[data-theme="light"] .nico-donation-title,
html[data-theme="light"] #seo-block h2,
html[data-theme="light"] #seo-block h3,
html[data-theme="light"] #seo-block strong { color: #111827 !important; }
html[data-theme="light"] .nico-ad-sub,
html[data-theme="light"] .nico-donation-desc,
html[data-theme="light"] #seo-block p,
html[data-theme="light"] #seo-block span { color: #4b5563 !important; }

/* VIP Translate button in Chapter Header */
html[data-theme="light"] #vip-overlay-wrapper button,
html[data-theme="light"] #vip-overlay-wrapper .header-button,
html[data-theme="light"] .header-button.vip-translate-btn {
  background: #fffbeb !important;
  border: 1px solid #f59e0b !important;
  color: #92400e !important;
}
html[data-theme="light"] #vip-overlay-wrapper button span:not(.vip-header-badge),
html[data-theme="light"] #vip-overlay-wrapper button i {
  color: #92400e !important;
}
html[data-theme="light"] #vip-overlay-wrapper .vip-header-badge,
html[data-theme="light"] .vip-header-badge {
  background: #d97706 !important;
  color: #ffffff !important;
}

/* VIP Active Reader Navbar */
html[data-theme="light"] #vip-toolbar,
html[data-theme="light"] #vip_toolbar,
html[data-theme="light"] .vip-toolbar,
html[data-theme="light"] .vip-reader-navbar,
html[data-theme="light"] [id*="vip_toolbar"],
html[data-theme="light"] [class*="vip-toolbar"] {
  background: rgba(255, 255, 255, 0.97) !important;
  border-bottom: 1px solid #e5e7eb !important;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.08) !important;
  color: #111827 !important;
}
html[data-theme="light"] .vip-tb-select,
html[data-theme="light"] .vip-tb-mode-group,
html[data-theme="light"] .vip-tb-progress,
html[data-theme="light"] .vip-tb-counter,
html[data-theme="light"] [class*="vip-tb-"] select {
  background: #f9fafb !important;
  border: 1px solid #d1d5db !important;
  color: #111827 !important;
}
html[data-theme="light"] .vip-tb-mode-btn,
html[data-theme="light"] .vip-tb-btn,
html[data-theme="light"] .vip-tb-action-btn,
html[data-theme="light"] [class*="vip-tb-"] button {
  background: #f9fafb !important;
  border: 1px solid #d1d5db !important;
  color: #1f2937 !important;
}
html[data-theme="light"] .vip-tb-mode-btn.active {
  background: #ea580c !important;
  border-color: #ea580c !important;
  color: #ffffff !important;
}
html[data-theme="light"] .vip-tb-btn:hover,
html[data-theme="light"] .vip-tb-action-btn:hover {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #c2410c !important;
}

/* Chapter Sidebar */
html[data-theme="light"] .chapters-sidebar {
  background: #ffffff !important;
  border-left: 1px solid #e5e7eb !important;
  color: #111827 !important;
  box-shadow: -8px 0 32px rgba(17, 24, 39, 0.12) !important;
}
html[data-theme="light"] .chapters-sidebar .sidebar-header,
html[data-theme="light"] .chapters-sidebar .sidebar-manga-info,
html[data-theme="light"] .chapters-sidebar .sidebar-search-box {
  background: #f9fafb !important;
  border-color: #e5e7eb !important;
  color: #111827 !important;
}
html[data-theme="light"] .chapters-sidebar .sidebar-manga-title,
html[data-theme="light"] .chapters-sidebar .sidebar-header-title { color: #111827 !important; }
html[data-theme="light"] .chapters-sidebar .sidebar-chapter-count,
html[data-theme="light"] .chapters-sidebar .sidebar-manga-meta { color: #4b5563 !important; }
html[data-theme="light"] .chapters-sidebar .sidebar-search-box input {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #111827 !important;
}
html[data-theme="light"] .chapters-sidebar .sidebar-search-box input::placeholder { color: #6b7280 !important; }
html[data-theme="light"] .chapters-sidebar .sidebar-reverse-btn,
html[data-theme="light"] .chapters-sidebar .sidebar-close {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #374151 !important;
}
html[data-theme="light"] .chapters-list-sidebar li a {
  color: #374151 !important;
  border-bottom-color: #f3f4f6 !important;
}
html[data-theme="light"] .chapters-list-sidebar li a:hover {
  background: #f9fafb !important;
  color: #c2410c !important;
}
html[data-theme="light"] .chapters-list-sidebar li.current a {
  background: #fff7ed !important;
  color: #c2410c !important;
  font-weight: 700 !important;
}

/* Chapter Bottom Nav */
html[data-theme="light"] .nav-button {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
  color: #ffffff !important;
}
html[data-theme="light"] .nav-button:disabled,
html[data-theme="light"] button.nav-button[disabled] {
  background: #f3f4f6 !important;
  border: 1px solid #d1d5db !important;
  color: #9ca3af !important;
  box-shadow: none !important;
  opacity: 1 !important;
}
html[data-theme="light"] .custom-dropdown-menu {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.14) !important;
}
html[data-theme="light"] .custom-dropdown-item,
html[data-theme="light"] .custom-dropdown-menu li,
html[data-theme="light"] .custom-dropdown-menu a { color: #374151 !important; }
html[data-theme="light"] .custom-dropdown-item.active,
html[data-theme="light"] .custom-dropdown-menu .active,
html[data-theme="light"] .custom-dropdown-menu .current {
  background: #fff7ed !important;
  color: #c2410c !important;
  font-weight: 700 !important;
}
html[data-theme="light"] .control-button,
html[data-theme="light"] .header-button,
html[data-theme="light"] .custom-dropdown-btn {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #1f2937 !important;
}
html[data-theme="light"] .control-button:hover,
html[data-theme="light"] .control-button.next-chapter {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
  color: #ffffff !important;
}
html[data-theme="light"] .report-modal-content,
html[data-theme="light"] .reader-settings-modal {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #111827 !important;
}
html[data-theme="light"] .report-textarea,
html[data-theme="light"] .report-cancel-btn,
html[data-theme="light"] .report-modal-close {
  background: #f9fafb !important;
  border-color: #d1d5db !important;
  color: #111827 !important;
}

/* =========================================================
   6. FOOTER & ALL UCP v2 (/account/* & /user/infomation/*)
   ========================================================= */
html[data-theme="light"] .main-footer {
  background: #ffffff !important;
  border-top: 1px solid #e5e7eb !important;
  color: #4b5563 !important;
}
html[data-theme="light"] .main-footer .footer-logo,
html[data-theme="light"] .main-footer .footer-heading { color: #111827 !important; }
html[data-theme="light"] .main-footer .footer-desc,
html[data-theme="light"] .main-footer .footer-links a,
html[data-theme="light"] .main-footer .footer-bottom { color: #6b7280 !important; }
html[data-theme="light"] .main-footer .footer-links a:hover { color: #c2410c !important; }
html[data-theme="light"] .main-footer .footer-bottom { border-top-color: #e5e7eb !important; }

/* UCP Navbar (clean underline active tab, no boxy background!) */
html[data-theme="light"] .ucp-navbar {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid #e5e7eb !important;
  box-shadow: 0 2px 12px rgba(17, 24, 39, 0.05) !important;
}
html[data-theme="light"] body .ucp-logo { color: #111827 !important; }
html[data-theme="light"] body .ucp-logo .logo-accent { color: #ea580c !important; }
html[data-theme="light"] body .ucp-navbar #btn-ucp-search,
html[data-theme="light"] body .ucp-navbar #btn-ucp-search i,
html[data-theme="light"] body .ucp-navbar #btn-theme-toggle,
html[data-theme="light"] body .ucp-navbar #btn-theme-toggle i,
html[data-theme="light"] body .ucp-navbar .nav-icon-btn { color: #111827 !important; }
html[data-theme="light"] .ucp-navbar .nav-icon-btn {
  background: #f9fafb !important;
  border: 1px solid #d1d5db !important;
}
html[data-theme="light"] .ucp-navbar .nav-link {
  color: #4b5563 !important;
  background: transparent !important;
}
html[data-theme="light"] .ucp-navbar .nav-link:hover {
  color: #111827 !important;
  background: transparent !important;
}
html[data-theme="light"] .ucp-navbar .nav-link.active {
  color: #ea580c !important;
  background: transparent !important;
  border-bottom: 2px solid #ea580c !important;
  font-weight: 600 !important;
}
html[data-theme="light"] body .ucp-navbar .auth-buttons a[href*="register"] { color: #ffffff !important; }

/* UCP Profile (/account/index): inputs, tabs, Linked Accounts & Pagination */
html[data-theme="light"] body.ucp-app input[type="text"],
html[data-theme="light"] body.ucp-app input[type="email"],
html[data-theme="light"] body.ucp-app input[type="password"],
html[data-theme="light"] body.ucp-app select,
html[data-theme="light"] body.ucp-app textarea,
html[data-theme="light"] body.ucp-app .form-control,
html[data-theme="light"] body.ucp-app .form-input {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #111827 !important;
}
html[data-theme="light"] body.ucp-app input:disabled,
html[data-theme="light"] body.ucp-app input[readonly] {
  background: #f3f4f6 !important;
  color: #6b7280 !important;
}
html[data-theme="light"] body.ucp-app input::placeholder,
html[data-theme="light"] body.ucp-app textarea::placeholder { color: #9ca3af !important; }

/* Fix Linked Accounts dark cards (Discord / Patreon) */
html[data-theme="light"] .account-card {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  color: #111827 !important;
}
html[data-theme="light"] .account-card-title { color: #111827 !important; font-weight: 600 !important; }
html[data-theme="light"] .account-card-desc { color: #4b5563 !important; }

/* Fix #your_manga Pagination dark buttons */
html[data-theme="light"] .pagination-v4 > li > a,
html[data-theme="light"] .pagination-v4 > li > span,
html[data-theme="light"] #your_manga .pagination > li > a,
html[data-theme="light"] #your_manga .pagination > li > span {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #1f2937 !important;
}
html[data-theme="light"] .pagination-v4 > li > a:hover,
html[data-theme="light"] #your_manga .pagination > li > a:hover {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #c2410c !important;
}
html[data-theme="light"] .pagination-v4 > .active > a,
html[data-theme="light"] .pagination-v4 > .active > span,
html[data-theme="light"] .pagination-v4 > li > a.active,
html[data-theme="light"] #your_manga .pagination > .active > a,
html[data-theme="light"] #your_manga .pagination > .active > span,
html[data-theme="light"] #your_manga .pagination > li > a.active {
  background: #ea580c !important;
  border-color: #ea580c !important;
  color: #ffffff !important;
}

/* UCP Notifications (/account/notification) — Fix invisible "Yesterday" date separator! */
html[data-theme="light"] .notif-title-group h1,
html[data-theme="light"] .notif-title,
html[data-theme="light"] .notif-date-header,
html[data-theme="light"] .notif-group-title { color: #111827 !important; }
html[data-theme="light"] .date-separator {
  color: #4b5563 !important;
  font-weight: 600 !important;
}
html[data-theme="light"] .date-separator::after {
  background: #e5e7eb !important;
}
html[data-theme="light"] .notif-filter-btn,
html[data-theme="light"] .filter-pill {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #374151 !important;
}
html[data-theme="light"] .notif-filter-btn.active,
html[data-theme="light"] .filter-pill.active {
  background: #ea580c !important;
  border-color: #ea580c !important;
  color: #ffffff !important;
}

/* Public Profile (/user/infomation/*) — Fix invisible white Recently Reading manga titles! */
html[data-theme="light"] .recent-manga-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
}
html[data-theme="light"] .recent-manga-card:hover {
  border-color: #fdba74 !important;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08) !important;
}
html[data-theme="light"] .recent-manga-title {
  color: #111827 !important;
  font-weight: 600 !important;
}
html[data-theme="light"] .recent-manga-chapter {
  color: #c2410c !important;
  font-weight: 600 !important;
}
html[data-theme="light"] .recent-manga-time {
  color: #6b7280 !important;
}

/* UCP Reading History & Reading Stats */
html[data-theme="light"] .history-title-group h1 { color: #111827 !important; }
html[data-theme="light"] .history-card,
html[data-theme="light"] .stats-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #111827 !important;
  box-shadow: 0 3px 14px rgba(17, 24, 39, 0.05) !important;
}
html[data-theme="light"] .history-card:hover {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
}
html[data-theme="light"] .history-card h3,
html[data-theme="light"] .history-card .manga-title,
html[data-theme="light"] .stats-card h3,
html[data-theme="light"] .stats-card strong,
html[data-theme="light"] .stats-card .stat-value { color: #111827 !important; }
html[data-theme="light"] .history-card .chapter-badge {
  background: #fff7ed !important;
  color: #c2410c !important;
  border: 1px solid #fed7aa !important;
}
html[data-theme="light"] .stats-header h1,
html[data-theme="light"] .stats-card-title,
html[data-theme="light"] .chart-card h2,
html[data-theme="light"] .chart-card h3,
html[data-theme="light"] .chart-header h3,
html[data-theme="light"] .stats-value,
html[data-theme="light"] body .stats-list .stat-val,
html[data-theme="light"] body .stat-val { color: #111827 !important; font-weight: 700 !important; }
html[data-theme="light"] body .stats-list .stat-label,
html[data-theme="light"] body .stat-label { color: #4b5563 !important; }

html[data-theme="light"] .ucp-navbar .user-dropdown-menu,
html[data-theme="light"] .ucp-modal-content,
html[data-theme="light"] .ucp-card,
html[data-theme="light"] .profile-card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .history-item,
html[data-theme="light"] .notification-item,
html[data-theme="light"] .auth-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #111827 !important;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.05) !important;
}
html[data-theme="light"] .ucp-navbar .user-dropdown-menu a,
html[data-theme="light"] .ucp-navbar .user-dropdown-menu .dropdown-item { color: #374151 !important; }
html[data-theme="light"] .ucp-navbar .user-dropdown-menu a:hover,
html[data-theme="light"] .ucp-navbar .user-dropdown-menu .dropdown-item:hover {
  background: #fff7ed !important;
  color: #c2410c !important;
}

/* =========================================================
   7. V7 POLISH: HOVER CONTRAST, EMOJI FIT, NOTIFICATION FOOTER,
      REMAINING GREEN REMOVAL, CHAPTER SIDEBAR, PAGE READER,
      TRANSLATE OVERLAY (#mt_overlay) & READING STATS
   ========================================================= */

/* 7.1 Fix invisible white-on-light hover across chapter list, sidebar & cards */
html[data-theme="light"] .hover\:text-white:hover,
html[data-theme="light"] .group:hover .group-hover\:text-white,
html[data-theme="light"] .group:hover .group-hover\:text-gray-200,
html[data-theme="light"] .group:hover .group-hover\:text-emerald-400,
html[data-theme="light"] .group:hover .group-hover\:text-emerald-300,
html[data-theme="light"] .group:hover .group-hover\:text-amber-300,
html[data-theme="light"] .group:hover .group-hover\:text-cyan-400 {
  color: #c2410c !important;
}
html[data-theme="light"] .hover\:bg-white\/5:hover,
html[data-theme="light"] .hover\:bg-white\/10:hover,
html[data-theme="light"] .hover\:bg-gray-800\/60:hover,
html[data-theme="light"] .hover\:bg-gray-800\/80:hover,
html[data-theme="light"] .hover\:bg-gray-700\/50:hover {
  background-color: #fff7ed !important;
  border-color: #fdba74 !important;
}
/* Make chapter cards & sidebar rows visibly respond on hover */
html[data-theme="light"] a.group.block:hover,
html[data-theme="light"] .top-all-widget a:hover,
html[data-theme="light"] .chapters-container a:hover {
  border-color: #fdba74 !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.1) !important;
}
html[data-theme="light"] .ml-scope .quick-filter-btn:hover:not(.active),
html[data-theme="light"] .ml-scope .chapter-pill:hover:not(.active),
html[data-theme="light"] .ml-scope .genre-tag:hover,
html[data-theme="light"] .ml-scope .view-btn:hover:not(.active),
html[data-theme="light"] .ml-scope .per-page-btn:hover:not(.active),
html[data-theme="light"] .ml-scope .page-link:hover:not(.active),
html[data-theme="light"] .control-button:hover,
html[data-theme="light"] .header-button:hover,
html[data-theme="light"] .custom-dropdown-btn:hover {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #c2410c !important;
}
/* Keep cover-overlay hover text white over dark cover gradients */
html[data-theme="light"] .absolute.group:hover .group-hover\:text-white,
html[data-theme="light"] .bg-black\/60:hover,
html[data-theme="light"] .bg-black\/50:hover {
  color: #ffffff !important;
}

/* 7.2 Fix Reaction Emoji overflowing its tile */
html[data-theme="light"] .nk-cr-btn {
  width: auto !important;
  min-width: 80px !important;
  height: auto !important;
  min-height: 98px !important;
  padding: 12px 10px !important;
  gap: 6px !important;
  overflow: visible !important;
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
}
html[data-theme="light"] .nk-cr-btn:hover {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  transform: translateY(-3px);
}

/* 7.3 Fix Notification Bell Popup dark bottom footer ("See all notifications ->") */
html[data-theme="light"] .notification-footer {
  background: #ffffff !important;
  border-top: 1px solid #e5e7eb !important;
  color: #c2410c !important;
  font-weight: 600 !important;
}
html[data-theme="light"] .notification-footer:hover {
  background: #fff7ed !important;
  color: #9a3412 !important;
}

/* 7.4 Remove remaining green on /manga-list.html (Advanced Search, + button, OR/AND toggle) */
html[data-theme="light"] .ml-scope .advanced-search-btn,
html[data-theme="light"] .advanced-search-btn {
  background: #fff7ed !important;
  border: 1px solid #fdba74 !important;
  color: #c2410c !important;
}
html[data-theme="light"] .ml-scope .advanced-search-btn:hover,
html[data-theme="light"] .advanced-search-btn:hover {
  background: #ffedd5 !important;
  color: #9a3412 !important;
}
html[data-theme="light"] .mangaSearchBtn,
html[data-theme="light"] .mangaSearchBtn i {
  color: #ea580c !important;
}
html[data-theme="light"] .mangaSearchBtn:hover {
  background: #fff7ed !important;
}
html[data-theme="light"] .genre-mode-selector .mode-btn.active,
html[data-theme="light"] .mode-toggle .mode-btn.active {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}
html[data-theme="light"] .genre-mode-selector .mode-btn:not(.active),
html[data-theme="light"] .mode-toggle .mode-btn:not(.active) {
  background: #f3f4f6 !important;
  color: #4b5563 !important;
}

/* 7.5 Chapter Page: remove remaining green (Chapter 120 / 120, #seo-block links) + light Optimizing toast */
html[data-theme="light"] .chapter-progress,
html[data-theme="light"] #chapter_progress {
  color: #c2410c !important;
  font-weight: 700 !important;
}
html[data-theme="light"] #seo-block a {
  color: #c2410c !important;
}
html[data-theme="light"] #seo-block a:hover {
  color: #9a3412 !important;
}
html[data-theme="light"] #analysis_indicator,
html[data-theme="light"] .analysis-indicator-ssr {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid #e5e7eb !important;
  color: #1f2937 !important;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12) !important;
}
html[data-theme="light"] #analysis_text {
  color: #1f2937 !important;
}

/* 7.6 Chapter Sidebar: clean light header + fix invisible "121 Chapters" text */
html[data-theme="light"] .chapters-sidebar .sidebar-header {
  background: #f9fafb !important;
  border-bottom: 1px solid #e5e7eb !important;
  color: #111827 !important;
}
html[data-theme="light"] .chapters-sidebar .sidebar-manga-info {
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
}
html[data-theme="light"] .chapters-sidebar .sidebar-manga-info *,
html[data-theme="light"] .chapters-sidebar .sidebar-manga-details * {
  color: #4b5563 !important;
}
html[data-theme="light"] .chapters-sidebar .sidebar-manga-title,
html[data-theme="light"] .chapters-sidebar .sidebar-manga-info h4,
html[data-theme="light"] .chapters-sidebar .sidebar-manga-info h3 {
  color: #111827 !important;
  font-weight: 700 !important;
}
html[data-theme="light"] .chapters-sidebar .sidebar-manga-info i,
html[data-theme="light"] .chapters-sidebar .sidebar-header i {
  color: #ea580c !important;
}

/* 7.7 Horizontal / Page-by-Page Reader Container & Bottom Control Bar */
html[data-theme="light"] .page-reader-container,
html[data-theme="light"] #page_reader_container,
html[data-theme="light"] .page-viewer-container,
html[data-theme="light"] .page-stage,
html[data-theme="light"] .reader-stage {
  background: #f3f4f6 !important;
}
html[data-theme="light"] .page-controls,
html[data-theme="light"] #page_controls,
html[data-theme="light"] .page-controls-bar,
html[data-theme="light"] .keyboard-hint,
html[data-theme="light"] #keyboard_hint,
html[data-theme="light"] .page-thumbnails,
html[data-theme="light"] #page_thumbnails {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid #d1d5db !important;
  color: #1f2937 !important;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.14) !important;
}
html[data-theme="light"] .page-controls button,
html[data-theme="light"] #page_controls button,
html[data-theme="light"] .keyboard-hint kbd {
  background: #f3f4f6 !important;
  border: 1px solid #d1d5db !important;
  color: #1f2937 !important;
}
html[data-theme="light"] .page-controls button:hover,
html[data-theme="light"] #page_controls button:hover {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #c2410c !important;
}
html[data-theme="light"] .page-controls input[type="range"],
html[data-theme="light"] #page_controls input[type="range"] {
  accent-color: #ea580c !important;
}

/* 7.8 Full Light Mode for AI Translate Overlay (#mt_overlay) */
html[data-theme="light"] #mt_overlay {
  background: #f7f7f5 !important;
  color: #111827 !important;
}
html[data-theme="light"] #mt_overlay > div:first-child {
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
  color: #111827 !important;
}
html[data-theme="light"] #mt_overlay > div:first-child span,
html[data-theme="light"] #mt_overlay > div:first-child button:not(#mt_btn_page):not(#mt_btn_all) {
  color: #1f2937 !important;
}
html[data-theme="light"] #mt_lang,
html[data-theme="light"] #mt_btn_sfx,
html[data-theme="light"] #mt_btn_deep,
html[data-theme="light"] #mt_prev,
html[data-theme="light"] #mt_next,
html[data-theme="light"] #mt_fs_btn {
  background: #f9fafb !important;
  border: 1px solid #d1d5db !important;
  color: #111827 !important;
}
html[data-theme="light"] #mt_btn_sfx:hover,
html[data-theme="light"] #mt_btn_deep:hover,
html[data-theme="light"] #mt_prev:hover,
html[data-theme="light"] #mt_next:hover,
html[data-theme="light"] #mt_fs_btn:hover {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #c2410c !important;
}
html[data-theme="light"] #mt_prog_container > div {
  background: #e5e7eb !important;
}
html[data-theme="light"] #mt_prog_fill {
  background: linear-gradient(90deg, #ea580c, #f97316) !important;
}
html[data-theme="light"] #mt_prog_text {
  color: #4b5563 !important;
}
html[data-theme="light"] #mt_img_side {
  background: #f1f2f0 !important;
  border-right: 1px solid #e5e7eb !important;
}
html[data-theme="light"] #mt_main_layout > div:last-child {
  background: #ffffff !important;
  color: #111827 !important;
}
html[data-theme="light"] #mt_main_layout > div:last-child > div:first-child {
  border-bottom-color: #e5e7eb !important;
}
html[data-theme="light"] #mt_btn_page {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
  color: #ffffff !important;
}
html[data-theme="light"] #mt_btn_all {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
  color: #ffffff !important;
}
html[data-theme="light"] #mt_deep_notice {
  background: #fff7ed !important;
  border-bottom-color: #fed7aa !important;
  color: #9a3412 !important;
}
html[data-theme="light"] #mt_content {
  background: #ffffff !important;
  color: #111827 !important;
}
html[data-theme="light"] #mt_content > div {
  color: #4b5563 !important;
  opacity: 0.9 !important;
}
html[data-theme="light"] #mt_main_layout > div:last-child > div:last-child {
  background: #f9fafb !important;
  border-top: 1px solid #e5e7eb !important;
}
html[data-theme="light"] #mt_status {
  color: #4b5563 !important;
}

/* 7.9 UCP Reading Stats: fix invisible Avg. Per Day number (.stat-card .stat-value / #val-avg) */
html[data-theme="light"] .stat-card .stat-value,
html[data-theme="light"] #val-avg,
html[data-theme="light"] .stat-value-row .stat-value {
  color: #111827 !important;
  font-weight: 700 !important;
}
html[data-theme="light"] .stat-card .stat-unit,
html[data-theme="light"] .stat-value-row .stat-unit {
  color: #4b5563 !important;
}

/* =========================================================
   8. V8 FINAL POLISH:
      - Fix opaque hover overlay on ChaptersList (.absolute.inset-0.bg-white/5)
      - Square Reaction Emoji tiles (96x96)
      - Uniform mobile navbar icons (34x34)
      - Page-by-Page bottom bar (#page_info_bar)
      - Full AI Translate cards/summary/status/report modal
      - VIP Translation Report modal
      - Full Audio Voiceover modal & player (.ai-live-*, .live-*)
   ========================================================= */

/* 8.1 CRITICAL FIX: Chapter card hover overlay was opaque #f9fafb hiding text! */
html[data-theme="light"] .absolute.inset-0.bg-white\/5,
html[data-theme="light"] .absolute.inset-0[class*="bg-white/"] {
  background-color: rgba(234, 88, 12, 0.06) !important;
}
html[data-theme="light"] a[data-chapter-id]:hover {
  background-color: #fff7ed !important;
  border-color: #fdba74 !important;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.1) !important;
}
html[data-theme="light"] a[data-chapter-id]:hover .font-bold {
  color: #c2410c !important;
}

/* 8.2 Restore neat SQUARE Reaction Emoji tiles (96x96) */
html[data-theme="light"] .nk-cr-btn {
  width: 96px !important;
  height: 96px !important;
  min-width: 96px !important;
  min-height: 96px !important;
  padding: 8px 6px !important;
  gap: 3px !important;
  border-radius: 16px !important;
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
}
html[data-theme="light"] .nk-cr-btn .nk-cr-emoji {
  font-size: 24px !important;
  line-height: 1.1 !important;
}
html[data-theme="light"] .nk-cr-btn .nk-cr-label {
  font-size: 10px !important;
  line-height: 1.1 !important;
}
html[data-theme="light"] .nk-cr-btn .nk-cr-count {
  font-size: 11px !important;
  padding: 1px 7px !important;
}

/* 8.3 Uniform mobile navbar buttons (both Light & Dark consistency) */
@media (max-width: 768px) {
  .dark-navbar .navbar-actions {
    gap: 6px !important;
    align-items: center !important;
  }
  .dark-navbar #btn-ucp-search,
  .dark-navbar #btn-theme-toggle,
  .dark-navbar .lang-trigger,
  .dark-navbar .notification-bell {
    height: 34px !important;
    min-width: 34px !important;
    width: 34px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
  }
  .dark-navbar .user-menu-trigger {
    height: 34px !important;
    padding: 0 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 999px !important;
  }
}

/* 8.4 Page-by-Page Reader Bottom Bar (#page_info_bar / .page-info-bar) */
html[data-theme="light"] #page_info_bar,
html[data-theme="light"] .page-info-bar {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid #d1d5db !important;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.14) !important;
  color: #1f2937 !important;
  backdrop-filter: blur(12px);
}
html[data-theme="light"] .page-info-bar .page-nav-btn {
  background: #f3f4f6 !important;
  border: 1px solid #d1d5db !important;
  color: #1f2937 !important;
}
html[data-theme="light"] .page-info-bar .page-nav-btn i {
  color: #1f2937 !important;
}
html[data-theme="light"] .page-info-bar .page-nav-btn:hover:not(:disabled) {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #c2410c !important;
}
html[data-theme="light"] .page-info-bar .page-nav-btn:hover:not(:disabled) i {
  color: #c2410c !important;
}
html[data-theme="light"] .page-info-bar .page-nav-btn.chapter-btn {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #c2410c !important;
}
html[data-theme="light"] .page-info-bar .page-nav-btn.chapter-btn i {
  color: #c2410c !important;
}
html[data-theme="light"] .page-info-bar .page-nav-btn:disabled {
  background: #f9fafb !important;
  border-color: #e5e7eb !important;
  color: #9ca3af !important;
  opacity: 0.55 !important;
}
html[data-theme="light"] .page-info-bar .page-counter .current {
  color: #ea580c !important;
  font-weight: 700 !important;
}
html[data-theme="light"] .page-info-bar .page-counter .separator,
html[data-theme="light"] .page-info-bar .page-counter .total {
  color: #4b5563 !important;
}
html[data-theme="light"] .page-info-bar .page-slider {
  background: #e5e7eb !important;
  accent-color: #ea580c !important;
}
html[data-theme="light"] .page-info-bar .page-slider::-webkit-slider-thumb {
  background: #ea580c !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35) !important;
}

/* 8.5 Complete Light Mode for AI Translate Cards, Page Summary, Status Bar & Report Modal */
html[data-theme="light"] #mt_content > div {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
  color: #111827 !important;
  opacity: 1 !important;
}
html[data-theme="light"] #mt_content .mt-bubble-card,
html[data-theme="light"] #mt_content [style*="background:#1"],
html[data-theme="light"] #mt_content [style*="background:#2"],
html[data-theme="light"] #mt_content [style*="background: #1"],
html[data-theme="light"] #mt_content [style*="background: #2"],
html[data-theme="light"] #mt_content [style*="background:rgba(124,106,247"] {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  color: #111827 !important;
}
html[data-theme="light"] #mt_content [style*="color:#fff"],
html[data-theme="light"] #mt_content [style*="color: #fff"],
html[data-theme="light"] #mt_content [style*="color:#ececf4"],
html[data-theme="light"] #mt_content [style*="color:#e2e8f0"],
html[data-theme="light"] #mt_content [style*="color:#d4d4e8"] {
  color: #111827 !important;
}
html[data-theme="light"] #mt_content [style*="color:#7070a0"],
html[data-theme="light"] #mt_content [style*="color:#888"],
html[data-theme="light"] #mt_content [style*="color:#9ca3af"] {
  color: #4b5563 !important;
}
/* Status bar at bottom of #mt_overlay right panel */
html[data-theme="light"] #mt_overlay #mt_status { color: #374151 !important; }
html[data-theme="light"] #mt_overlay #mt_report_btn {
  background: #fff1f2 !important;
  border: 1px solid #fda4af !important;
  color: #be123c !important;
}
html[data-theme="light"] #mt_overlay #mt_dot { background: #16a34a !important; }
html[data-theme="light"] #mt_main_layout > div:last-child > div:has(#mt_status) {
  background: #f9fafb !important;
  border-top: 1px solid #e5e7eb !important;
}

/* Report & Fix Translation Modal (#mt_report_popup_card) */
html[data-theme="light"] #mt_report_popup_card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #111827 !important;
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.2) !important;
}
html[data-theme="light"] #mt_report_popup_card h3,
html[data-theme="light"] #mt_report_popup_card strong,
html[data-theme="light"] #mt_report_popup_card .mt_reason_label {
  color: #111827 !important;
}
html[data-theme="light"] #mt_report_popup_card .mt_reason_btn {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  color: #111827 !important;
}
html[data-theme="light"] #mt_report_popup_card .mt_reason_btn:hover {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
}
html[data-theme="light"] #mt_report_popup_card #mt_report_cancel_btn,
html[data-theme="light"] #mt_report_popup_card #mt_popup_close_btn {
  background: #f3f4f6 !important;
  border: 1px solid #d1d5db !important;
  color: #374151 !important;
}
html[data-theme="light"] #mt_report_popup_card textarea,
html[data-theme="light"] #mt_report_popup_card input {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #111827 !important;
}

/* 8.6 VIP Translation Report Modal (manga-vip-overlay.js) */
html[data-theme="light"] [class*="vip-report-modal"],
html[data-theme="light"] [class*="vip-report-dialog"],
html[data-theme="light"] [class*="vip-report-card"],
html[data-theme="light"] [id*="vip-report"] > div {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
  color: #111827 !important;
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.2) !important;
}
html[data-theme="light"] [class*="vip-report-"] h3,
html[data-theme="light"] [class*="vip-report-"] h4,
html[data-theme="light"] [class*="vip-report-"] .vip-report-title {
  color: #111827 !important;
}
html[data-theme="light"] [class*="vip-report-"] .vip-report-subtitle,
html[data-theme="light"] [class*="vip-report-"] .vip-report-quota {
  color: #4b5563 !important;
}
html[data-theme="light"] .vip-report-chip,
html[data-theme="light"] .vip-report-page-pill,
html[data-theme="light"] .vip-report-page-nav button,
html[data-theme="light"] .vip-report-send-btn {
  background: #f9fafb !important;
  border: 1px solid #d1d5db !important;
  color: #1f2937 !important;
}
html[data-theme="light"] .vip-report-chip:hover,
html[data-theme="light"] .vip-report-chip.active,
html[data-theme="light"] .vip-report-page-pill.active {
  background: #fff7ed !important;
  border-color: #ea580c !important;
  color: #c2410c !important;
}

/* 8.7 Full Light Mode for Audio Voiceover Modal & Floating Player (.ai-live-*, .live-*) */
html[data-theme="light"] .ai-live-lang-dialog {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #111827 !important;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.2) !important;
}
html[data-theme="light"] .ai-live-lang-header {
  border-bottom: 1px solid #e5e7eb !important;
}
html[data-theme="light"] .ai-live-lang-title { color: #111827 !important; }
html[data-theme="light"] .ai-live-lang-subtitle { color: #4b5563 !important; }
html[data-theme="light"] .ai-live-lang-close {
  background: #f3f4f6 !important;
  border: 1px solid #d1d5db !important;
  color: #374151 !important;
}
html[data-theme="light"] .ai-live-lang-card {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  color: #111827 !important;
}
html[data-theme="light"] .ai-live-lang-card:hover {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
}
html[data-theme="light"] .ai-live-lang-card.active,
html[data-theme="light"] .ai-live-lang-card.selected {
  background: #fff7ed !important;
  border-color: #ea580c !important;
}
html[data-theme="light"] .ai-live-lang-card .lang-name { color: #111827 !important; }
html[data-theme="light"] .ai-live-lang-card .lang-sub { color: #6b7280 !important; }
html[data-theme="light"] .ai-live-lang-card .lang-check { color: #ea580c !important; }
html[data-theme="light"] .ai-live-lang-footer {
  background: #f9fafb !important;
  border-top: 1px solid #e5e7eb !important;
}
html[data-theme="light"] .ai-live-remember-label { color: #374151 !important; }

/* Audio Floating Player Card & Subtitle Bar */
html[data-theme="light"] .live-player-card,
html[data-theme="light"] .live-sub-bar,
html[data-theme="light"] .ai-live-mini-pill,
html[data-theme="light"] .live-speed-menu,
html[data-theme="light"] .ai-live-toast {
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid #d1d5db !important;
  color: #111827 !important;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.14) !important;
}
html[data-theme="light"] .live-chap-text,
html[data-theme="light"] .live-sub-body,
html[data-theme="light"] .live-time { color: #111827 !important; }
html[data-theme="light"] .live-page-badge,
html[data-theme="light"] .live-action-icon-btn,
html[data-theme="light"] .live-lang-select,
html[data-theme="light"] .live-tool-btn,
html[data-theme="light"] .live-nav-btn,
html[data-theme="light"] .live-seek-btn {
  background: #f3f4f6 !important;
  border: 1px solid #d1d5db !important;
  color: #1f2937 !important;
}
html[data-theme="light"] .live-tool-btn.active {
  background: #fff7ed !important;
  border-color: #ea580c !important;
  color: #c2410c !important;
}
html[data-theme="light"] .live-play-btn {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
  color: #ffffff !important;
}

/* =========================================================
   9. V9 FINAL SWEEP:
      - Compact original 74x74 square Reaction Emoji tiles
      - Uniform mobile navbar (34x34 icons, EN + globe, circular avatar)
      - TopAllSidebar hover badge contrast fix
      - Popular Discovery dropdown & Mobile Discover button
      - Report & Fix Translation title + remove purple
      - Chapter Complete! screen Light Mode
      - Global removal of remaining stray green icons/accents
      - Upgrade / Remove-All-Ads (/remove-all-ads/) Light Mode
   ========================================================= */

/* 9.1 Restore compact original 74x74 square Reaction Emoji tiles */
html[data-theme="light"] .nk-cr-btn {
  width: 74px !important;
  height: 74px !important;
  min-width: 74px !important;
  min-height: 74px !important;
  padding: 5px 4px !important;
  gap: 1px !important;
  border-radius: 14px !important;
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
}
html[data-theme="light"] .nk-cr-btn .nk-cr-emoji {
  font-size: 19px !important;
  line-height: 1.05 !important;
}
html[data-theme="light"] .nk-cr-btn .nk-cr-label {
  font-size: 9px !important;
  line-height: 1.05 !important;
}
html[data-theme="light"] .nk-cr-btn .nk-cr-count {
  font-size: 10px !important;
  padding: 0 5px !important;
  line-height: 1.3 !important;
}

/* 9.2 Mobile Navbar: exact 34x34 buttons, EN + globe visible, circular avatar */
@media (max-width: 768px) {
  html .dark-navbar .navbar-actions {
    gap: 5px !important;
    align-items: center !important;
  }
  html .dark-navbar #btn-ucp-search,
  html .dark-navbar #btn-theme-toggle,
  html .dark-navbar .notification-bell,
  html .dark-navbar .notification-btn,
  html .dark-navbar .nav-icon-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  /* Show language code (EN/VI/...) BEFORE globe icon, never just a bare arrow */
  html .dark-navbar .lang-trigger {
    width: auto !important;
    min-width: 48px !important;
    max-width: none !important;
    height: 34px !important;
    padding: 0 8px !important;
    gap: 4px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
  }
  html .dark-navbar .lang-trigger .lang-current-label {
    display: inline-block !important;
    order: 1 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }
  html .dark-navbar .lang-trigger .lang-globe {
    display: inline-block !important;
    order: 2 !important;
    font-size: 11px !important;
    opacity: 0.78 !important;
  }
  html .dark-navbar .lang-trigger .lang-arrow {
    display: none !important;
  }
  /* Keep avatar strictly circular */
  html .dark-navbar .user-menu-trigger {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    padding: 2px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }
  html .dark-navbar .user-menu-trigger .user-avatar {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
  }
}

/* 9.3 Fix TopAllSidebar hover ("Chap 138" pill turning white-on-white!) */
html[data-theme="light"] .top-all-widget a:hover {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
}
html[data-theme="light"] .top-all-widget a:hover h3,
html[data-theme="light"] .top-all-widget a:hover .font-bold,
html[data-theme="light"] .top-all-widget a:hover .line-clamp-2 {
  color: #111827 !important;
}
html[data-theme="light"] .top-all-widget a:hover span:not(.absolute),
html[data-theme="light"] .top-all-widget a:hover a {
  color: #c2410c !important;
}
html[data-theme="light"] .top-all-widget a:hover [class*="rounded-lg"] {
  background: #ffedd5 !important;
  border-color: #fdba74 !important;
  color: #9a3412 !important;
}

/* 9.4 Fix /manga-list.html Popular Discovery dropdown & Mobile Discover button */
html[data-theme="light"] .discovery-dropdown {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  box-shadow: 0 14px 36px rgba(17, 24, 39, 0.14) !important;
  color: #111827 !important;
}
html[data-theme="light"] .discovery-dropdown .dropdown-label {
  color: #4b5563 !important;
  font-weight: 700 !important;
}
html[data-theme="light"] .discovery-dropdown .theme-chip,
html[data-theme="light"] .discovery-dropdown button,
html[data-theme="light"] .discovery-dropdown a {
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
  color: #1f2937 !important;
}
html[data-theme="light"] .discovery-dropdown .theme-chip:hover,
html[data-theme="light"] .discovery-dropdown button:hover,
html[data-theme="light"] .discovery-dropdown a:hover {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #c2410c !important;
}
html[data-theme="light"] .ml-scope .mobile-filter-btn {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #111827 !important;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.06) !important;
}
html[data-theme="light"] .ml-scope .mobile-filter-btn i,
html[data-theme="light"] .ml-scope .mobile-filter-btn span {
  color: #111827 !important;
}
html[data-theme="light"] .ml-scope .mobile-filter-btn i {
  color: #ea580c !important;
}

/* 9.5 Fix Report & Fix Translation modal title + replace remaining purple with Vermilion */
html[data-theme="light"] #mt_report_popup_card div {
  color: #111827 !important;
}
html[data-theme="light"] #mt_report_popup_card [style*="color:#888"],
html[data-theme="light"] #mt_report_popup_card [style*="color:#7070a0"],
html[data-theme="light"] #mt_report_popup_card [style*="color:#9ca3af"] {
  color: #4b5563 !important;
}
html[data-theme="light"] #mt_report_popup_card .mt_reason_circle {
  border-color: #cbd5e1 !important;
}
html[data-theme="light"] #mt_report_popup_card .mt_reason_btn.selected .mt_reason_circle,
html[data-theme="light"] #mt_report_popup_card [style*="7c6af7"] {
  border-color: #ea580c !important;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
  color: #ffffff !important;
}
html[data-theme="light"] #mt_report_popup_card button[id*="retrans"],
html[data-theme="light"] #mt_report_popup_card button[style*="7c6af7"],
html[data-theme="light"] #mt_report_popup_card button[style*="8b5cf6"] {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
  color: #ffffff !important;
  border: none !important;
}

/* 9.6 Chapter Complete! overlay in Page-by-Page Reader */
html[data-theme="light"] .end-chapter-container {
  background: #f7f7f5 !important;
  color: #111827 !important;
}
html[data-theme="light"] .end-chapter-container .end-msg {
  color: #111827 !important;
  font-weight: 800 !important;
}
html[data-theme="light"] .end-chapter-container .end-sub {
  color: #4b5563 !important;
}
html[data-theme="light"] .end-chapter-container .end-btn {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #1f2937 !important;
}
html[data-theme="light"] .end-chapter-container .end-btn:hover {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #c2410c !important;
}
html[data-theme="light"] .end-chapter-container .end-btn.primary,
html[data-theme="light"] .end-chapter-container .end-btn-primary {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

/* 9.7 Global sweep: eliminate remaining stray neon green icons/accents in Light Mode */
html[data-theme="light"] .text-emerald-300,
html[data-theme="light"] .text-emerald-400,
html[data-theme="light"] .text-emerald-500,
html[data-theme="light"] .text-green-400,
html[data-theme="light"] .text-green-500 {
  color: #ea580c !important;
}
html[data-theme="light"] .bg-emerald-500,
html[data-theme="light"] .bg-emerald-500\/90,
html[data-theme="light"] .bg-emerald-600 {
  background-color: #ea580c !important;
  color: #ffffff !important;
}
html[data-theme="light"] .bg-emerald-500\/10,
html[data-theme="light"] .bg-emerald-500\/15,
html[data-theme="light"] .bg-emerald-500\/20 {
  background-color: #fff7ed !important;
}
html[data-theme="light"] .border-emerald-500\/20,
html[data-theme="light"] .border-emerald-500\/30 {
  border-color: #fed7aa !important;
}

/* 9.8 Upgrade / Remove-All-Ads Page (/remove-all-ads/ -> widgets/paid.php) */
html[data-theme="light"] .pm-wrap {
  color: #111827 !important;
}
html[data-theme="light"] .pm-hero h1 {
  background: none !important;
  -webkit-text-fill-color: #111827 !important;
  color: #111827 !important;
}
html[data-theme="light"] .pm-hero p {
  color: #4b5563 !important;
}
html[data-theme="light"] .pm-chip {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #374151 !important;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04) !important;
}
html[data-theme="light"] .pm-chip i {
  color: #ea580c !important;
}
html[data-theme="light"] .pm-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #111827 !important;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.06) !important;
}
html[data-theme="light"] .pm-card-title,
html[data-theme="light"] .pm-price-amt {
  color: #111827 !important;
}
html[data-theme="light"] .pm-card-desc,
html[data-theme="light"] .pm-price-per,
html[data-theme="light"] .pm-features li,
html[data-theme="light"] .pm-step {
  color: #4b5563 !important;
}
html[data-theme="light"] .pm-crypto-box,
html[data-theme="light"] .pm-crypto-addr {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  color: #111827 !important;
}
html[data-theme="light"] .pm-crypto-label {
  color: #6b7280 !important;
}

/* =========================================================
   10. V10: 18+ WARNING MODAL, AUTH PAGES (/account/login|register|forgot)
       & VIP TRANSLATION REPORT SELECTED PAGE CONTRAST
   ========================================================= */

/* 10.1 18+ Warning Modal (chapter.content.warning.php) */
html[data-theme="light"] .age-warning-overlay {
  background: rgba(17, 24, 39, 0.55) !important;
  backdrop-filter: blur(8px);
}
html[data-theme="light"] .age-warning-modal {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.22) !important;
  color: #111827 !important;
}
html[data-theme="light"] .age-warning-header {
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%) !important;
}
html[data-theme="light"] .age-warning-header .age-warning-title {
  color: #ffffff !important;
}
html[data-theme="light"] .age-warning-body {
  background: #ffffff !important;
  color: #111827 !important;
}
html[data-theme="light"] .age-badge {
  background: #fff1f2 !important;
  border: 1px solid #fda4af !important;
  color: #be123c !important;
}
html[data-theme="light"] .age-warning-text {
  color: #374151 !important;
}
html[data-theme="light"] .age-warning-text strong {
  color: #111827 !important;
}
html[data-theme="light"] .age-warning-important {
  background: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
  border-left: 3px solid #e11d48 !important;
}
html[data-theme="light"] .age-warning-important p,
html[data-theme="light"] .age-warning-important i {
  color: #9f1239 !important;
}
html[data-theme="light"] .age-checkbox-container {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
}
html[data-theme="light"] .age-checkbox-container label {
  color: #1f2937 !important;
  font-weight: 500 !important;
}
html[data-theme="light"] .age-warning-footer {
  background: #f9fafb !important;
  border-top: 1px solid #e5e7eb !important;
}
html[data-theme="light"] .age-warning-btn-home {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #374151 !important;
}
html[data-theme="light"] .age-warning-btn-home:hover {
  background: #f3f4f6 !important;
  color: #111827 !important;
}
html[data-theme="light"] .age-warning-btn-continue {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
  border: none !important;
  color: #ffffff !important;
}
html[data-theme="light"] .age-warning-btn-continue:disabled {
  background: #e5e7eb !important;
  color: #9ca3af !important;
}

/* 10.2 Auth Pages (/account/login, /account/register, /account/forgot) */
html[data-theme="light"] body.login-page,
html[data-theme="light"] .login-page {
  background: #f7f7f5 !important;
  color: #111827 !important;
}
html[data-theme="light"] .login-page .premium-card,
html[data-theme="light"] .login-box .card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08) !important;
}
html[data-theme="light"] .login-page .brand-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
}
html[data-theme="light"] .login-page .brand-text-main {
  color: #111827 !important;
}
html[data-theme="light"] .login-page .brand-text-sub {
  color: #ea580c !important;
}
html[data-theme="light"] .login-page .login-box-msg,
html[data-theme="light"] .login-page .card-body p,
html[data-theme="light"] .login-page label {
  color: #4b5563 !important;
}
html[data-theme="light"] .login-page .premium-input,
html[data-theme="light"] .login-page .form-control {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #111827 !important;
}
html[data-theme="light"] .login-page .premium-input::placeholder,
html[data-theme="light"] .login-page .form-control::placeholder {
  color: #9ca3af !important;
}
html[data-theme="light"] .login-page .input-group-text {
  background: #f9fafb !important;
  border: 1px solid #d1d5db !important;
  color: #6b7280 !important;
}
html[data-theme="light"] .login-page .premium-btn-primary,
html[data-theme="light"] .login-page .btn-primary {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25) !important;
}
html[data-theme="light"] .login-page a:not(.btn):not(.brand-link) {
  color: #c2410c !important;
}
html[data-theme="light"] .login-page a:not(.btn):not(.brand-link):hover {
  color: #9a3412 !important;
}

/* 10.3 VIP Translation Report: crisp contrast for "Selected: Page 1 / 24" */
html[data-theme="light"] [class*="vip-report-"] .vip-report-page-bar,
html[data-theme="light"] [id*="vip_report"] [style*="background:rgba(255,255,255"],
html[data-theme="light"] .vip-report-target-bar,
html[data-theme="light"] [class*="vip-report-"] div:has(> .vip-report-page-nav) {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  color: #374151 !important;
}
html[data-theme="light"] [class*="vip-report-"] div:has(> .vip-report-page-nav) span,
html[data-theme="light"] [class*="vip-report-"] span {
  color: #374151 !important;
}
html[data-theme="light"] [class*="vip-report-"] strong[style*="#fef08a"],
html[data-theme="light"] [class*="vip-report-"] div:has(> .vip-report-page-nav) strong {
  color: #c2410c !important;
  font-weight: 700 !important;
}
html[data-theme="light"] #vip_report_retrans_btn,
html[data-theme="light"] #vip_report_retrans_btn * {
  color: #ffffff !important;
}
html[data-theme="light"] #vip_report_send_btn,
html[data-theme="light"] #vip_report_send_btn * {
  background: #1e293b !important;
  border-color: #1e293b !important;
  color: #ffffff !important;
}

/* =========================================================
   11. V11: /about-ai-translation, CHAPTER COMMUNITY BOX,
       & DEAD-CENTER MOBILE AVATAR ALIGNMENT
   ========================================================= */

/* 11.1 Universal fix for "Join the NicoManga Community" on BOTH Manga & Chapter pages */
html[data-theme="light"] .nico-community-box,
html[data-theme="light"] div[style*="rgba(255, 255, 255, 0.03)"] {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.05) !important;
}
html[data-theme="light"] .nico-community-box h3,
html[data-theme="light"] div[style*="rgba(255, 255, 255, 0.03)"] h3 {
  color: #111827 !important;
}
html[data-theme="light"] .nico-community-box p,
html[data-theme="light"] div[style*="rgba(255, 255, 255, 0.03)"] p {
  color: #4b5563 !important;
}

/* 11.2 Dead-center circular avatar on Mobile Navbar (exact 34x34 alignment) */
@media (max-width: 768px) {
  html .dark-navbar .user-dropdown {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 34px !important;
    line-height: 1 !important;
  }
  html .dark-navbar .user-menu-trigger {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
  }
  html .dark-navbar .user-menu-trigger .user-avatar {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
  }
}

/* 11.3 About AI Translation Page (/about-ai-translation -> widgets/about.ai.translation.php) */
html[data-theme="light"] .premium-ai-page {
  color: #111827 !important;
}
html[data-theme="light"] .premium-glass-container,
html[data-theme="light"] .premium-hero,
html[data-theme="light"] .premium-section,
html[data-theme="light"] .premium-cta {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.06) !important;
  color: #111827 !important;
}
html[data-theme="light"] .hero-glow,
html[data-theme="light"] .cta-glow {
  opacity: 0.14 !important;
}
html[data-theme="light"] .hero-badge {
  background: #fff7ed !important;
  border: 1px solid #fdba74 !important;
  color: #c2410c !important;
}
html[data-theme="light"] .premium-hero-title,
html[data-theme="light"] .premium-section-title,
html[data-theme="light"] .premium-cta-title,
html[data-theme="light"] .premium-step h3,
html[data-theme="light"] .premium-step h4,
html[data-theme="light"] .premium-feat-text h3,
html[data-theme="light"] .premium-feat-text h4,
html[data-theme="light"] .premium-feat-text strong {
  background: none !important;
  -webkit-text-fill-color: #111827 !important;
  color: #111827 !important;
}
html[data-theme="light"] .premium-section-title i {
  color: #ea580c !important;
}
html[data-theme="light"] .premium-hero-desc,
html[data-theme="light"] .premium-cta-desc,
html[data-theme="light"] .premium-lang-desc,
html[data-theme="light"] .step-desc,
html[data-theme="light"] .premium-feat-text,
html[data-theme="light"] .premium-feat-text p {
  color: #4b5563 !important;
}
html[data-theme="light"] .premium-step,
html[data-theme="light"] .premium-features-grid > div {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  color: #111827 !important;
}
html[data-theme="light"] .step-icon-wrapper,
html[data-theme="light"] .premium-feat-icon {
  background: #fff7ed !important;
  border: 1px solid #fed7aa !important;
  color: #ea580c !important;
}
html[data-theme="light"] .lang-badge {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  color: #1f2937 !important;
}
html[data-theme="light"] .lang-badge:hover {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #c2410c !important;
}
html[data-theme="light"] .premium-ai-page .premium-btn-primary {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
  color: #ffffff !important;
  border: none !important;
}
html[data-theme="light"] .premium-ai-page .premium-btn-secondary {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #1f2937 !important;
}
html[data-theme="light"] .premium-ai-page .premium-btn-secondary:hover {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: #c2410c !important;
}

html[data-theme="light"] .premium-step .step-title, html[data-theme="light"] .premium-step > div:nth-child(2) { color: #111827 !important; font-weight: 700 !important; }

/* =========================================================
   12. V12: LIVE-PAGE SHATTER MASK, SIDEBAR CHAPTER HOVER,
       MOBILE DISCOVER TITLE, COMMUNITY HOVER & AI TOOLTIP
   ========================================================= */

/* 12.1 Live-Page View Transition Pixel-Shatter Mask */
html.nico-vt-shatter::view-transition-old(root) {
  z-index: 9998;
  animation: none;
  -webkit-mask-image: var(--nico-vt-mask, none);
  mask-image: var(--nico-vt-mask, none);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
html.nico-vt-shatter::view-transition-new(root) {
  z-index: 1;
  animation: none;
}

/* 12.2 Tactile Light Mode Hover for Community & Support cards, Manga cards, Sidebar & History items */
html[data-theme="light"] a.history-item,
html[data-theme="light"] .history-item {
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}
html[data-theme="light"] a.history-item:hover,
html[data-theme="light"] .history-item:hover {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.1) !important;
}
html[data-theme="light"] a.history-item:hover span,
html[data-theme="light"] a.history-item:hover strong,
html[data-theme="light"] a.history-item:hover div {
  color: #c2410c !important;
}
html[data-theme="light"] .manga-card:hover,
html[data-theme="light"] .thumb-item-flow:hover {
  border-color: #fdba74 !important;
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.1) !important;
}

/* 12.3 TopAllSidebar Chapter Button Hover (now that Tailwind ! prefix is removed in TSX) */
html[data-theme="light"] body a[class*="rounded-lg"][class*="bg-white"]:hover {
  background: #ffedd5 !important;
  border-color: #ea580c !important;
  color: #9a3412 !important;
}

/* 12.4 Mobile Discover Title (#sheetTitle) & Filter Sheet Header */
html[data-theme="light"] #sheetTitle,
html[data-theme="light"] .sheet-header,
html[data-theme="light"] .sheet-header h3,
html[data-theme="light"] .mobile-filter-sheet,
html[data-theme="light"] .mobile-filter-sheet .widget-header,
html[data-theme="light"] .mobile-filter-sheet .widget-title,
html[data-theme="light"] .smart-genre-widget .widget-title {
  background-color: #ffffff !important;
  color: #111827 !important;
}
html[data-theme="light"] #sheetTitle i,
html[data-theme="light"] .smart-genre-widget .widget-title i {
  color: #ea580c !important;
}

/* 12.5 Chapter Page "AI TRANSLATION" Tooltip Popover under Translate button */
html[data-theme="light"] #ai-translate-tooltip,
html[data-theme="light"] #ai_translate_tooltip,
html[data-theme="light"] #mt-ai-tooltip,
html[data-theme="light"] .ai-translate-tooltip,
html[data-theme="light"] div[id*="ai_tooltip"],
html[data-theme="light"] div[id*="ai-tooltip"] {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #374151 !important;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.16) !important;
}
html[data-theme="light"] div[id*="ai_tooltip"] strong,
html[data-theme="light"] div[id*="ai-tooltip"] strong,
html[data-theme="light"] .ai-translate-tooltip strong {
  color: #111827 !important;
}
html[data-theme="light"] div[id*="ai_tooltip"] [style*="color:#a78bfa"],
html[data-theme="light"] div[id*="ai-tooltip"] [style*="color:#a78bfa"],
html[data-theme="light"] div[id*="ai_tooltip"] [style*="color:#c4b5fd"],
html[data-theme="light"] div[id*="ai-tooltip"] [style*="color:#c4b5fd"] {
  color: #ea580c !important;
}
html[data-theme="light"] div[id*="ai_tooltip"] button[style*="linear-gradient"],
html[data-theme="light"] div[id*="ai-tooltip"] button[style*="linear-gradient"],
html[data-theme="light"] div[id*="ai_tooltip"] a[style*="linear-gradient"],
html[data-theme="light"] div[id*="ai-tooltip"] a[style*="linear-gradient"] {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25) !important;
}

/* =========================================================
   13. V13/V14: REACTION SPACING, READ-CHAPTER BUTTON CONTRAST,
       & CLEAN NO-UNDERLINE HOVER FEEDBACK
   ========================================================= */

/* 13.1 Reaction Emoji tiles: comfortable spacing inside 74x74 square */
html[data-theme="light"] .nk-cr-btn {
  width: 74px !important;
  height: 74px !important;
  min-width: 74px !important;
  min-height: 74px !important;
  padding: 6px 4px !important;
  gap: 5px !important;
  justify-content: center !important;
}

/* 13.2 Distinguish "Read the last chapter" (Deep Charcoal) from "Bookmark" (Orange)
   STRICTLY excluding chapter list cards ([data-chapter-id])! */
html[data-theme="light"] a.bg-emerald-500:not([data-chapter-id]),
html[data-theme="light"] a.bg-emerald-600:not([data-chapter-id]),
html[data-theme="light"] a[class*="from-emerald"]:not([data-chapter-id]) {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}
html[data-theme="light"] a.bg-emerald-500:not([data-chapter-id]):hover,
html[data-theme="light"] a.bg-emerald-600:not([data-chapter-id]):hover,
html[data-theme="light"] a[class*="from-emerald"]:not([data-chapter-id]):hover {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25) !important;
}
html[data-theme="light"] button.bg-orange-500:hover,
html[data-theme="light"] a.bg-orange-500:hover {
  filter: brightness(0.94);
  transform: translateY(-1px);
}

/* 13.3 Breadcrumb link hover (clean color shift, NO underline) */
html[data-theme="light"] body .breadcrumb-navigation a,
html[data-theme="light"] body .breadcrumb-bar a,
html[data-theme="light"] body .breadcrumb li a {
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}
html[data-theme="light"] body .breadcrumb-navigation a:hover,
html[data-theme="light"] body .breadcrumb-bar a:hover,
html[data-theme="light"] body .breadcrumb li a:hover {
  color: #ea580c !important;
  text-decoration: none !important;
}

/* 13.4 Trending Now cover chapter pill hover */
html[data-theme="light"] .absolute a[href*="chapter"],
html[data-theme="light"] .absolute a[href*="chap"] {
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease !important;
}
html[data-theme="light"] .absolute a[href*="chapter"]:hover,
html[data-theme="light"] .absolute a[href*="chap"]:hover {
  background-color: #ea580c !important;
  border-color: #ea580c !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* 13.5 Home Promo "Install APK", AI Banner "LEARN MORE ->" & "Got it" hover (NO underline) */
html[data-theme="light"] .cyber-promo-card-neat a[class*="btn"],
html[data-theme="light"] .cyber-btn-neat,
html[data-theme="light"] .apk-download-btn,
html[data-theme="light"] #ai-banner-learn,
html[data-theme="light"] #ai-banner-dismiss {
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease !important;
}
html[data-theme="light"] .cyber-promo-card-neat a[class*="btn"]:hover,
html[data-theme="light"] .cyber-btn-neat:hover,
html[data-theme="light"] .apk-download-btn:hover {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
  border-color: #ea580c !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.28) !important;
}
html[data-theme="light"] #ai-banner-learn:hover {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.32) !important;
}
html[data-theme="light"] #ai-banner-dismiss:hover {
  color: #111827 !important;
  text-decoration: none !important;
}

/* 13.6 Latest Updates chapter links & Recent Comments CHAP badges hover (NO underline) */
html[data-theme="light"] .group a[href*="chapter"]:not(.absolute a):hover,
html[data-theme="light"] a.text-gray-400[href*="chapter"]:hover,
html[data-theme="light"] a.text-gray-500[href*="chapter"]:hover {
  color: #ea580c !important;
  text-decoration: none !important;
}
html[data-theme="light"] .comment-chapter-tag {
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease !important;
}
html[data-theme="light"] .comment-chapter-tag:hover {
  background: #ea580c !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.28) !important;
}

/* 13.7 Mobile NICOMANGA APP promo card: crisp subtle white text halo over phone mockup */
html[data-theme="light"] .cyber-promo-card-neat strong {
  color: #c2410c !important;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.98), 0 0 8px rgba(255, 255, 255, 0.95), 0 1px 1px rgba(255, 255, 255, 0.95) !important;
}
html[data-theme="light"] .cyber-promo-card-neat span,
html[data-theme="light"] .cyber-promo-card-neat .cyber-desc-neat {
  color: #1f2937 !important;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.98), 0 0 7px rgba(255, 255, 255, 0.92) !important;
}
html[data-theme="light"] .cyber-promo-card-neat .cyber-title-neat {
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.95) !important;
}
html[data-theme="light"] .cyber-promo-card-neat a[class*="btn"] *,
html[data-theme="light"] .cyber-btn-neat * {
  text-shadow: none !important;
  color: #ffffff !important;
}


/* 13.8 UCP (/account/*) Search Overlay input: remove inner rectangle border so it matches main navbar */
html[data-theme="light"] body.ucp-app .ucp-search-input,
html[data-theme="light"] .ucp-search-form input[type="text"] {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}


/* 13.9 Clear Read vs Unread Chapter distinction on Home & /manga-list.html */
html[data-theme="light"] .group a[href*="chapter"]:not(.absolute a):not(.chapter-read),
html[data-theme="light"] .ml-scope .chapter-link:not(.chapter-read),
html[data-theme="light"] .ml-scope .manga-card a[href*="chapter"]:not(.chapter-read) {
  color: #c2410c !important;
  font-weight: 600 !important;
}
html[data-theme="light"] a.chapter-read,
html[data-theme="light"] .ml-scope a.chapter-read,
html[data-theme="light"] .ml-scope .chapter-link.chapter-read,
html[data-theme="light"] .group a[href*="chapter"]:not(.absolute a):visited,
html[data-theme="light"] .ml-scope .chapter-link:visited,
html[data-theme="light"] .ml-scope .manga-card a[href*="chapter"]:visited {
  color: #9ca3af !important;
  font-weight: 400 !important;
}

html[data-theme="light"] body.ucp-app .ucp-search-form input,
html[data-theme="light"] body.ucp-app .ucp-search-form input[type="text"],
html[data-theme="light"] body.ucp-app .ucp-search-form input[type="search"],
html[data-theme="light"] body.ucp-app input.ucp-search-input {
  border: 0 !important;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}


/* 13.10 Make live-page shatter on heavy Home/Manga pages as silky-smooth as UCP:
   Pause background animations, transitions & expensive backdrop-filter blurs during the 2.3s shatter */
html.nico-vt-shatter .dark-navbar,
html.nico-vt-shatter .ucp-navbar {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html.nico-vt-shatter::view-transition-group(root) {
  overflow: clip;
}


/* 13.11 Fix invisible UCP mobile hamburger (#btn-drawer-open) & tabs scroll arrow in Light Mode */
html[data-theme="light"] .ucp-navbar .ucp-hamburger,
html[data-theme="light"] #btn-drawer-open {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #111827 !important;
}
html[data-theme="light"] .ucp-navbar .ucp-hamburger i,
html[data-theme="light"] #btn-drawer-open i {
  color: #111827 !important;
}
html[data-theme="light"] .ucp-drawer,
html[data-theme="light"] .mobile-drawer {
  background: #ffffff !important;
  color: #111827 !important;
  border-right: 1px solid #e5e7eb !important;
}
html[data-theme="light"] .ucp-drawer a,
html[data-theme="light"] .mobile-drawer a {
  color: #374151 !important;
}
html[data-theme="light"] .ucp-drawer a.active,
html[data-theme="light"] .ucp-drawer a:hover {
  background: #fff7ed !important;
  color: #c2410c !important;
}
html[data-theme="light"] .tabs-scroll-btn,
html[data-theme="light"] .tab-scroll-arrow {
  background: linear-gradient(90deg, transparent, #f7f7f5 40%, #f7f7f5) !important;
  color: #374151 !important;
}


/* 13.12 Mobile UCP search bar: sleek rounded pill instead of full-width rectangle */
@media (max-width: 768px) {
  html[data-theme="light"] body.ucp-app .ucp-search-overlay {
    padding: 8px 10px 0 10px !important;
    background: transparent !important;
  }
  html[data-theme="light"] body.ucp-app .ucp-search-form {
    border-radius: 999px !important;
    padding: 4px 10px !important;
    border: 1px solid #d1d5db !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.08) !important;
  }
}

@media (max-width: 768px) {
  html[data-theme="light"] body.ucp-app.nico-search-open .ucp-navbar {
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
  }
}


/* 13.13 Universal Light Mode for Toasts, Bookmark/Report/Chapter Notifications & SweetAlert */
html[data-theme="light"] .toast,
html[data-theme="light"] .toast-notification,
html[data-theme="light"] .nico-toast,
html[data-theme="light"] #toast-container > div,
html[data-theme="light"] .swal2-popup,
html[data-theme="light"] [class*="toast-"]:not(.toast-container) {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #111827 !important;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.14) !important;
}
html[data-theme="light"] .toast *,
html[data-theme="light"] .toast-notification *,
html[data-theme="light"] .nico-toast *,
html[data-theme="light"] #toast-container > div *,
html[data-theme="light"] .swal2-popup .swal2-title,
html[data-theme="light"] .swal2-popup .swal2-html-container {
  color: #111827 !important;
}

html[data-theme="light"] .bg-gray-900\/90 {
  background-color: #ffffff !important;
  border-color: #e5e7eb !important;
  color: #111827 !important;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.14) !important;
}
html[data-theme="light"] .bg-gray-900\/90 span,
html[data-theme="light"] .bg-gray-900\/90 div {
  color: #111827 !important;
}


/* 13.14 Polish AI Translation tooltip text, arrow & CTA button in Light Mode */
html[data-theme="light"] div[id*="ai_tooltip"] p,
html[data-theme="light"] div[id*="ai-tooltip"] p,
html[data-theme="light"] div[id*="ai_tooltip"] div,
html[data-theme="light"] div[id*="ai-tooltip"] div {
  color: #374151 !important;
}
html[data-theme="light"] div[id*="ai_tooltip"] strong,
html[data-theme="light"] div[id*="ai-tooltip"] strong {
  color: #111827 !important;
}
html[data-theme="light"] div[id*="ai_tooltip"] [style*="rotate(45deg)"],
html[data-theme="light"] div[id*="ai-tooltip"] [style*="rotate(45deg)"] {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
}
html[data-theme="light"] div[id*="ai_tooltip"] a,
html[data-theme="light"] div[id*="ai-tooltip"] a,
html[data-theme="light"] div[id*="ai_tooltip"] button:not([aria-label="Close"]),
html[data-theme="light"] div[id*="ai-tooltip"] button:not([aria-label="Close"]) {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
  color: #ffffff !important;
}


/* 13.15 Legible Read Chapters & Crisp Chapter Hover on Home, Manga List & Comments */
html[data-theme="light"] .comment-chapter-tag:visited,
html[data-theme="light"] .comment-chapter-tag.chapter-read {
  background: #64748b !important;
  color: #ffffff !important;
  opacity: 0.9 !important;
}
html[data-theme="light"] a.chapter-read,
html[data-theme="light"] .ml-scope a.chapter-read,
html[data-theme="light"] .ml-scope .chapter-link.chapter-read,
html[data-theme="light"] .group a[href*="chapter"]:not(.absolute a):visited,
html[data-theme="light"] .ml-scope .chapter-link:visited,
html[data-theme="light"] .ml-scope .manga-card a[href*="chapter"]:visited {
  color: #6b7280 !important;
  font-weight: 500 !important;
}
html[data-theme="light"] .group a[href*="chapter"]:not(.absolute a),
html[data-theme="light"] .ml-scope .chapter-link,
html[data-theme="light"] .ml-scope .manga-card a[href*="chapter"] {
  transition: color 0.16s ease, background-color 0.16s ease, transform 0.16s ease !important;
}
html[data-theme="light"] .group a[href*="chapter"]:not(.absolute a):hover,
html[data-theme="light"] .ml-scope .chapter-link:hover,
html[data-theme="light"] .ml-scope .manga-card a[href*="chapter"]:hover {
  color: #ea580c !important;
  background-color: #fff7ed !important;
  border-radius: 6px;
}


/* 13.16 Remove remaining purple from /account/reading_history (timeline, chapter badge, progress bar, Most Active bars) */
html[data-theme="light"] .history-timeline::before,
html[data-theme="light"] .timeline-line {
  background: #e5e7eb !important;
}
html[data-theme="light"] .timeline-dot,
html[data-theme="light"] .history-dot,
html[data-theme="light"] .history-item-dot {
  background: #ea580c !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 0 3px #ffedd5 !important;
}
html[data-theme="light"] .history-card .chapter-badge,
html[data-theme="light"] .history-chapter-badge,
html[data-theme="light"] .history-card a[class*="chapter"] {
  background: #fff7ed !important;
  color: #c2410c !important;
  border: 1px solid #fed7aa !important;
}
html[data-theme="light"] .history-progress-fill,
html[data-theme="light"] .progress-fill,
html[data-theme="light"] .history-card .progress-bar-fill,
html[data-theme="light"] .mini-bar,
html[data-theme="light"] .activity-bar,
html[data-theme="light"] .most-active-bar {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
}
html[data-theme="light"] .history-progress-track,
html[data-theme="light"] .progress-track,
html[data-theme="light"] .history-card .progress-bar {
  background: #e5e7eb !important;
}


/* 13.17 Fix invisible unchecked toggle switch (Public Profile) in Light Mode */
html[data-theme="light"] .toggle-slider,
html[data-theme="light"] .slider,
html[data-theme="light"] .switch .slider {
  background-color: #cbd5e1 !important;
  border: none !important;
  box-shadow: inset 0 0 0 1px #94a3b8 !important;
}
html[data-theme="light"] .toggle-slider::before,
html[data-theme="light"] .slider::before {
  background-color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.25) !important;
}
html[data-theme="light"] input:checked + .toggle-slider,
html[data-theme="light"] input:checked + .slider {
  background-color: #ea580c !important;
  box-shadow: none !important;
}

html[data-theme="light"] .history-chapter-pill {
  background-color: #fff7ed !important;
  color: #c2410c !important;
  border: 1px solid #fed7aa !important;
}
html[data-theme="light"] .history-progress-bar,
html[data-theme="light"] .chart-bar-fill {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%) !important;
}

html[data-theme="light"] .history-load-more .btn {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    color: #1f2937 !important;
    font-weight: 600 !important;
}
html[data-theme="light"] .history-load-more .btn:hover {
    background: #fff7ed !important;
    border-color: #fdba74 !important;
    color: #c2410c !important;
}

html[data-theme="light"] #btn-load-more,
html[data-theme="light"] .history-load-more .btn.btn-ghost {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    color: #1f2937 !important;
    font-weight: 600 !important;
}
html[data-theme="light"] #btn-load-more:hover,
html[data-theme="light"] .history-load-more .btn.btn-ghost:hover {
    background: #fff7ed !important;
    border-color: #fdba74 !important;
    color: #c2410c !important;
}

html.nico-vt-shatter *,
html.nico-vt-shatter *::before,
html.nico-vt-shatter *::after {
  transition: none !important;
}
html.nico-vt-shatter [class*="backdrop-blur"] {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.nico-vt-shatter.nico-scrolled .ucp-navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}
html.nico-vt-shatter.nico-scrolled body.ucp-app {
  padding-top: 60px !important;
}
