/* ==========================================================================
   PLAYRADARX — THEME SWITCHER (LIGHT / DARK) STYLES
   Aesthetic: 
   - Dark Mode: Ultra-Deep Obsidian Gaming Theme
   - Light Mode: Eye-Comfort Soft Platinum / Slate Gaming Theme (Chống chói mắt)
   ========================================================================== */

/* ── 0. CÁC LỚP TIỆN ÍCH DÙNG CHUNG CẢ DARK & LIGHT MODE ────────────────── */
.games-filter-toolbar {
  background: rgba(15, 18, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.games-search-input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #fff;
  outline: none;
  box-sizing: border-box;
}

.games-search-input:focus {
  border-color: var(--color-primary);
  background: rgba(0, 0, 0, 0.45);
}

.games-filter-label {
  font-size: 12px;
  color: #A1A1B5;
  margin-right: 4px;
}

.btn-game-active {
background: var(--color-primary) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: 1px solid var(--color-primary) !important;
}

.btn-game-normal {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  font-weight: 500 !important;
}

.btn-game-normal:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border-color: var(--color-primary) !important;
}

/* Lớp tiện ích trang liên hệ (Dark Mode mặc định) */
.contact-glass-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

.contact-card-title {
  color: #ffffff;
}

.contact-card-desc {
  color: #A1A1B5;
}

.contact-form-label {
  color: #ffffff;
}

.contact-form-input {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.contact-form-input.readonly-input {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
}

.contact-auth-badge {
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.contact-auth-user {
  color: #ffffff;
}

.contact-auth-email {
  color: #A1A1B5;
}

.contact-login-required {
  background: rgba(139, 25, 255, 0.04);
  border: 1px dashed rgba(139, 25, 255, 0.35);
}

.contact-login-title {
  color: #ffffff;
}

.contact-login-desc {
  color: #A1A1B5;
}

.contact-login-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #A1A1B5;
}

.btn-contact-register {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.ad-note-title {
  color: #ffffff;
}

.ad-note-desc {
  color: #A1A1B5;
}

.ad-policy-title {
  color: #ffffff;
}

.ad-policy-desc {
  color: #A1A1B5;
}

/* ── 1. NÚT CHUYỂN ĐỔI THEME TRẮNG / ĐEN (LIGHT / DARK) ─────────────────── */
.btn-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #141722;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--color-primary);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.22s ease;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn-theme-toggle:hover {
  background: #1e2330;
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 25, 255, 0.2);
}

.btn-theme-toggle .theme-icon-light {
  display: none;
}

.btn-theme-toggle .theme-icon-dark {
  display: inline-block;
}

/* Khi đang ở Light Theme (Chế độ Sáng — Dịu Mắt) */
html[data-theme="light"] .btn-theme-toggle .theme-icon-dark {
  display: none;
}

html[data-theme="light"] .btn-theme-toggle .theme-icon-light {
  display: inline-block;
  color: var(--color-primary-dark);
}

/* ── 2. BỘ TOKEN MÀU SÁNG DỊU MẮT (EYE-COMFORT SOFT PLATINUM) ───────────── */
html[data-theme="light"] {
  /* Nền trang chuyển sang tone xám dịu mắt #e6e9ee (tránh trắng toát gây lóa mắt) */
  --color-bg: #e6e9ee;
  --color-bg2: #ffffff;
  --color-bg3: #dfe3ea;
  --color-surface: #ffffff;
  --color-surface2: #f4f6fa;
  --color-border: #cbd5e1;
  --color-text: #1e293b;
  --color-text-dim: #64748b;
  --color-text-bright: #0f172a;
  --color-white: #0f172a;
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f1f5f9;
  --bg: #e6e9ee;
  --nc: #1e293b;
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 8px 26px rgba(15, 23, 42, 0.09);

  /* Bộ biến modern.css (--mx-*) chống chói */
  --mx-bg-base: #e6e9ee;
  --mx-bg-elevated: #ffffff;
  --mx-bg-surface: #ffffff;
  --mx-bg-card: #ffffff;
  --mx-bg-glass: rgba(255, 255, 255, 0.94);
  --mx-border-subtle: #cbd5e1;
  --mx-border-glow: rgba(2, 132, 199, 0.3);
  --mx-border-vip: rgba(139, 25, 255, 0.6);
  --mx-text-primary: #0f172a;
  --mx-text-secondary: #334155;
  --mx-text-muted: #64748b;
  --mx-text-gold: #b45309;
  --mx-shadow-card: 0 2px 10px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
  --mx-shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.09), 0 0 14px rgba(139, 25, 255, 0.2);
  --mx-shadow-vip: 0 6px 20px rgba(139, 25, 255, 0.18);
}

