/* ==========================================================================
   AICENTY MODERN LIGHT/DARK THEME & UNIFIED DESIGN SYSTEM
   Synchronized across Homepage, News, Individual Articles, and Partner
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LIGHT MODE DESIGN TOKENS (HIGH CONTRAST & ACCESSIBLE)
   -------------------------------------------------------------------------- */
html[data-theme="light"] {
  /* Surfaces & Backgrounds */
  --obsidian: #f8fafc;       /* Main canvas: Slate-50 - eye-friendly, elegant */
  --onyx: #f1f5f9;           /* Secondary surface / header / footer: Slate-100 */
  --carbon: #ffffff;         /* Cards, modals, containers, dropdowns: Pure White */
  
  /* Borders & Dividers */
  --graphite: #e2e8f0;       /* Hairline border: Slate-200 */
  --slate: #cbd5e1;          /* Interactive border / hover / active: Slate-300 */
  
  /* Typography Hierarchy (Crisp, High-Contrast & Anti-Blur) */
  --ash: #64748b;            /* Meta, timestamps, small copyright: Slate-500 */
  --steel: #475569;          /* Icons, helper labels, breadcrumb arrows: Slate-600 */
  --fog: #334155;            /* Secondary copy, nav links, footer links: Slate-700 */
  --mist: #1e293b;           /* Long-form body paragraphs, descriptions: Slate-800 */
  --silver: #0f172a;         /* Subheadings, item titles: Slate-900 */
  --bone: #09090b;           /* Primary text, high-clarity copy: Deep Zinc-950 */
  --paper: #000000;          /* Major titles H1, H2, hero headlines: True Black */
  
  /* Accent Colors (Contrast-tuned for AAA compliance) */
  --accent: #2563eb;         /* Vibrant Tech Blue */
  --accent-bright: #0284c7;  /* High-contrast Cyan/Sky Blue for Light Mode */
  --accent-soft: #0369a1;    /* Deep sky blue accent */
  --accent-purple: #7c3aed;  /* Royal purple for Partner accents */
  --accent-cyan: #0284c7;

  /* Shadows */
  --theme-shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06);
  --theme-shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --theme-shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.12);
}

/* --------------------------------------------------------------------------
   2. THEME TOGGLE BUTTON COMPONENT
   -------------------------------------------------------------------------- */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 9999px;
  border: 1px solid var(--graphite);
  background: var(--carbon);
  color: var(--bone);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  outline: none;
}

.theme-toggle-btn:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(34, 211, 238, 0.16);
}

.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.theme-toggle-btn svg {
  display: block;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Default Dark Mode: Display Sun Icon */
.theme-toggle-btn .sun-icon {
  display: block;
}
.theme-toggle-btn .moon-icon {
  display: none;
}

/* Light Mode: Display Moon Icon */
html[data-theme="light"] .theme-toggle-btn .sun-icon {
  display: none;
}
html[data-theme="light"] .theme-toggle-btn .moon-icon {
  display: block;
}
html[data-theme="light"] .theme-toggle-btn:hover {
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.18);
}

@media (max-width: 900px) {
  .theme-toggle-btn {
    width: 34px;
    height: 34px;
  }
  .theme-toggle-btn svg {
    width: 17px;
    height: 17px;
  }
}

/* --------------------------------------------------------------------------
   3. UNIVERSAL LIGHT MODE ADJUSTMENTS (ALL PAGES)
   -------------------------------------------------------------------------- */
html[data-theme="light"] body {
  background: var(--obsidian);
  color: var(--bone);
}

/* Site Header & Mobile Nav */
html[data-theme="light"] .site-header {
  background: rgba(248, 250, 252, 0.94) !important;
  border-bottom: 1px solid var(--graphite) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@media (max-width: 900px) {
  html[data-theme="light"] .nav-links {
    background: rgba(248, 250, 252, 0.98) !important;
    border-bottom: 1px solid var(--graphite) !important;
    box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.1) !important;
  }
}

/* Brand Logo in Light Mode */
html[data-theme="light"] .brand-logo {
  filter: brightness(0.12) contrast(1.2);
  transition: filter 0.25s ease;
}

