/* ============================================================
   CODEVIP.FUN - 100% EXHAUSTIVE LIGHT LUXURY THEME
   Guarantees all backgrounds are bright/clean and all texts are dark/crisp
   ============================================================ */

/* ---------- CSS VARIABLES (LIGHT MODE) ---------- */
html[data-theme="light"],
html[data-theme="light"] body,
body.light-mode {
  --bg-primary: #f8fafc !important;
  --bg-secondary: #f1f5f9 !important;
  --bg-tertiary: #e2e8f0 !important;
  --bg-card: #ffffff !important;
  --bg-card-hover: #f8fafc !important;
  --bg-glass: rgba(255, 255, 255, 0.94) !important;
  
  --text-primary: #0f172a !important;
  --text-secondary: #334155 !important;
  --text-tertiary: #475569 !important;
  --text-muted: #64748b !important;
  
  --border-subtle: rgba(0, 0, 0, 0.08) !important;
  --border-default: rgba(0, 0, 0, 0.12) !important;
  --border-strong: rgba(0, 0, 0, 0.18) !important;
  --border-glow: rgba(37, 99, 235, 0.25) !important;
  
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  --shadow-card-hover: 0 12px 32px rgba(37, 99, 235, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04) !important;

  background-color: #f8fafc !important;
  color: #0f172a !important;
}

/* Base Body & Global Backgrounds */
html[data-theme="light"] body {
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
              radial-gradient(circle at 10% 40%, rgba(124, 58, 237, 0.03) 0%, transparent 40%),
              #f8fafc !important;
  color: #0f172a !important;
}

/* Universal Typography in Light Mode */
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6,
html[data-theme="light"] strong,
html[data-theme="light"] b {
  color: #0f172a !important;
}

html[data-theme="light"] p,
html[data-theme="light"] span:not(.badge):not(.badge *):not(.badge-dot):not(.fc-icon *):not(.stat-icon *):not(.home-notice-badge *):not(.btn *):not(.btn),
html[data-theme="light"] label,
html[data-theme="light"] li {
  color: #334155;
}

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

/* Force dark text on white backgrounds */
html[data-theme="light"] .text-light,
html[data-theme="light"] .text-white {
  color: #0f172a !important;
}

/* Remove dark background overlays across all wrapper containers */
html[data-theme="light"] .dark-luxury,
html[data-theme="light"] .dark-section,
html[data-theme="light"] .dark-dashboard-wrap,
html[data-theme="light"] .dark-dash-wrap,
html[data-theme="light"] .dark-author-wrap,
html[data-theme="light"] .dark-blog-create-wrap,
html[data-theme="light"] .dark-bg-grid,
html[data-theme="light"] .home-spacer,
html[data-theme="light"] [style*="background: #050505"],
html[data-theme="light"] [style*="background:#050505"],
html[data-theme="light"] [style*="background: #0f1115"],
html[data-theme="light"] [style*="background:#0f1115"],
html[data-theme="light"] [style*="background: #0b1220"],
html[data-theme="light"] [style*="background:#0b1220"],
html[data-theme="light"] [style*="background: #000"],
html[data-theme="light"] [style*="background:#000"] {
  background-color: #f8fafc !important;
  background-image: none !important;
}

/* Particles hidden or subtle in light mode */
html[data-theme="light"] .dark-particles {
  opacity: 0.15 !important;
}

/* ============================================================
   1. NAVBAR & HEADER
   ============================================================ */
html[data-theme="light"] .dark-navbar,
html[data-theme="light"] #darkNavbar {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  backdrop-filter: blur(20px) !important;
}

html[data-theme="light"] .dark-navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom-color: rgba(0, 0, 0, 0.12) !important;
}

html[data-theme="light"] .dark-nav-links .nav-link {
  color: #334155 !important;
}

html[data-theme="light"] .dark-nav-links .nav-link:hover,
html[data-theme="light"] .dark-nav-links .nav-link.active {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.08) !important;
}