/* ── 3. BODY & KHẮC PHỤC CHÓI LÓA ────────────────────────────────────────── */
html[data-theme="light"] body {
  background-color: #e6e9ee !important;
  background-image: none !important;
  color: #1e293b !important;
}

html[data-theme="light"] body::before,
html[data-theme="light"] body::after {
  display: none !important;
}

html[data-theme="light"] #seasonalBodyBgStyle {
  display: none !important;
}

/* ── 4. TOPBAR & THANH MARQUEE ──────────────────────────────────────────── */
html[data-theme="light"] .topbar {
  background: #dfe4ec !important;
  border-bottom: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

html[data-theme="light"] .topbar span,
html[data-theme="light"] .topbar .marquee-content span,
html[data-theme="light"] .topbar-right a {
  color: #334155 !important;
}

html[data-theme="light"] .topbar-right a:hover {
  color: var(--color-primary-dark) !important;
}

html[data-theme="light"] .marquee-bar {
  background: linear-gradient(90deg, #dfe4ec 0%, #edf1f7 50%, #dfe4ec 100%) !important;
}

/* ── 5. SITE HEADER, LOGO, NAV, SEARCH & USER DROPDOWNS ─────────────────── */
html[data-theme="light"] .site-header {
  background: #ffffff !important;
  border-bottom: 2px solid var(--color-primary) !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .site-header::after {
  display: none !important;
}

html[data-theme="light"] .logo-main,
html[data-theme="light"] .site-header .logo h1,
html[data-theme="light"] .site-header .logo .logo-title {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #334155 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #0f172a !important;
  text-shadow: none !important;
}

html[data-theme="light"] .logo-sub {
  color: #475569 !important;
}

html[data-theme="light"] .nav-link {
  color: #1e293b !important;
  font-weight: 600 !important;
}

html[data-theme="light"] .nav-link:hover {
  color: var(--color-primary-dark) !important;
  background: rgba(139, 25, 255, 0.1) !important;
}

html[data-theme="light"] .nav-link.active {
  color: var(--color-primary-dark) !important;
  background: rgba(139, 25, 255, 0.15) !important;
}

html[data-theme="light"] .btn-header-lang,
html[data-theme="light"] .btn-theme-toggle {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

html[data-theme="light"] .btn-header-lang:hover,
html[data-theme="light"] .btn-theme-toggle:hover {
  background: #e2e8f0 !important;
  border-color: var(--color-primary) !important;
  color: var(--color-primary-dark) !important;
}

html[data-theme="light"] .header-lang-menu {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12) !important;
}

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

html[data-theme="light"] .lang-item:hover,
html[data-theme="light"] .lang-item.active {
  background: #f1f5f9 !important;
  color: var(--color-primary-dark) !important;
}

html[data-theme="light"] .site-header .user-profile-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html[data-theme="light"] .site-header .user-profile-btn i {
  color: #334155 !important;
}

html[data-theme="light"] .site-header .user-dropdown-wrap.open .user-profile-btn {
  background: #e2e8f0 !important;
  border-color: var(--color-primary) !important;
  color: var(--color-primary-dark) !important;
}

html[data-theme="light"] .user-dropdown-menu {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .user-dropdown-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .site-header .user-dd-name {
  color: #0f172a !important;
}

html[data-theme="light"] .site-header .user-dd-role {
  color: #64748b !important;
}

html[data-theme="light"] .user-dd-item {
  color: #1e293b !important;
}

html[data-theme="light"] .user-dd-item:hover,
html[data-theme="light"] .site-header .user-dd-item:hover {
  background: #f1f5f9 !important;
  color: var(--color-primary-dark) !important;
}

html[data-theme="light"] .user-dropdown-footer,
html[data-theme="light"] .site-header .user-dropdown-footer {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .header-search-form {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

html[data-theme="light"] .header-search-form:focus-within {
  background: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.18) !important;
}

html[data-theme="light"] #headerSearchInput {
  color: #0f172a !important;
}

html[data-theme="light"] #headerSearchInput::placeholder {
  color: #64748b !important;
}

html[data-theme="light"] .header-search-dropdown {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] .header-search-dropdown a {
  color: #1e293b !important;
}

html[data-theme="light"] .header-search-dropdown a:hover {
  background: #f1f5f9 !important;
  color: var(--color-primary-dark) !important;
}

html[data-theme="light"] .nav-list {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
}

html[data-theme="light"] .nav-item.mobile-only-auth {
  border-top-color: #e2e8f0 !important;
}

html[data-theme="light"] .nav-item.mobile-only-auth button {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

/* ── 6. HERO BANNER & BREADCRUMBS ───────────────────────────────────────── */
html[data-theme="light"] .hero-banner {
  background: linear-gradient(135deg, #e2e8f0 0%, #edf2f7 50%, #e2e8f0 100%) !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .hero-slide {
  background: transparent !important;
}

html[data-theme="light"] .hero-bg-wrap {
  opacity: 0.28 !important;
}

html[data-theme="light"] .hero-slide-bg-blur {
  filter: blur(28px) brightness(1.15) !important;
}

html[data-theme="light"] .hero-overlay {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.4) 0%, rgba(241, 245, 249, 0.88) 60%, #e6e9ee 100%) !important;
}

html[data-theme="light"] .hero-badge {
  background: #ffffff !important;
  border: 1px solid #bae6fd !important;
  color: #0369a1 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15) !important;
}

html[data-theme="light"] .hero-content h1,
html[data-theme="light"] .hero-content h2 {
  color: #0f172a !important;
  text-shadow: none !important;
}

html[data-theme="light"] .hero-content p {
  color: #334155 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .btn-hero-secondary {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .btn-hero-secondary:hover {
  background: #f8fafc !important;
  border-color: var(--color-primary) !important;
  color: var(--color-primary-dark) !important;
}

html[data-theme="light"] .hero-prev,
html[data-theme="light"] .hero-next {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .hero-prev:hover,
html[data-theme="light"] .hero-next:hover {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #ffffff !important;
}

html[data-theme="light"] .hero-dots .hero-dot {
  background: #cbd5e1 !important;
}

html[data-theme="light"] .hero-dots .hero-dot.active {
  background: var(--color-primary) !important;
}

html[data-theme="light"] .page-hero {
  background: linear-gradient(135deg, #ffffff 0%, #eef2f6 100%) !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .page-hero.category-hero-dynamic {
  background: linear-gradient(135deg, #ffffff 0%, #eef2f6 100%) !important;
}

html[data-theme="light"] .page-hero-content h1 {
  color: #0f172a !important;
  text-shadow: none !important;
}

html[data-theme="light"] .page-hero-content p {
  color: #334155 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .page-hero-icon {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .page-hero-meta span {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

html[data-theme="light"] .breadcrumb {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04) !important;
}

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

html[data-theme="light"] .breadcrumb .sep {
  color: #A1A1B5 !important;
}

html[data-theme="light"] .section-header {
  border-bottom: 2px solid #cbd5e1 !important;
}

html[data-theme="light"] .section-header h2 {
  color: #0f172a !important;
  text-shadow: none !important;
}

/* ── 7. DANH MỤC GAME, TỰA GAME & THẺ SEARCH BAR TRANG /TUA-GAME ───────── */
/* Xóa bỏ khối đen xì tại trang /tua-game (Ảnh 1) */
html[data-theme="light"] .games-filter-toolbar,
html[data-theme="light"] .main-col>div[style*="rgba(15,18,28,0.6)"],
html[data-theme="light"] div[style*="background:rgba(15,18,28,0.6)"],
html[data-theme="light"] .category-filter-bar,
html[data-theme="light"] .tua-game-toolbar {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .games-search-input,
html[data-theme="light"] input.games-search-input,
html[data-theme="light"] .games-filter-toolbar input,
html[data-theme="light"] .games-filter-toolbar input[name="q"],
html[data-theme="light"] form[action="/games"] input[name="q"],
html[data-theme="light"] form[action="/tua-game"] input[name="q"],
html[data-theme="light"] .main-col input[name="q"] {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

html[data-theme="light"] .games-search-input:focus,
html[data-theme="light"] input.games-search-input:focus,
html[data-theme="light"] .games-filter-toolbar input:focus,
html[data-theme="light"] .games-filter-toolbar input[name="q"]:focus,
html[data-theme="light"] form[action="/tua-game"] input[name="q"]:focus {
  background: #ffffff !important;
  border-color: #0284c7 !important;
  color: #0f172a !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

html[data-theme="light"] .games-search-input::placeholder,
html[data-theme="light"] input.games-search-input::placeholder,
html[data-theme="light"] .games-filter-toolbar input::placeholder,
html[data-theme="light"] form[action="/games"] input[name="q"]::placeholder,
html[data-theme="light"] form[action="/tua-game"] input[name="q"]::placeholder {
  color: #64748b !important;
}

html[data-theme="light"] .games-filter-label {
  color: #334155 !important;
}

html[data-theme="light"] .btn-game-normal,
html[data-theme="light"] a[style*="background:rgba(255,255,255,0.08)"] {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

html[data-theme="light"] .btn-game-normal:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #A1A1B5 !important;
}

html[data-theme="light"] .btn-game-active {
background: var(--color-primary) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .cat-card,
html[data-theme="light"] .game-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .cat-card:hover,
html[data-theme="light"] .game-card:hover {
  border-color: var(--color-primary) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
  transform: translateY(-2px) !important;
}

html[data-theme="light"] .cat-icon {
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
  color: var(--color-primary-dark) !important;
}

html[data-theme="light"] .cat-info h3,
html[data-theme="light"] .game-card-name {
  color: #0f172a !important;
}

html[data-theme="light"] .cat-info p,
html[data-theme="light"] .game-card-genre,
html[data-theme="light"] .game-card-count {
  color: #334155 !important;
}

html[data-theme="light"] .cat-arrow {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: var(--color-primary-dark) !important;
}

html[data-theme="light"] .game-group-container {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .game-card-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .game-title,
html[data-theme="light"] .game-title a {
  color: #0f172a !important;
}

html[data-theme="light"] .game-title a:hover {
  color: var(--color-primary-dark) !important;
}

html[data-theme="light"] .game-server-count {
  color: var(--color-primary-dark) !important;
}

html[data-theme="light"] .game-card-desc {
  background: #f8fafc !important;
  color: #334155 !important;
  border-top: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .btn-game {
  background: #fffbeb !important;
  border: 1px solid #fde68a !important;
  color: #b45309 !important;
}

html[data-theme="light"] .btn-game:hover {
  background: #8B19FF !important;
  color: #ffffff !important;
  border-color: #8B19FF !important;
}

/* ── 8. THẺ MÁY CHỦ VIP & MÁY CHỦ THƯỜNG ─────────────────────────────────── */
html[data-theme="light"] .vip-servers-section {
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%) !important;
  border: 1.5px solid #fcd34d !important;
  box-shadow: 0 4px 16px rgba(139, 25, 255, 0.1) !important;
}

html[data-theme="light"] .vip-heading {
  color: #b45309 !important;
  text-shadow: none !important;
}

html[data-theme="light"] .vip-subtext {
  color: #475569 !important;
}

html[data-theme="light"] .vip-server-card {
  background: #ffffff !important;
  border: 1.5px solid #fcd34d !important;
  box-shadow: 0 2px 8px rgba(139, 25, 255, 0.1) !important;
}

html[data-theme="light"] .vip-server-card:hover {
  border-color: var(--color-primary) !important;
  box-shadow: 0 6px 18px rgba(139, 25, 255, 0.22) !important;
}

html[data-theme="light"] .vip-card-header {
  background: #fffbeb !important;
  border-bottom: 1px solid #fef3c7 !important;
}

html[data-theme="light"] .vip-server-title a {
  color: #0f172a !important;
}

html[data-theme="light"] .vip-server-title a:hover {
  color: var(--color-primary-dark) !important;
}

html[data-theme="light"] .vip-card-desc {
  background: #f8fafc !important;
  color: #334155 !important;
}

html[data-theme="light"] .normal-servers-section {
  border-top: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .normal-server-card,
html[data-theme="light"] .server-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .normal-server-card:hover,
html[data-theme="light"] .server-card:hover {
  border-color: #A1A1B5 !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08) !important;
  transform: translateY(-1px) !important;
}

html[data-theme="light"] .normal-card-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .normal-server-title a {
  color: #0f172a !important;
}

html[data-theme="light"] .normal-server-title a:hover {
  color: #0284c7 !important;
}

html[data-theme="light"] .normal-author {
  color: #0369a1 !important;
  background: #e0f2fe !important;
}

html[data-theme="light"] .btn-normal-view {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

html[data-theme="light"] .btn-normal-view:hover {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
}

html[data-theme="light"] .normal-card-desc {
  background: #f8fafc !important;
  color: #334155 !important;
}

html[data-theme="light"] .normal-title-wrap h3 {
  color: #0f172a !important;
}

html[data-theme="light"] .normal-count-badge {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .server-detail-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .server-card-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .sdc-title {
  color: #0f172a !important;
}

html[data-theme="light"] .sdc-hashtags-section {
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .sdc-hashtags-section>span {
  color: #334155 !important;
}

html[data-theme="light"] .sdc-actions {
  border-top: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .sdc-info-item {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .sdc-info-label {
  color: #475569 !important;
}

html[data-theme="light"] .sdc-info-value {
  color: #0f172a !important;
}

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

/* ── 9. SIDEBAR WIDGETS & QUẢNG CÁO SIDEBAR (ẢNH 1, 2, 4) ───────────────── */
html[data-theme="light"] .sidebar .widget,
html[data-theme="light"] .widget-ad,
html[data-theme="light"] .widget-top {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
  color: #1e293b !important;
}

html[data-theme="light"] .sidebar .widget-title,
html[data-theme="light"] .widget-title {
  color: #0f172a !important;
  border-bottom: 2px solid var(--color-primary) !important;
  background: transparent !important;
}

html[data-theme="light"] .ad-placeholder-sidebar {
  background: #f8fafc !important;
  border: 1.5px dashed #cbd5e1 !important;
  border-radius: 8px !important;
  color: #334155 !important;
}

html[data-theme="light"] .ad-placeholder-sidebar h4 {
  color: #0f172a !important;
}

html[data-theme="light"] .ad-placeholder-sidebar p {
  color: #475569 !important;
}

html[data-theme="light"] .ad-placeholder-sidebar span[style*="var(--color-primary)"],
html[data-theme="light"] .ad-placeholder-sidebar div[style*="var(--color-primary)"] {
  color: var(--color-primary-dark) !important;
}

html[data-theme="light"] .top-server-list li {
  border-bottom: 1px solid #f1f5f9 !important;
}

html[data-theme="light"] .top-server-list li:hover {
  background: #f8fafc !important;
}

html[data-theme="light"] .top-server-info a {
  color: #0f172a !important;
}

html[data-theme="light"] .top-server-info a:hover {
  color: var(--color-primary-dark) !important;
}

html[data-theme="light"] .top-server-game {
  color: #475569 !important;
}

/* ── 10. TRANG TIN TỨC: SPOTLIGHT & DANH SÁCH LIST/GRID (ẢNH 2) ─────────── */
/* Xóa bỏ khối đen xì tại danh sách tin tức (Ảnh 2) */
html[data-theme="light"] .news-list-card,
html[data-theme="light"] .news-list .news-list-card,
html[data-theme="light"] .news-list.view-list .news-list-card,
html[data-theme="light"] .news-list.view-grid .news-list-card,
html[data-theme="light"] .news-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .news-list-card:hover,
html[data-theme="light"] .news-list .news-list-card:hover,
html[data-theme="light"] .news-list.view-list .news-list-card:hover,
html[data-theme="light"] .news-list.view-grid .news-list-card:hover,
html[data-theme="light"] .news-card:hover {
  border-color: var(--color-primary) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .news-list-thumb {
  background: #e2e8f0 !important;
}

html[data-theme="light"] .news-list-thumb .news-thumb-placeholder {
  background: #f1f5f9 !important;
  color: #A1A1B5 !important;
}

html[data-theme="light"] .news-body h3 a,
html[data-theme="light"] .news-mini-body h4 a,
html[data-theme="light"] .news-list-title a,
html[data-theme="light"] .news-featured-title,
html[data-theme="light"] .news-featured-title a {
  color: #0f172a !important;
}

html[data-theme="light"] .news-body h3 a:hover,
html[data-theme="light"] .news-mini-body h4 a:hover,
html[data-theme="light"] .news-list-title a:hover,
html[data-theme="light"] .news-featured-title a:hover {
  color: var(--color-primary-dark) !important;
}

html[data-theme="light"] .news-excerpt,
html[data-theme="light"] .news-list-excerpt,
html[data-theme="light"] .news-featured-desc {
  color: #334155 !important;
}

html[data-theme="light"] .news-meta,
html[data-theme="light"] .news-list-meta {
  border-top: 1px solid #f1f5f9 !important;
  color: #475569 !important;
}

html[data-theme="light"] .news-featured-banner {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .news-view-switch {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .view-btn {
  color: #475569 !important;
}

html[data-theme="light"] .view-btn:hover,
html[data-theme="light"] .view-btn.active {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .news-empty-state,
html[data-theme="light"] .empty-state {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 16px !important;
  color: #334155 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .news-empty-state p,
html[data-theme="light"] .empty-state p {
  color: #475569 !important;
  font-weight: 500 !important;
}

html[data-theme="light"] .news-empty-state i,
html[data-theme="light"] .empty-state i {
  color: var(--color-primary) !important;
  opacity: 0.85 !important;
}

html[data-theme="light"] .news-filter-tabs .filter-tab {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

html[data-theme="light"] .news-filter-tabs .filter-tab:hover,
html[data-theme="light"] .news-filter-tabs .filter-tab.active {
  background: var(--color-primary) !important;
  color: #ffffff !important;
  border-color: var(--color-primary) !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .nd-article,
html[data-theme="light"] .nd-related-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .nd-title {
  color: #0f172a !important;
}

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

html[data-theme="light"] .nd-related-body h4 a {
  color: #0f172a !important;
}

html[data-theme="light"] .nd-related-body h4 a:hover {
  color: var(--color-primary-dark) !important;
}

/* ── 11. TRANG LIÊN HỆ: NÚT MẠNG XÃ HỘI & FORM LIÊN HỆ (ẢNH 4) ─────────── */
/* Nâng cấp các nút liên hệ thanh lịch, icon sắc nét, chữ rõ ràng chống mờ */
html[data-theme="light"] .contact-glass-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .contact-card-title {
  color: #0f172a !important;
}

html[data-theme="light"] .contact-card-desc {
  color: #475569 !important;
}

html[data-theme="light"] .contact-method-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .contact-method-btn:hover {
  background: #f8fafc !important;
  color: var(--color-primary-dark) !important;
  border-color: var(--color-primary) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 8px rgba(139, 25, 255, 0.15) !important;
}

html[data-theme="light"] .glass-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .glass-card h3 {
  color: #0f172a !important;
}

html[data-theme="light"] .ad-note-box {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-left: 3px solid var(--color-primary) !important;
}

html[data-theme="light"] .ad-note-box h4,
html[data-theme="light"] .ad-note-title {
  color: #0f172a !important;
}

html[data-theme="light"] .ad-note-box p,
html[data-theme="light"] .ad-note-desc {
  color: #475569 !important;
}

html[data-theme="light"] .contact-auth-badge {
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
}

html[data-theme="light"] .contact-auth-user {
  color: #0f172a !important;
}

html[data-theme="light"] .contact-auth-email {
  color: #475569 !important;
}

html[data-theme="light"] .contact-form-label {
  color: #0f172a !important;
}

html[data-theme="light"] .contact-form-input {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

html[data-theme="light"] .contact-form-input.readonly-input {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

html[data-theme="light"] .contact-login-required {
  background: #ffffff !important;
  border: 1.5px dashed #cbd5e1 !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .contact-login-required h3,
html[data-theme="light"] .contact-login-title {
  color: #0f172a !important;
}

html[data-theme="light"] .contact-login-required p,
html[data-theme="light"] .contact-login-desc {
  color: #475569 !important;
}

html[data-theme="light"] .btn-contact-register {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

html[data-theme="light"] .btn-contact-register:hover {
  background: #f8fafc !important;
  border-color: #A1A1B5 !important;
  color: #0f172a !important;
}

html[data-theme="light"] .contact-login-footer {
  border-top: 1px solid #f1f5f9 !important;
  color: #64748b !important;
}

html[data-theme="light"] #generalContactForm label {
  color: #1e293b !important;
}

/* ── 12. TRANG ĐẶT QUẢNG CÁO (ẢNH 3) ────────────────────────────────────── */
html[data-theme="light"] .ad-pos-card,
html[data-theme="light"] .ad-step-card,
html[data-theme="light"] .ad-promo-box,
html[data-theme="light"] .advertise-form-wrap,
html[data-theme="light"] .ad-hotline-card,
html[data-theme="light"] .ad-policy-card,
html[data-theme="light"] .ad-policy-box {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
  color: #1e293b !important;
}

html[data-theme="light"] .ad-pos-card h3,
html[data-theme="light"] .ad-step-card h4,
html[data-theme="light"] .ad-hotline-card h3,
html[data-theme="light"] .ad-policy-title {
  color: #0f172a !important;
}

html[data-theme="light"] .ad-pos-info p,
html[data-theme="light"] .ad-step-card p,
html[data-theme="light"] .ad-hotline-card p,
html[data-theme="light"] .ad-policy-desc {
  color: #334155 !important;
}

/* 7 Hộp chính sách trong trang quảng cáo */
html[data-theme="light"] .ad-policy-grid>div,
html[data-theme="light"] div[style*="grid-template-columns:repeat(auto-fit,minmax(210px,1fr))"]>div,
html[data-theme="light"] div[style*="grid-template-columns: repeat(auto-fit, minmax(320px, 1fr))"]>div {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .ad-policy-grid h4,
html[data-theme="light"] div[style*="grid-template-columns:repeat(auto-fit,minmax(210px,1fr))"] h4,
html[data-theme="light"] div[style*="grid-template-columns: repeat(auto-fit, minmax(320px, 1fr))"] h4 {
  color: #0f172a !important;
}

html[data-theme="light"] .ad-policy-grid p,
html[data-theme="light"] div[style*="grid-template-columns:repeat(auto-fit,minmax(210px,1fr))"] p,
html[data-theme="light"] div[style*="grid-template-columns: repeat(auto-fit, minmax(320px, 1fr))"] p {
  color: #334155 !important;
}

/* ── Thông báo trong 7 hộp chính sách quảng cáo (Chống mờ & sáng quá mức) ── */
.ad-policy-notice {
  margin-top: 8px;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

.ad-notice-emerald {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.ad-notice-sky {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
}

.ad-notice-amber {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

.ad-notice-violet {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
}

.ad-notice-rose {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.ad-notice-pink {
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.3);
  color: #fbcfe8;
}

.ad-notice-indigo {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

/* Theme Sáng: Chữ đậm nét, tương phản cao, dễ đọc, không bị chói sáng */
html[data-theme="light"] .ad-policy-notice {
  font-weight: 600 !important;
}

html[data-theme="light"] .ad-notice-emerald {
  background: rgba(16, 185, 129, 0.1) !important;
  border: 1px solid rgba(16, 185, 129, 0.28) !important;
  color: #065f46 !important;
}

html[data-theme="light"] .ad-notice-sky {
  background: rgba(14, 165, 233, 0.1) !important;
  border: 1px solid rgba(14, 165, 233, 0.28) !important;
  color: #0369a1 !important;
}

html[data-theme="light"] .ad-notice-amber {
  background: rgba(245, 158, 11, 0.1) !important;
  border: 1px solid rgba(245, 158, 11, 0.28) !important;
  color: #92400e !important;
}

html[data-theme="light"] .ad-notice-violet {
  background: rgba(139, 92, 246, 0.1) !important;
  border: 1px solid rgba(139, 92, 246, 0.28) !important;
  color: #5b21b6 !important;
}

html[data-theme="light"] .ad-notice-rose {
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.28) !important;
  color: #991b1b !important;
}

html[data-theme="light"] .ad-notice-pink {
  background: rgba(236, 72, 153, 0.1) !important;
  border: 1px solid rgba(236, 72, 153, 0.28) !important;
  color: #9d174d !important;
}

html[data-theme="light"] .ad-notice-indigo {
  background: rgba(99, 102, 241, 0.1) !important;
  border: 1px solid rgba(99, 102, 241, 0.28) !important;
  color: #312e81 !important;
}

/* ── 13. BIỂU MẪU, INPUTS, SELECT, TEXTAREA & MODALS ─────────────────────── */
html[data-theme="light"] .form-control,
html[data-theme="light"] input[type="text"]:not(#headerSearchInput),
html[data-theme="light"] input[type="password"],
html[data-theme="light"] input[type="email"],
html[data-theme="light"] input[type="tel"],
html[data-theme="light"] input[type="number"],
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

html[data-theme="light"] .form-control:focus,
html[data-theme="light"] input[type="text"]:not(#headerSearchInput):focus,
html[data-theme="light"] input[type="password"]:focus,
html[data-theme="light"] input[type="email"]:focus,
html[data-theme="light"] input[type="tel"]:focus,
html[data-theme="light"] input[type="number"]:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] textarea:focus {
  background: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
  outline: none !important;
}

html[data-theme="light"] .form-control::placeholder,
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: #64748b !important;
}

html[data-theme="light"] .otp-digit-cell {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}

html[data-theme="light"] .otp-digit-cell:focus {
  border-color: var(--color-primary) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(139, 25, 255, 0.2) !important;
}

html[data-theme="light"] .auth-modal-content,
html[data-theme="light"] .modal-content {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12) !important;
  color: #1e293b !important;
}

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

html[data-theme="light"] #authModal p {
  color: #334155 !important;
}

html[data-theme="light"] #authModal label {
  color: #1e293b !important;
}

html[data-theme="light"] #authModal .input-wrapper {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] #authModal .auth-footer {
  border-top: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] #authModal .btn-toggle-eye {
  color: #64748b !important;
}

html[data-theme="light"] #authModal .otp-email-pill {
  background: #f1f5f9 !important;
  color: #0369a1 !important;
}

html[data-theme="light"] .prx-cookie-banner,
html[data-theme="light"] #prxCookieBanner {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15) !important;
  color: #1e293b !important;
}

html[data-theme="light"] .prx-cookie-icon-wrap {
  background: #fef3c7 !important;
  border: 1px solid #fde68a !important;
}

html[data-theme="light"] .prx-cookie-icon-wrap i {
  color: var(--color-primary-dark) !important;
}

html[data-theme="light"] .prx-cookie-text {
  color: #334155 !important;
}

html[data-theme="light"] .prx-cookie-link {
  color: var(--color-primary-dark) !important;
}

html[data-theme="light"] .prx-cookie-btn {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%) !important;
  color: #0b0f19 !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3) !important;
}

/* ── 14. TRANG DASHBOARD, ĐĂNG/SỬA SERVER, LEGAL & ERROR ────────────────── */
html[data-theme="light"] .sidebar-card,
html[data-theme="light"] .dashboard-card,
html[data-theme="light"] .welcome-card,
html[data-theme="light"] .user-servers-table-wrap,
html[data-theme="light"] .fav-server-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .welcome-text h2,
html[data-theme="light"] .dashboard-card h3 {
  color: #0f172a !important;
}

html[data-theme="light"] .user-servers-table th {
  background: #f8fafc !important;
  color: #334155 !important;
  border-bottom: 2px solid #cbd5e1 !important;
}

html[data-theme="light"] .user-servers-table td {
  border-bottom: 1px solid #f1f5f9 !important;
  color: #1e293b !important;
}

html[data-theme="light"] .user-servers-table .col-title a {
  color: #0f172a !important;
}

html[data-theme="light"] .settings-nav-tabs,
html[data-theme="light"] .pw-sub-nav-tabs {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] #settings-section label {
  color: #1e293b !important;
}

html[data-theme="light"] .server-form,
html[data-theme="light"] .submit-sidebar-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .server-form .form-section h3,
html[data-theme="light"] .submit-sidebar-card h4 {
  color: #0f172a !important;
}

html[data-theme="light"] .server-form .form-group label {
  color: #1e293b !important;
}

html[data-theme="light"] .server-form .editor-toolbar {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .server-form .editor-toolbar button {
  color: #1e293b !important;
}

html[data-theme="light"] .server-form .editor-content {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .server-form .btn-suggested-tag {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
}

html[data-theme="light"] .legal-card,
html[data-theme="light"] .legal-toc,
html[data-theme="light"] .privacy-card,
html[data-theme="light"] .privacy-toc {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .legal-hero-title,
html[data-theme="light"] .privacy-hero-title,
html[data-theme="light"] .legal-card-header h2,
html[data-theme="light"] .privacy-card-header h2 {
  color: #0f172a !important;
}

html[data-theme="light"] .legal-hero-sub,
html[data-theme="light"] .privacy-hero-sub,
html[data-theme="light"] .legal-card p,
html[data-theme="light"] .privacy-card p,
html[data-theme="light"] .legal-list li,
html[data-theme="light"] .privacy-list li {
  color: #1e293b !important;
}

html[data-theme="light"] .legal-list li strong,
html[data-theme="light"] .privacy-list li strong {
  color: #0f172a !important;
}

html[data-theme="light"] .legal-toc-list a,
html[data-theme="light"] .privacy-toc-list a {
  color: #334155 !important;
}

html[data-theme="light"] .legal-toc-list a:hover,
html[data-theme="light"] .privacy-toc-list a:hover {
  color: var(--color-primary-dark) !important;
}

html[data-theme="light"] .error-page .btn-outline {
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  background: #ffffff !important;
}

/* ── 15. FOOTER ELEGANCE ────────────────────────────────────────────────── */
html[data-theme="light"] .site-footer {
  background: #ffffff !important;
  border-top: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

html[data-theme="light"] .site-footer::before {
  display: none !important;
}

html[data-theme="light"] .footer-top {
  border-bottom: 1px solid #f1f5f9 !important;
}

html[data-theme="light"] .footer-col h4 {
  color: #0f172a !important;
}

html[data-theme="light"] .footer-col a:not(.btn-footer-ad) {
  color: #475569 !important;
}

html[data-theme="light"] .footer-col a:not(.btn-footer-ad):hover {
  color: var(--color-primary-dark) !important;
}

html[data-theme="light"] .footer-bottom {
  background: #dfe4ec !important;
  border-top: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

/* ── FOOTER PARTNER & SPONSOR BANNERS (CHUẨN HÓA GIAO DIỆN HIỆN ĐẠI) ── */
.footer-partner-banners {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.footer-partner-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(17, 21, 37, 0.7);
  border: 1px solid rgba(139, 25, 255, 0.25);
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-partner-badge:hover {
  background: rgba(26, 32, 53, 0.9);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(139, 25, 255, 0.35);
}

.footer-partner-badge.sponsor {
  border-color: rgba(245, 158, 11, 0.3);
}

.footer-partner-badge.sponsor .fp-badge-icon {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.footer-partner-badge.sponsor:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.fp-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(139, 25, 255, 0.12);
  border: 1px solid rgba(139, 25, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.fp-badge-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fp-badge-text strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.fp-badge-text small {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.3;
  margin-top: 2px;
}

.fp-badge-arrow {
  font-size: 12px;
  color: var(--color-primary);
  opacity: 0.7;
  transition: transform 0.2s, opacity 0.2s;
  flex-shrink: 0;
  margin-left: auto;
}

.footer-partner-badge:hover .fp-badge-arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* Light Theme cho Footer Partner Badge */
html[data-theme="light"] .footer-partner-badge {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
}

html[data-theme="light"] .footer-partner-badge:hover {
  border-color: var(--color-primary) !important;
  box-shadow: 0 4px 16px rgba(139, 25, 255, 0.18) !important;
}

html[data-theme="light"] .footer-partner-badge.sponsor:hover {
  border-color: #f59e0b !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2) !important;
}

html[data-theme="light"] .fp-badge-text strong {
  color: #0f172a !important;
}

html[data-theme="light"] .fp-badge-text small {
  color: #64748b !important;
}

/* ── PROFILE BADGE TRANG QUẢNG CÁO (ĐĂNG KÝ DƯỚI TÀI KHOẢN) ── */
.ad-user-badge-title {
  color: #ffffff;
}

html[data-theme="light"] .ad-user-badge {
  background: rgba(34, 197, 94, 0.08) !important;
  border: 1px solid rgba(34, 197, 94, 0.35) !important;
}

html[data-theme="light"] .ad-user-badge-title {
  color: #0f172a !important;
}

html[data-theme="light"] .ad-user-badge-email {
  color: #475569 !important;
}