/* Nav Submenu / Dropdown */
html[data-theme="light"] .nav-submenu {
  background: #ffffff !important;
  border: 1px solid var(--graphite) !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08) !important;
}
html[data-theme="light"] .nav-submenu a {
  color: var(--mist) !important;
  font-weight: 500;
}
html[data-theme="light"] .nav-submenu a:hover,
html[data-theme="light"] .nav-submenu a:focus-visible {
  background: var(--onyx) !important;
  color: var(--paper) !important;
}

/* Primary and Ghost Pill Buttons (Default in Nav) */
html[data-theme="light"] .nav-actions .pill {
  border-color: var(--bone);
  color: var(--bone);
  font-weight: 600;
}
html[data-theme="light"] .nav-actions .pill:hover,
html[data-theme="light"] .nav-actions .pill:focus-visible {
  background: var(--bone);
  color: #ffffff !important;
}
html[data-theme="light"] .nav-actions .pill.pill-primary,
html[data-theme="light"] .nav-desktop-cta,
html[data-theme="light"] .mobile-menu-cta-btn {
  background: var(--paper) !important;
  color: #ffffff !important;
  border-color: var(--paper) !important;
}
html[data-theme="light"] .nav-actions .pill.pill-primary:hover,
html[data-theme="light"] .nav-desktop-cta:hover,
html[data-theme="light"] .mobile-menu-cta-btn:hover {
  background: var(--accent-bright) !important;
  border-color: var(--accent-bright) !important;
  color: #ffffff !important;
}

/* Nav Hamburger Toggle */
html[data-theme="light"] .nav-toggle {
  color: var(--bone) !important;
}

/* Inputs, Textareas, Selects & Forms */
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
  background: #ffffff !important;
  color: var(--bone) !important;
  border-color: var(--slate) !important;
  font-weight: 500;
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: #94a3b8 !important;
}
html[data-theme="light"] input:focus,
html[data-theme="light"] textarea:focus,
html[data-theme="light"] select:focus {
  border-color: var(--accent-purple) !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15) !important;
}