html[data-theme="light"] .nav-deposit-menu {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .nav-deposit-menu a {
  color: #334155 !important;
}

html[data-theme="light"] .nav-deposit-menu a:hover {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #2563eb !important;
}

html[data-theme="light"] .nav-search-input {
  background: #f1f5f9 !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

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

html[data-theme="light"] .nav-search-input input::placeholder {
  color: #94a3b8 !important;
}

html[data-theme="light"] .nav-search-dropdown {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
}

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

html[data-theme="light"] .nav-search-item:hover {
  background: #f8fafc !important;
}

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

html[data-theme="light"] .sidebar-user-btn {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

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

html[data-theme="light"] .sidebar-account-menu {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
}

html[data-theme="light"] .sidebar-account-menu .dropdown-item {
  color: #334155 !important;
}

html[data-theme="light"] .sidebar-account-menu .dropdown-item:hover {
  background: #f1f5f9 !important;
  color: #2563eb !important;
}

html[data-theme="light"] .sidebar-account-head {
  background: #f8fafc !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

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

html[data-theme="light"] .sidebar-balance-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* ============================================================
   2. HOMEPAGE & HERO SECTION
   ============================================================ */
html[data-theme="light"] .home-notice {
  background: #ffffff !important;
  border: 1px solid #bfdbfe !important;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.08) !important;
}

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

html[data-theme="light"] .home-notice-badge {
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #1e40af !important;
}

html[data-theme="light"] .home-notice-close {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

html[data-theme="light"] .home-notice-title {
  color: #0f172a !important;
  text-shadow: none !important;
}

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

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

html[data-theme="light"] .home-notice-btn:hover {
  background: #e2e8f0 !important;
  color: #2563eb !important;
}

html[data-theme="light"] .home-notice-btn.primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: none !important;
}

html[data-theme="light"] .home-notice-hint {
  color: #64748b !important;
}

/* Dark Hero in Light Mode */
html[data-theme="light"] .dark-hero {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%) !important;
}

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

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

html[data-theme="light"] .dark-hero-badge {
  background: rgba(37, 99, 235, 0.08) !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
  color: #2563eb !important;
}

html[data-theme="light"] .dark-hero-stats {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  border-radius: 18px !important;
}

html[data-theme="light"] .dark-hero-stat .stat-num {
  color: #0f172a !important;
}

html[data-theme="light"] .dark-hero-stat .stat-label {
  color: #64748b !important;
}

html[data-theme="light"] .dark-hero-stat {
  border-right-color: rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .dark-hero-actions .dark-btn-outline {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

html[data-theme="light"] .dark-hero-actions .dark-btn-outline:hover {
  background: #f1f5f9 !important;
  color: #2563eb !important;
}

/* Hero Float Cards */
html[data-theme="light"] .dark-float-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}

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

html[data-theme="light"] .dark-float-card small {
  color: #64748b !important;
}

/* Stats Banner */
html[data-theme="light"] .dark-stats-banner {
  background: #f8fafc !important;
  border-top-color: rgba(0, 0, 0, 0.06) !important;
  border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .dark-stat-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
}

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

html[data-theme="light"] .dark-stat-card p {
  color: #64748b !important;
}

/* Filter Bar & Product Cards */
html[data-theme="light"] .dark-section-title {
  color: #0f172a !important;
}

html[data-theme="light"] .dark-section-desc {
  color: #64748b !important;
}

html[data-theme="light"] .dark-filter-bar {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .dark-filter-tab {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid transparent !important;
}

html[data-theme="light"] .dark-filter-tab:hover,
html[data-theme="light"] .dark-filter-tab.active {
  background: #2563eb !important;
  color: #ffffff !important;
}

html[data-theme="light"] .dark-product-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .dark-product-card:hover {
  border-color: rgba(37, 99, 235, 0.3) !important;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.1) !important;
}

html[data-theme="light"] #products-grid .dark-product-thumb {
  background: #f1f5f9 !important;
}

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

html[data-theme="light"] .dark-product-title:hover,
html[data-theme="light"] .dark-product-title a:hover {
  color: #2563eb !important;
}

html[data-theme="light"] .dark-product-stats-meta .stat-item {
  color: #64748b !important;
}

html[data-theme="light"] .dark-product-stats-meta .stat-dot {
  color: #cbd5e1 !important;
}

html[data-theme="light"] .dark-product-category {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #2563eb !important;
}

/* Pagination in Light Mode */
html[data-theme="light"] .dark-page-link {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

html[data-theme="light"] .dark-page-link:hover {
  background: #f1f5f9 !important;
  color: #2563eb !important;
}

html[data-theme="light"] .dark-page-link.active {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

/* ============================================================
   3. USER DASHBOARD & PROFILE PAGES
   ============================================================ */
html[data-theme="light"] .dash-welcome-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .dash-welcome-card::after {
  display: none !important;
}

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

html[data-theme="light"] .dash-user-id {
  color: #64748b !important;
}

html[data-theme="light"] .dash-stat-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
}

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

html[data-theme="light"] .dash-stat-lbl {
  color: #64748b !important;
}

html[data-theme="light"] .dash-filter-card,
html[data-theme="light"] .dash-order-table-card,
html[data-theme="light"] .author-card,
html[data-theme="light"] .profile-card,
html[data-theme="light"] .settings-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .dash-filter-header h5,
html[data-theme="light"] .dash-table-header h5,
html[data-theme="light"] .author-card-header h2,
html[data-theme="light"] .settings-card-head h5 {
  color: #0f172a !important;
}

html[data-theme="light"] .dash-filter-header p,
html[data-theme="light"] .dash-table-header p,
html[data-theme="light"] .author-card-header p {
  color: #64748b !important;
}

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

html[data-theme="light"] .dash-input:focus {
  background: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

html[data-theme="light"] .dash-input::placeholder {
  color: #94a3b8 !important;
}

html[data-theme="light"] .dash-action-btn.btn-outline-dash {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

html[data-theme="light"] .dash-action-btn.btn-outline-dash:hover {
  background: #f1f5f9 !important;
  color: #2563eb !important;
}

/* Dashboard Table */
html[data-theme="light"] .dash-table-modern thead th {
  background: #f8fafc !important;
  color: #475569 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .dash-table-modern tbody tr {
  border-bottom: 1px solid #f1f5f9 !important;
}

html[data-theme="light"] .dash-table-modern tbody tr:hover {
  background: #f8fafc !important;
}

html[data-theme="light"] .dash-table-modern td {
  color: #334155 !important;
}

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

html[data-theme="light"] .dash-time-tag {
  color: #64748b !important;
}

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

/* ============================================================
   4. BLOG LISTING & DETAIL & CREATE
   ============================================================ */
html[data-theme="light"] .blog-filter-bar {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

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

html[data-theme="light"] .bfb-cat:hover,
html[data-theme="light"] .bfb-cat.active {
  background: #2563eb !important;
  color: #ffffff !important;
}

html[data-theme="light"] .bfb-search-wrap input {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

html[data-theme="light"] .blog-card-modern,
html[data-theme="light"] .bsm-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

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

html[data-theme="light"] .bcm-title a:hover {
  color: #2563eb !important;
}

html[data-theme="light"] .bcm-meta-item {
  color: #64748b !important;
}

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

html[data-theme="light"] .bsm-categories a {
  color: #334155 !important;
}

html[data-theme="light"] .bsm-categories a:hover {
  background: #f1f5f9 !important;
  color: #2563eb !important;
}

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

html[data-theme="light"] .bsm-pop-info span {
  color: #64748b !important;
}

html[data-theme="light"] .create-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .create-card-footer {
  background: #f8fafc !important;
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] .dark-form-control,
html[data-theme="light"] .dark-form-select {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

html[data-theme="light"] .dark-form-control:focus,
html[data-theme="light"] .dark-form-select:focus {
  background: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

html[data-theme="light"] .dark-form-select option {
  background: #ffffff !important;
  color: #0f172a !important;
}

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

html[data-theme="light"] .form-field-hint {
  color: #64748b !important;
}

html[data-theme="light"] .approval-notice-box {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}

html[data-theme="light"] .approval-notice-text h6 {
  color: #1e3a8a !important;
}

html[data-theme="light"] .approval-notice-text p {
  color: #3b82f6 !important;
}

html[data-theme="light"] .image-upload-box {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

html[data-theme="light"] .preview-thumb-wrap {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
}

html[data-theme="light"] .btn-back-blogs {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

/* ============================================================
   5. FOOTER & MODALS & EXTRA
   ============================================================ */
html[data-theme="light"] .dark-footer,
html[data-theme="light"] #darkFooter {
  background: #ffffff !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.03) !important;
}

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

html[data-theme="light"] .footer-desc,
html[data-theme="light"] .footer-links a,
html[data-theme="light"] .footer-contact-list a {
  color: #475569 !important;
}

html[data-theme="light"] .footer-links a:hover,
html[data-theme="light"] .footer-contact-list a:hover {
  color: #2563eb !important;
}

html[data-theme="light"] .footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
  color: #64748b !important;
}

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

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

html[data-theme="light"] .footer-stat-card span {
  color: #64748b !important;
}

html[data-theme="light"] .modal-content {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
}

html[data-theme="light"] .modal-header,
html[data-theme="light"] .modal-footer {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* ============================================================
   6. CONTROLS: THEME SWITCHER & CANVAS FLAGS
   ============================================================ */
.nav-controls-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  padding: 0;
  outline: none;
}

.btn-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(37, 99, 235, 0.5);
  color: #60a5fa;
  transform: translateY(-1px);
}

html[data-theme="light"] .btn-theme-toggle {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .btn-theme-toggle:hover {
  background: #f1f5f9;
  color: #2563eb;
  border-color: #93c5fd;
}

.btn-theme-toggle .theme-sun-icon {
  display: none;
  color: #f59e0b;
}

.btn-theme-toggle .theme-moon-icon {
  display: inline-block;
  color: #93c5fd;
}

html[data-theme="light"] .btn-theme-toggle .theme-sun-icon {
  display: inline-block;
}

html[data-theme="light"] .btn-theme-toggle .theme-moon-icon {
  display: none;
}

.nav-lang-dropdown {
  position: relative;
}

.btn-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  transition: all 0.2s ease;
  outline: none;
}

.btn-lang-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(37, 99, 235, 0.5);
  color: #60a5fa;
}

html[data-theme="light"] .btn-lang-toggle {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .btn-lang-toggle:hover {
  background: #f1f5f9;
  color: #2563eb;
}

.lang-menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 145px;
  padding: 6px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  list-style: none;
  margin: 0;
  display: none;
  z-index: 1080;
}

.lang-menu-dropdown.show {
  display: block;
}

html[data-theme="light"] .lang-menu-dropdown {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.lang-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.lang-menu-item:hover,
.lang-menu-item.active {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
}

html[data-theme="light"] .lang-menu-item {
  color: #334155;
}

html[data-theme="light"] .lang-menu-item:hover,
html[data-theme="light"] .lang-menu-item.active {
  background: #eff6ff;
  color: #2563eb;
}

.flag-canvas {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

/* Sidebar Mobile Controls Box */
.sidebar-controls-box {
  padding: 12px 14px;
  margin: 10px 14px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

html[data-theme="light"] .sidebar-controls-box {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.sidebar-theme-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

html[data-theme="light"] .sidebar-theme-switch-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.sidebar-lang-pills {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .sidebar-lang-pills {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.sidebar-lang-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sidebar-lang-pill-btn.active {
  background: #2563eb;
  color: #ffffff;
}

/* ============================================================
   7. UNIFIED CAPSULE TOGGLE WIDGET (MOON/SUN + CIRCULAR FLAG)
   ============================================================ */
.capsule-toggle-widget {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 5px 12px;
  background: #111317;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
  height: 38px;
  user-select: none;
}

.capsule-toggle-widget:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] .capsule-toggle-widget {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] .capsule-toggle-widget:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
}

.capsule-item-btn {
  background: transparent;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.capsule-item-btn:hover {
  transform: scale(1.1);
}

.capsule-item-btn:active {
  transform: scale(0.92);
}

/* Moon / Sun / Auto Icons */
.capsule-theme-btn {
  width: 22px;
  height: 22px;
  color: #cbd5e1;
  font-size: 15px;
  position: relative;
}

.capsule-theme-btn .theme-moon-icon,
.capsule-theme-btn .theme-sun-icon,
.capsule-theme-btn .theme-auto-icon {
  display: none;
  transition: transform 0.2s ease;
}

/* Hiển thị icon theo data-theme-setting trên html */
html[data-theme-setting="dark"] .capsule-theme-btn .theme-moon-icon {
  display: inline-block;
  color: #cbd5e1;
}

html[data-theme-setting="light"] .capsule-theme-btn .theme-sun-icon {
  display: inline-block;
  color: #f59e0b;
}

html[data-theme-setting="auto"] .capsule-theme-btn .theme-auto-icon,
html:not([data-theme-setting]) .capsule-theme-btn .theme-auto-icon {
  display: inline-block;
  color: #c084fc;
}

/* ============================================================
   THEME SELECTION MODAL CARDS
   ============================================================ */
.theme-modal-card {
  max-width: 400px;
}

.theme-options-list {
  padding: 12px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-opt-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.theme-opt-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

html[data-theme="light"] .theme-opt-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

html[data-theme="light"] .theme-opt-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.theme-opt-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-opt-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-opt-icon.icon-sun {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
}

.theme-opt-icon.icon-auto {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
}

.theme-opt-icon.icon-moon {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.theme-opt-info {
  display: flex;
  flex-direction: column;
}

.theme-opt-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #f1f5f9;
}

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

.theme-opt-desc {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

.theme-opt-item.active {
  background: rgba(139, 92, 246, 0.18) !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.15);
}

.theme-opt-item.active .theme-opt-title {
  color: #d8b4fe !important;
}

.theme-opt-item.active .lcp-check-icon {
  opacity: 1;
  transform: scale(1);
}

html[data-theme="light"] .theme-opt-item.active {
  background: #f3e8ff !important;
  border-color: #c084fc !important;
}

html[data-theme="light"] .theme-opt-item.active .theme-opt-title {
  color: #7e22ce !important;
}

/* Circular Flag */
.capsule-lang-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.flag-canvas-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   8. LUXURY LANGUAGE & CURRENCY MODAL PANEL (DROPDOWN MODAL)
   ============================================================ */
.lcp-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lcp-modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.lcp-modal-card {
  width: 100%;
  max-width: 440px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(139, 92, 246, 0.15);
  overflow: hidden;
  transform: scale(0.92) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.lcp-modal-backdrop.show .lcp-modal-card {
  transform: scale(1) translateY(0);
}

html[data-theme="light"] .lcp-modal-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(139, 92, 246, 0.15);
}

/* Modal Header & Tabs */
.lcp-header {
  padding: 16px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .lcp-header {
  border-bottom-color: #f1f5f9;
}

.lcp-tabs-wrap {
  display: flex;
  gap: 20px;
  position: relative;
}

.lcp-tab-btn {
  background: transparent;
  border: none;
  padding: 10px 4px 14px;
  font-size: 15px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: all 0.2s ease;
  outline: none;
}

.lcp-tab-btn:hover {
  color: #e2e8f0;
}

html[data-theme="light"] .lcp-tab-btn {
  color: #64748b;
}

html[data-theme="light"] .lcp-tab-btn:hover {
  color: #0f172a;
}

.lcp-tab-btn.active {
  color: #a855f7 !important;
}

.lcp-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6, #c084fc);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.8);
}

.lcp-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.lcp-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
  transform: rotate(90deg);
}

html[data-theme="light"] .lcp-close-btn {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

/* Search Box */
.lcp-search-area {
  padding: 16px 20px 12px;
}

.lcp-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.lcp-search-box i {
  position: absolute;
  left: 14px;
  color: #a855f7;
  font-size: 14px;
  pointer-events: none;
}

.lcp-search-box input {
  width: 100%;
  height: 42px;
  background: #111215;
  border: 1.5px solid rgba(139, 92, 246, 0.35);
  border-radius: 14px;
  padding: 0 16px 0 40px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 500;
  outline: none;
  transition: all 0.2s ease;
}

.lcp-search-box input:focus {
  border-color: #a855f7;
  background: #0d0e11;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.lcp-search-box input::placeholder {
  color: #64748b;
}

html[data-theme="light"] .lcp-search-box input {
  background: #f8fafc;
  border-color: rgba(139, 92, 246, 0.4);
  color: #0f172a;
}

html[data-theme="light"] .lcp-search-box input:focus {
  background: #ffffff;
}

/* List Content */
.lcp-list-area {
  max-height: 340px;
  overflow-y: auto;
  padding: 4px 14px 16px;
}

.lcp-list-area::-webkit-scrollbar {
  width: 5px;
}

.lcp-list-area::-webkit-scrollbar-track {
  background: transparent;
}

.lcp-list-area::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 10px;
}

.lcp-list-area::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.6);
}

.lcp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 4px;
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
  text-align: left;
}

.lcp-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] .lcp-item:hover {
  background: #f1f5f9;
}

.lcp-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.lcp-item-flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.lcp-item-flag canvas,
.lcp-item-flag img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: block;
}

.lcp-item-curr-symbol {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.lcp-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
}

html[data-theme="light"] .lcp-item-name {
  color: #1e293b;
}

.lcp-item-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lcp-item-code {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .lcp-item-code {
  background: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
}

.lcp-check-icon {
  font-size: 14px;
  color: #c084fc;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

/* ACTIVE ITEM STATE */
.lcp-item.active {
  background: rgba(139, 92, 246, 0.2) !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.15);
}

.lcp-item.active .lcp-item-name {
  color: #d8b4fe !important;
  font-weight: 700;
}

.lcp-item.active .lcp-item-code {
  background: rgba(168, 85, 247, 0.3) !important;
  color: #ffffff !important;
  border-color: rgba(168, 85, 247, 0.6) !important;
}

.lcp-item.active .lcp-check-icon {
  opacity: 1;
  transform: scale(1);
}

html[data-theme="light"] .lcp-item.active {
  background: #f3e8ff !important;
  border-color: #c084fc !important;
}

html[data-theme="light"] .lcp-item.active .lcp-item-name {
  color: #7e22ce !important;
}

/* Hide Google Translate original gadget */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon,
#google_translate_element {
  display: none !important;
}

body {
  top: 0px !important;
}

/* ============================================================
   SVIP RANK BADGE GIF RESET (Xóa hoàn toàn viền và bóng)
   ============================================================ */
.svip-rank-gif,
img.svip-rank-gif,
.sidebar-account-name .svip-rank-gif,
.sidebar-account-profile .svip-rank-gif {
  display: inline-block !important;
  vertical-align: middle !important;
  height: 20px !important;
  width: auto !important;
  max-width: none !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 0 0 5px !important;
  padding: 0 !important;
}