/* Footer Section */
html[data-theme="light"] footer,
html[data-theme="light"] .site-footer {
  background: var(--onyx) !important;
  border-top: 1px solid var(--graphite) !important;
}
html[data-theme="light"] .footer-title {
  color: var(--paper) !important;
  font-weight: 700;
}
html[data-theme="light"] .footer-copy,
html[data-theme="light"] .footer-links a {
  color: var(--fog) !important;
  font-weight: 500;
}
html[data-theme="light"] .footer-links a:hover {
  color: var(--paper) !important;
}
html[data-theme="light"] .copyright,
html[data-theme="light"] .footer-meta {
  color: var(--ash) !important;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   4. HOMEPAGE SPECIFIC LIGHT OVERRIDES
   -------------------------------------------------------------------------- */
html[data-theme="light"] .answer-block {
  background: #ffffff !important;
  border-left: 3px solid var(--accent-bright) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}
html[data-theme="light"] .card,
html[data-theme="light"] .story-card,
html[data-theme="light"] .price-card,
html[data-theme="light"] .bento-item,
html[data-theme="light"] .step-card {
  background: var(--carbon) !important;
  border-color: var(--graphite) !important;
  box-shadow: var(--theme-shadow-sm) !important;
}
html[data-theme="light"] .card:hover,
html[data-theme="light"] .story-card:hover,
html[data-theme="light"] .bento-item:hover {
  border-color: var(--slate) !important;
  box-shadow: var(--theme-shadow-md) !important;
}

/* --------------------------------------------------------------------------
   5. NEWS & ARTICLE PAGES SPECIFIC LIGHT OVERRIDES (FIX FIGURE 2)
   -------------------------------------------------------------------------- */
html[data-theme="light"] .news-card,
html[data-theme="light"] .featured-card,
html[data-theme="light"] .action-card,
html[data-theme="light"] .article-sidebar-box,
html[data-theme="light"] .author-box {
  background: var(--carbon) !important;
  border: 1px solid var(--graphite) !important;
  box-shadow: var(--theme-shadow-sm) !important;
}
html[data-theme="light"] .news-card:hover,
html[data-theme="light"] .featured-card:hover,
html[data-theme="light"] .action-card:hover {
  border-color: var(--slate) !important;
  box-shadow: var(--theme-shadow-md) !important;
}
html[data-theme="light"] .breadcrumbs a {
  color: var(--fog) !important;
  font-weight: 500;
}
html[data-theme="light"] .breadcrumbs a:hover {
  color: var(--paper) !important;
}
html[data-theme="light"] .breadcrumbs span {
  color: var(--steel) !important;
}
html[data-theme="light"] .article-content {
  color: var(--bone) !important;
}
html[data-theme="light"] .article-content p {
  color: var(--mist) !important;
  line-height: 1.75;
}
html[data-theme="light"] .article-content h2,
html[data-theme="light"] .article-content h3,
html[data-theme="light"] .article-content h4 {
  color: var(--paper) !important;
  font-weight: 700;
}
html[data-theme="light"] .article-content strong {
  color: var(--paper) !important;
  font-weight: 700;
}
html[data-theme="light"] .article-content blockquote {
  background: var(--onyx) !important;
  border-left: 3px solid var(--accent-bright) !important;
  color: var(--mist) !important;
}
html[data-theme="light"] .article-content code {
  background: var(--onyx) !important;
  color: var(--bone) !important;
  border: 1px solid var(--graphite) !important;
}
html[data-theme="light"] .category-badge,
html[data-theme="light"] .edition {
  color: var(--fog) !important;
  font-weight: 600;
}

/* FIX ARTICLE INLINE STYLES (Overrides hardcoded dark colors) */
html[data-theme="light"] .article-content [style*="color:#f8fafc"],
html[data-theme="light"] .article-content [style*="color: #f8fafc"],
html[data-theme="light"] .article-content [style*="color:#e2e8f0"],
html[data-theme="light"] .article-content [style*="color: #e2e8f0"] {
  color: #000000 !important;
}

html[data-theme="light"] .article-content [style*="color:#94a3b8"],
html[data-theme="light"] .article-content [style*="color: #94a3b8"],
html[data-theme="light"] .article-content [style*="color:#cbd5e1"],
html[data-theme="light"] .article-content [style*="color: #cbd5e1"] {
  color: #1e293b !important;
}

html[data-theme="light"] .article-content [style*="background:#111216"],
html[data-theme="light"] .article-content [style*="background: #111216"] {
  background: #ffffff !important;
  border: 1px solid var(--graphite) !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .article-content [style*="background:#1e293b"],
html[data-theme="light"] .article-content [style*="background: #1e293b"] {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* FIX FIGURE 2: NEWS CTA SECTION & BLUE BUTTON ("Dùng thử 7 ngày miễn phí ↗") */
html[data-theme="light"] .news-cta {
  background: #ffffff !important;
  border: 1px solid var(--graphite) !important;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08) !important;
}
html[data-theme="light"] .news-cta h2 {
  color: #000000 !important;
  font-weight: 800 !important;
}
html[data-theme="light"] .news-cta p {
  color: #334155 !important;
  font-weight: 500 !important;
}
html[data-theme="light"] .news-cta .pill,
html[data-theme="light"] .news-cta a.pill {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important; /* Fix chữ đen mờ -> Chữ trắng tinh nổi bật */
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25) !important;
}
html[data-theme="light"] .news-cta .pill:hover,
html[data-theme="light"] .news-cta a.pill:hover {
  background: #0369a1 !important;
  border-color: #0369a1 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* FIX FIGURE 2: FAQ ITEMS IN ARTICLES */
html[data-theme="light"] .faq-item {
  background: #ffffff !important;
  border: 1px solid var(--graphite) !important;
  box-shadow: var(--theme-shadow-sm) !important;
}
html[data-theme="light"] .faq-item h3,
html[data-theme="light"] .faq-item h3[style] {
  color: #000000 !important; /* Fix câu hỏi bị tàng hình do color:#f8fafc */
  font-weight: 700 !important;
}
html[data-theme="light"] .faq-item p,
html[data-theme="light"] .faq-item p[style] {
  color: #1e293b !important; /* Fix câu trả lời bị mờ do color:#94a3b8 */
  font-weight: 500 !important;
  line-height: 1.7 !important;
}

/* --------------------------------------------------------------------------
   6. PARTNER PAGE COMPREHENSIVE LIGHT THEME & CLARITY OPTIMIZATION (FIX FIGURE 1)
   -------------------------------------------------------------------------- */

/* Hero Section */
html[data-theme="light"] .hero-badge {
  background: rgba(2, 132, 199, 0.08) !important;
  border: 1px solid rgba(2, 132, 199, 0.3) !important;
}
html[data-theme="light"] .hero-badge span {
  color: #0369a1 !important;
  font-weight: 700;
}
html[data-theme="light"] .hero-title {
  color: #000000 !important;
  font-weight: 800;
}
html[data-theme="light"] .hero-title .gradient-text {
  background: linear-gradient(120deg, #0284c7, #7c3aed) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 800;
}
html[data-theme="light"] .hero-desc {
  color: #1e293b !important;
  font-weight: 450;
  line-height: 1.7;
}

/* Pillar Cards (4 Trụ Cột Hợp Tác) */
html[data-theme="light"] .pillar-card {
  background: #ffffff !important;
  border: 1px solid var(--graphite) !important;
  box-shadow: var(--theme-shadow-sm) !important;
}
html[data-theme="light"] .pillar-card:hover {
  border-color: #7c3aed !important;
  box-shadow: 0 8px 24px -4px rgba(124, 58, 237, 0.12) !important;
  transform: translateY(-2px);
}
html[data-theme="light"] .pillar-icon {
  background: rgba(124, 58, 237, 0.1) !important;
  border: 1px solid rgba(124, 58, 237, 0.25) !important;
  color: #7c3aed !important;
}
html[data-theme="light"] .pillar-card:hover .pillar-icon {
  background: #7c3aed !important;
  border-color: #7c3aed !important;
  color: #ffffff !important;
}
html[data-theme="light"] .pillar-title {
  color: #0f172a !important;
  font-weight: 700;
}
html[data-theme="light"] .pillar-desc {
  color: #334155 !important;
  font-weight: 450;
  line-height: 1.6;
}

/* Program Cards (3 Chương Trình Đối Tác 30% - 40% - 50%) */
html[data-theme="light"] .program-card {
  background: #ffffff !important;
  border: 1px solid var(--graphite) !important;
  box-shadow: var(--theme-shadow-sm) !important;
}
html[data-theme="light"] .program-card.highlight {
  border: 2px solid #7c3aed !important;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.04), #ffffff 40%) !important;
  box-shadow: 0 10px 30px -4px rgba(124, 58, 237, 0.15) !important;
}
html[data-theme="light"] .program-tag {
  color: #0369a1 !important;
  font-weight: 700;
}
html[data-theme="light"] .program-name {
  color: #000000 !important;
  font-weight: 800;
}
html[data-theme="light"] .program-target {
  color: #334155 !important;
  border-bottom: 1px solid var(--graphite) !important;
  font-weight: 500;
}
html[data-theme="light"] .program-rates {
  background: #f8fafc !important;
  border: 1px solid var(--graphite) !important;
}
html[data-theme="light"] .rate-label {
  color: #475569 !important;
  font-weight: 600;
}
html[data-theme="light"] .rate-val {
  color: #0284c7 !important;
  font-weight: 800;
}
html[data-theme="light"] .program-card.highlight .rate-val {
  color: #6b21a8 !important;
  font-weight: 800;
}
html[data-theme="light"] .rate-sublabel {
  color: #64748b !important;
  font-weight: 600;
}
html[data-theme="light"] .rate-val-sub {
  color: #0369a1 !important;
  font-weight: 700;
}
html[data-theme="light"] .program-card.highlight .rate-val-sub {
  color: #7c3aed !important;
  font-weight: 700;
}
html[data-theme="light"] .program-features li {
  color: #0f172a !important;
  font-weight: 500;
}
html[data-theme="light"] .program-features li::before {
  color: #0284c7 !important;
  font-weight: 800;
}
html[data-theme="light"] .program-card.highlight .program-features li::before {
  color: #7c3aed !important;
  font-weight: 800;
}

/* Commission Policy Table (Bảng Hoa Hồng) */
html[data-theme="light"] .table-container {
  background: #ffffff !important;
  border: 1px solid var(--graphite) !important;
  box-shadow: var(--theme-shadow-sm) !important;
}
html[data-theme="light"] .table-subheading {
  color: #000000 !important;
  font-weight: 800;
}
html[data-theme="light"] .table-desc {
  color: #334155 !important;
  font-weight: 500;
}
html[data-theme="light"] .table-responsive {
  border: 1px solid var(--graphite) !important;
}
html[data-theme="light"] .comm-table {
  background: #ffffff !important;
}
html[data-theme="light"] .comm-table th {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-bottom: 2px solid var(--graphite) !important;
  font-weight: 700;
}
html[data-theme="light"] .comm-table td {
  background: #ffffff !important;
  color: #1e293b !important;
  border-bottom: 1px solid var(--graphite) !important;
  font-weight: 500;
}
html[data-theme="light"] .comm-table tr:hover td {
  background: #f8fafc !important;
}
html[data-theme="light"] .comm-highlight-purple {
  color: #6b21a8 !important;
  font-weight: 700;
}
html[data-theme="light"] .comm-highlight-cyan {
  color: #0369a1 !important;
  font-weight: 700;
}
html[data-theme="light"] .comm-tag-green {
  background: rgba(22, 163, 74, 0.12) !important;
  color: #15803d !important;
  border: 1px solid rgba(22, 163, 74, 0.3) !important;
  font-weight: 700;
}
html[data-theme="light"] .comm-tag-purple {
  background: rgba(124, 58, 237, 0.12) !important;
  color: #6b21a8 !important;
  border: 1px solid rgba(124, 58, 237, 0.3) !important;
  font-weight: 700;
}

/* White-label Section Callout */
html[data-theme="light"] .whitelabel-box {
  background: #ffffff !important;
  border: 1px solid var(--graphite) !important;
  box-shadow: var(--theme-shadow-sm) !important;
}
html[data-theme="light"] .whitelabel-header h4 {
  color: #000000 !important;
  font-weight: 800;
}
html[data-theme="light"] .whitelabel-header p {
  color: #334155 !important;
  font-weight: 500;
}
html[data-theme="light"] .whitelabel-card {
  background: #f8fafc !important;
  border: 1px solid var(--graphite) !important;
}
html[data-theme="light"] .whitelabel-card h5 {
  color: #0369a1 !important;
  font-weight: 700;
}
html[data-theme="light"] .whitelabel-card p {
  color: #334155 !important;
  font-weight: 500;
}

/* FIX FIGURE 1: INTERACTIVE COMMISSION CALCULATOR FULL OVERRIDE */
html[data-theme="light"] .calc-wrapper,
html[data-theme="light"] #cong-cu-tinh-hoa-hong {
  background: #ffffff !important; /* Xóa hẳn nền đen #0c0d11 */
  border: 1px solid var(--graphite) !important;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.08) !important;
}
html[data-theme="light"] .calc-header .eyebrow {
  color: #0284c7 !important;
  font-weight: 800 !important;
}
html[data-theme="light"] .calc-title {
  color: #000000 !important; /* Xóa chữ đen mờ trên nền đen -> Chữ đen tuyền nổi bật */
  font-weight: 800 !important;
}
html[data-theme="light"] .calc-subtitle {
  color: #334155 !important;
  font-weight: 500 !important;
}
html[data-theme="light"] .calc-tabs {
  background: #f1f5f9 !important;
  border: 1px solid var(--graphite) !important;
}
html[data-theme="light"] .calc-tab-btn {
  color: #475569 !important;
  font-weight: 600;
}
html[data-theme="light"] .calc-tab-btn .tab-role-name {
  color: #0f172a !important;
  font-weight: 700;
}
html[data-theme="light"] .calc-tab-btn .tab-role-tag {
  color: #64748b !important;
  font-weight: 500;
}
html[data-theme="light"] .calc-tab-btn:hover {
  background: #e2e8f0 !important;
}
html[data-theme="light"] .calc-tab-btn.active#tab-affiliate {
  background: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: var(--theme-shadow-sm) !important;
}
html[data-theme="light"] .calc-tab-btn.active#tab-affiliate .tab-role-name {
  color: #0284c7 !important;
}
html[data-theme="light"] .calc-tab-btn.active#tab-consultant {
  background: #ffffff !important;
  border-color: #7c3aed !important;
  box-shadow: var(--theme-shadow-sm) !important;
}
html[data-theme="light"] .calc-tab-btn.active#tab-consultant .tab-role-name {
  color: #7c3aed !important;
}

/* Calculator Controls (Cột trái) */
html[data-theme="light"] .calc-card {
  background: #ffffff !important;
  border: 1px solid var(--graphite) !important;
  box-shadow: var(--theme-shadow-sm) !important;
}
html[data-theme="light"] .calc-control-group label {
  color: #0f172a !important;
  font-weight: 700;
}
html[data-theme="light"] .slider-desc {
  color: #475569 !important;
  font-weight: 500;
}
html[data-theme="light"] .range-labels {
  color: #64748b !important;
  font-weight: 600;
}
html[data-theme="light"] .calc-range {
  background: #cbd5e1 !important;
}
html[data-theme="light"] .calc-sub-slider {
  background: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
}
html[data-theme="light"] .calc-chip {
  background: #f1f5f9 !important;
  border: 1px solid var(--graphite) !important;
  color: #0f172a !important;
  font-weight: 600;
}
html[data-theme="light"] .calc-chip:hover {
  background: #e2e8f0 !important;
}

/* FIX FIGURE 1: SUMMARY CARD & TOTAL AMOUNT (Số tiền 34.743.500 đ) */
html[data-theme="light"] .calc-summary-card {
  background: #ffffff !important; /* Xóa gradient đen #171821 */
  border: 1px solid var(--graphite) !important;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.08) !important;
}
html[data-theme="light"] .summary-badge {
  background: rgba(2, 132, 199, 0.1) !important;
  color: #0369a1 !important;
  border: 1px solid rgba(2, 132, 199, 0.25) !important;
  font-weight: 800 !important;
}
html[data-theme="light"] .summary-total-label {
  color: #0f172a !important;
  font-weight: 700 !important;
}
html[data-theme="light"] .summary-total-amount,
html[data-theme="light"] .calc-summary-card .summary-total-amount {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  color: #0284c7 !important; /* Fix số tiền tàng hình trắng -> Màu xanh Sky Blue công nghệ cực đậm rõ */
  font-weight: 900 !important;
  font-size: clamp(28px, 2.5vw, 36px) !important;
}
html[data-theme="light"] .summary-payout-info {
  color: #15803d !important;
  font-weight: 600 !important;
}

/* Summary Breakdown Cards (Mục 1 & 2 bên dưới số tiền) */
html[data-theme="light"] .breakdown-card {
  background: #f8fafc !important;
  border: 1px solid var(--graphite) !important;
}
html[data-theme="light"] .breakdown-label {
  color: #0f172a !important;
  font-weight: 700 !important;
}
html[data-theme="light"] .breakdown-val {
  color: #0f172a !important;
  font-weight: 800 !important;
}
html[data-theme="light"] .breakdown-meta {
  color: #334155 !important;
  font-weight: 500 !important;
}
html[data-theme="light"] .breakdown-meta strong {
  color: #000000 !important;
  font-weight: 700 !important;
}
html[data-theme="light"] .breakdown-badge {
  background: rgba(2, 132, 199, 0.12) !important;
  color: #0369a1 !important;
  font-weight: 700 !important;
}
html[data-theme="light"] .breakdown-badge-accent {
  background: rgba(124, 58, 237, 0.12) !important;
  color: #6b21a8 !important;
  font-weight: 700 !important;
}
html[data-theme="light"] .summary-perks {
  background: #f8fafc !important;
  border: 1px solid var(--graphite) !important;
  color: #1e293b !important;
  font-weight: 500;
}

/* Ecosystem Section (.eco-card) */
html[data-theme="light"] .ecosystem-section {
  background: #f1f5f9 !important;
  border-block: 1px solid var(--graphite) !important;
}
html[data-theme="light"] .eco-card {
  background: #ffffff !important;
  border: 1px solid var(--graphite) !important;
  box-shadow: var(--theme-shadow-sm) !important;
}
html[data-theme="light"] .eco-card:hover {
  border-color: var(--slate) !important;
  box-shadow: var(--theme-shadow-md) !important;
}
html[data-theme="light"] .eco-card h3 {
  color: #0f172a !important;
  font-weight: 700;
}
html[data-theme="light"] .eco-card .eco-type {
  color: #0284c7 !important;
  font-weight: 700;
}
html[data-theme="light"] .eco-card p {
  color: #334155 !important;
  font-weight: 500;
}
html[data-theme="light"] .eco-badge {
  background: #f1f5f9 !important;
  border: 1px solid var(--slate) !important;
  color: #0f172a !important;
  font-weight: 600;
}

/* Step Cards (.step-card) */
html[data-theme="light"] .step-card {
  background: #ffffff !important;
  border: 1px solid var(--graphite) !important;
  box-shadow: var(--theme-shadow-sm) !important;
}
html[data-theme="light"] .step-num {
  color: #94a3b8 !important;
  font-weight: 800;
}
html[data-theme="light"] .step-card h3 {
  color: #0f172a !important;
  font-weight: 700;
}
html[data-theme="light"] .step-card p {
  color: #334155 !important;
  font-weight: 500;
}

/* Choice Cards (Form Selection Cards) */
html[data-theme="light"] .choice-card {
  background: #ffffff !important;
  border: 1.5px solid var(--slate) !important;
  box-shadow: var(--theme-shadow-sm) !important;
}
html[data-theme="light"] .choice-card:hover {
  border-color: #7c3aed !important;
  background: #faf5ff !important;
}
html[data-theme="light"] .choice-card.active {
  border-color: #7c3aed !important;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(2, 132, 199, 0.04)) !important;
  box-shadow: 0 4px 16px -2px rgba(124, 58, 237, 0.15) !important;
}
html[data-theme="light"] .choice-title {
  color: #0f172a !important;
  font-weight: 700;
}
html[data-theme="light"] .choice-desc {
  color: #334155 !important;
  font-weight: 500;
}
html[data-theme="light"] .choice-card.active .choice-desc {
  color: #0f172a !important;
  font-weight: 600;
}
html[data-theme="light"] .choice-badge {
  background: rgba(124, 58, 237, 0.12) !important;
  color: #6b21a8 !important;
  border: 1px solid rgba(124, 58, 237, 0.3) !important;
  font-weight: 700;
}
html[data-theme="light"] .choice-badge-sub {
  background: rgba(2, 132, 199, 0.12) !important;
  color: #0369a1 !important;
  border: 1px solid rgba(2, 132, 199, 0.3) !important;
  font-weight: 700;
}
html[data-theme="light"] .choice-check-icon {
  border-color: #94a3b8 !important;
}
html[data-theme="light"] .choice-card.active .choice-check-icon {
  background: #7c3aed !important;
  border-color: #7c3aed !important;
  color: #ffffff !important;
}

/* Form Wrapper & Inputs */
html[data-theme="light"] .form-wrapper {
  background: #ffffff !important;
  border: 1px solid var(--graphite) !important;
  box-shadow: var(--theme-shadow-md) !important;
}
html[data-theme="light"] .form-wrapper h2 {
  color: #000000 !important;
  font-weight: 800;
}
html[data-theme="light"] .form-wrapper .form-desc {
  color: #334155 !important;
  font-weight: 500;
}
html[data-theme="light"] .field label {
  color: #0f172a !important;
  font-weight: 700;
}
html[data-theme="light"] .consent-field label {
  color: #334155 !important;
  font-weight: 500;
}
html[data-theme="light"] .form-submit-btn {
  background: linear-gradient(135deg, #1d4ed8, #7c3aed) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25) !important;
}
html[data-theme="light"] .form-submit-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* FAQ Items */
html[data-theme="light"] .faq-item details summary {
  color: #0f172a !important;
  font-weight: 700;
}
html[data-theme="light"] .faq-item details summary::after {
  color: #64748b !important;
}
html[data-theme="light"] .faq-item details[open] summary::after {
  color: #7c3aed !important;
}
html[data-theme="light"] .faq-answer {
  color: #334155 !important;
  border-top: 1px solid var(--graphite) !important;
  font-weight: 500;
  line-height: 1.7;
}


/* ==========================================================================
   UNIVERSAL LIGHT THEME ARTICLE CLARITY & ACCESSIBILITY FIX (ALL DEVICES)
   ========================================================================== */
html[data-theme="light"] .article-content {
  color: #1e293b !important;
}

html[data-theme="light"] .article-content p {
  color: #1e293b !important;
}

html[data-theme="light"] .article-content h1,
html[data-theme="light"] .article-content h2,
html[data-theme="light"] .article-content h3,
html[data-theme="light"] .article-content h4 {
  color: #0f172a !important;
}

html[data-theme="light"] .faq-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 18px 20px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .faq-item h3,
html[data-theme="light"] .faq-item h4 {
  color: #0f172a !important;
  font-weight: 700 !important;
  margin-top: 0 !important;
}

html[data-theme="light"] .faq-item p {
  color: #334155 !important;
  line-height: 1.7 !important;
  margin-bottom: 0 !important;
}

/* Fix any inline dark backgrounds in light mode */
html[data-theme="light"] .article-content [style*="background:#111827"],
html[data-theme="light"] .article-content [style*="background: #111827"],
html[data-theme="light"] .article-content [style*="background:#131722"],
html[data-theme="light"] .article-content [style*="background: #131722"],
html[data-theme="light"] .article-content [style*="background:#0f172a"],
html[data-theme="light"] .article-content [style*="background: #0f172a"] {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .article-content [style*="background:#111827"] h3,
html[data-theme="light"] .article-content [style*="background:#111827"] h4,
html[data-theme="light"] .article-content [style*="background:#131722"] strong {
  color: #0f172a !important;
}

html[data-theme="light"] .article-content [style*="background:#111827"] p,
html[data-theme="light"] .article-content [style*="background:#131722"] li {
  color: #334155 !important;
}

/* Fix AEO Box in Light Mode */
html[data-theme="light"] .aeo-answer-box {
  background: #f0f9ff !important;
  border-left: 4px solid #0284c7 !important;
  border-top: 1px solid #e0f2fe !important;
  border-right: 1px solid #e0f2fe !important;
  border-bottom: 1px solid #e0f2fe !important;
}

html[data-theme="light"] .aeo-answer-box span {
  color: #0284c7 !important;
}

html[data-theme="light"] .aeo-answer-box p {
  color: #0f172a !important;
  font-weight: 500 !important;
}

/* Fix Table in Light Mode */
html[data-theme="light"] .comm-table,
html[data-theme="light"] .article-content table {
  background: #ffffff !important;
  color: #1e293b !important;
  border-collapse: collapse !important;
}

html[data-theme="light"] .comm-table th,
html[data-theme="light"] .article-content table th {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .comm-table td,
html[data-theme="light"] .article-content table td {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
}

/* Final Banner in Light Mode */
html[data-theme="light"] .final-cta-banner {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  color: #ffffff !important;
}

html[data-theme="light"] .final-cta-banner h3,
html[data-theme="light"] .final-cta-banner [style*="color:#fff"],
html[data-theme="light"] .final-cta-banner [style*="color: #fff"] {
  color: #ffffff !important;
}

html[data-theme="light"] .final-cta-banner p,
html[data-theme="light"] .final-cta-banner [style*="color:#e0f2fe"],
html[data-theme="light"] .final-cta-banner [style*="color: #e0f2fe"],
html[data-theme="light"] .final-cta-banner [style*="color:#bae6fd"],
html[data-theme="light"] .final-cta-banner [style*="color: #bae6fd"] {
  color: #f0f9ff !important;
}

html[data-theme="light"] .final-cta-banner a {
  background: #ffffff !important;
  color: #0284c7 !important;
  font-weight: 800 !important;
}
