/* ============================================
   KAMASTORE DARK MODE - Version finale propre
   Basé sur les vraies classes du site
   ============================================ */

/* ---- VARIABLES DARK MODE ---- */
[data-theme="dark"] {
    --heading-color: #F1F5F9;
    --body-color: #94A3B8;
    --light-color: #94A3B8;
    --extra-light-color: #64748B;
    --section-bg-1: #0F0F17;
    --section-bg-2: #111118;
    --section-bg-3: #1A1A2E;
    --section-bg-4: #16213E;
    --section-bg-5: #0F0F17;
    --section-bg-6: #1A1A2E;
    --breadcrumb-bg: #111118;
    color-scheme: dark;
}

/* ---- BODY ---- */
[data-theme="dark"] body {
    background: #0F0F17 !important;
    color: #94A3B8 !important;
}

/* ---- BACKGROUNDS GÉNÉRAUX ---- */
[data-theme="dark"] .bg-white { background: #1A1A2E !important; }
[data-theme="dark"] .bg-light { background: #111118 !important; }
[data-theme="dark"] .section-bg-1 { background: #0F0F17 !important; }
[data-theme="dark"] .section-bg-2 { background: #111118 !important; }
[data-theme="dark"] .section-bg-3 { background: #1A1A2E !important; }
[data-theme="dark"] .radius-10 { background: #1A1A2E !important; }

/* ---- TITRES ---- */
[data-theme="dark"] h1, [data-theme="dark"] h2,
[data-theme="dark"] h3, [data-theme="dark"] h4,
[data-theme="dark"] h5, [data-theme="dark"] h6,
[data-theme="dark"] .title { color: #F1F5F9 !important; }

/* ---- CARDS LANDLORD ---- */
[data-theme="dark"] .single-themes,
[data-theme="dark"] .single-price-plan,
[data-theme="dark"] .single-blog,
[data-theme="dark"] .global-card,
[data-theme="dark"] .card {
    background: #1A1A2E !important;
    border-color: rgba(124,58,237,0.15) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3) !important;
}

[data-theme="dark"] .single-themes-content-title,
[data-theme="dark"] .single-themes-content-title a,
[data-theme="dark"] .single-price-list-item,
[data-theme="dark"] .section-para {
    color: #94A3B8 !important;
}

/* ---- PRICING PLANS ---- */
[data-theme="dark"] .single-price-plan { background: #1A1A2E !important; }
[data-theme="dark"] .single-price-plan * { color: #F1F5F9 !important; }
[data-theme="dark"] .single-price-list-item { color: #94A3B8 !important; }
[data-theme="dark"] .check-icon { color: #7C3AED !important; }

/* ---- FORMS ---- */
[data-theme="dark"] input:not([type=submit]):not([type=button]):not([type=checkbox]):not([type=radio]),
[data-theme="dark"] textarea,
[data-theme="dark"] select,
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: #111118 !important;
    border-color: rgba(124,58,237,0.3) !important;
    color: #F1F5F9 !important;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder { color: #475569 !important; }
[data-theme="dark"] label, [data-theme="dark"] .form-label { color: #94A3B8 !important; }

/* ---- TABLES ---- */
[data-theme="dark"] table,
[data-theme="dark"] .table { color: #F1F5F9 !important; }
[data-theme="dark"] .table td,
[data-theme="dark"] .table th,
[data-theme="dark"] td, [data-theme="dark"] th {
    color: #F1F5F9 !important;
    border-color: rgba(255,255,255,0.06) !important;
    background: transparent !important;
}

/* ---- MODALS ---- */
[data-theme="dark"] .modal-content {
    background: #1A1A2E !important;
    border-color: rgba(124,58,237,0.2) !important;
}
[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    border-color: rgba(255,255,255,0.06) !important;
}
[data-theme="dark"] .modal-title { color: #F1F5F9 !important; }

/* ---- ALERTS ---- */
[data-theme="dark"] .alert-info {
    background: rgba(6,182,212,0.1) !important;
    border-color: rgba(6,182,212,0.2) !important;
    color: #67E8F9 !important;
}
[data-theme="dark"] .alert-success {
    background: rgba(16,185,129,0.1) !important;
    border-color: rgba(16,185,129,0.2) !important;
    color: #6EE7B7 !important;
}
[data-theme="dark"] .alert-danger, [data-theme="dark"] .alert-error {
    background: rgba(239,68,68,0.1) !important;
    border-color: rgba(239,68,68,0.2) !important;
    color: #FCA5A5 !important;
}

/* ---- FOOTER ---- */
[data-theme="dark"] footer,
[data-theme="dark"] .footer-area,
[data-theme="dark"] .footer-bg {
    background: #0A0A0F !important;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
}
[data-theme="dark"] footer h1, [data-theme="dark"] footer h2,
[data-theme="dark"] footer h3, [data-theme="dark"] footer h4,
[data-theme="dark"] footer h5, [data-theme="dark"] footer h6 { color: #F1F5F9 !important; }
[data-theme="dark"] footer p,
[data-theme="dark"] footer span,
[data-theme="dark"] footer li,
[data-theme="dark"] footer a { color: #64748B !important; }
[data-theme="dark"] footer a:hover { color: #7C3AED !important; }

/* ---- BREADCRUMB ---- */
[data-theme="dark"] .breadcrumb-area,
[data-theme="dark"] .bw-breadcrumb {
    background: #111118 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}
[data-theme="dark"] .breadcrumb-contents-title-two { color: #F1F5F9 !important; }

/* ---- SIDEBAR SHOP ---- */
[data-theme="dark"] .shop-sidebar,
[data-theme="dark"] .single-shop-left,
[data-theme="dark"] .bw-sidebar {
    background: #1A1A2E !important;
    border-color: rgba(255,255,255,0.06) !important;
}

/* ---- PAGINATION ---- */
[data-theme="dark"] .pagination-list li a {
    background: #1A1A2E !important;
    color: #94A3B8 !important;
    border-color: rgba(255,255,255,0.06) !important;
}
[data-theme="dark"] .pagination-list li a.current,
[data-theme="dark"] .pagination-list li a:hover {
    background: linear-gradient(135deg,#7C3AED,#EC4899) !important;
    color: #fff !important;
}

/* ---- TOPBAR (seulement topbar, pas navbar) ---- */
[data-theme="dark"] .topbar-area {
    background: #0A0A0F !important;
    border-bottom: 1px solid rgba(255,255,255,0.04) !important;
}

/* ---- SCROLLBAR ---- */
[data-theme="dark"] ::-webkit-scrollbar { width: 6px; height: 6px; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: #111118; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #7C3AED; border-radius: 3px; }

/* ---- SELECTION ---- */
::selection { background: rgba(124,58,237,0.3); }

/* ============================================
   UX IMPROVEMENTS
   ============================================ */
html { scroll-behavior: smooth; }

/* Progress bar de lecture */
#km-progress-bar {
    position: fixed; top: 0; left: 0;
    height: 3px; width: 0%;
    background: linear-gradient(90deg, #7C3AED, #EC4899, #06B6D4);
    z-index: 99999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* Back to top */
#km-back-top {
    position: fixed; bottom: 150px; left: 20px;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.3);
    color: #7C3AED; font-size: 18px; cursor: pointer;
    display: none; align-items: center; justify-content: center;
    z-index: 9989; transition: all 0.3s;
    backdrop-filter: blur(10px);
}
#km-back-top:hover {
    background: linear-gradient(135deg,#7C3AED,#EC4899);
    color: #fff; border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124,58,237,0.4);
}
#km-back-top.visible { display: flex; }

/* Dark mode toggle FAB - BAS GAUCHE */
#km-dark-fab {
    position: fixed; bottom: 20px; left: 20px;
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED, #EC4899);
    border: none; color: #fff; font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(124,58,237,0.5);
    z-index: 9990; transition: all 0.3s;
}
#km-dark-fab:hover {
    transform: scale(1.1) rotate(20deg);
    box-shadow: 0 8px 30px rgba(124,58,237,0.7);
}

/* Tooltip sur FAB */
#km-dark-fab::before {
    content: attr(title);
    position: absolute; right: 56px;
    background: rgba(0,0,0,0.8);
    color: #fff; padding: 4px 10px;
    border-radius: 6px; font-size: 12px;
    white-space: nowrap; opacity: 0;
    pointer-events: none; transition: opacity 0.2s;
}
#km-dark-fab:hover::before { opacity: 1; }

/* Toasts */
#km-toasts {
    position: fixed; top: 20px; right: 20px;
    z-index: 99999; display: flex; flex-direction: column; gap: 10px;
}
.km-toast {
    padding: 12px 18px; border-radius: 10px; color: #fff;
    font-size: 14px; font-weight: 500;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    animation: km-slide-in 0.3s ease;
    max-width: 300px; min-width: 200px;
}
.km-toast.success { background: linear-gradient(135deg,#10B981,#059669); }
.km-toast.error   { background: linear-gradient(135deg,#EF4444,#DC2626); }
.km-toast.info    { background: linear-gradient(135deg,#7C3AED,#6D28D9); }
.km-toast.warning { background: linear-gradient(135deg,#F59E0B,#D97706); }

@keyframes km-slide-in {
    from { opacity:0; transform: translateX(30px); }
    to   { opacity:1; transform: translateX(0); }
}
@keyframes km-slide-out {
    from { opacity:1; transform: translateX(0); }
    to   { opacity:0; transform: translateX(30px); }
}

/* Animations au scroll */
.km-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.km-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Focus accessible */
*:focus-visible {
    outline: 2px solid #7C3AED !important;
    outline-offset: 3px !important;
    border-radius: 4px;
}

/* ---- NAVBAR LIENS BLANCS EN DARK MODE ---- */
[data-theme="dark"] .navbar-area .navbar-nav li a,
[data-theme="dark"] .navbar-area .navbar-nav > li > a,
[data-theme="dark"] nav.navbar ul li a,
[data-theme="dark"] #multi_tenancy_menu li a,
[data-theme="dark"] .nav-container ul li a,
[data-theme="dark"] .navbar-collapse ul li a {
    color: #FFFFFF !important;
    opacity: 1 !important;
}
[data-theme="dark"] .navbar-area .navbar-nav li a:hover,
[data-theme="dark"] #multi_tenancy_menu li a:hover {
    color: #EC4899 !important;
}

/* ---- BOUTON BAS GAUCHE ---- */

/* ---- NAVBAR LIENS BLANCS EN DARK MODE ---- */
[data-theme="dark"] .navbar-area .navbar-nav li a,
[data-theme="dark"] .navbar-area .navbar-nav > li > a,
[data-theme="dark"] nav.navbar ul li a,
[data-theme="dark"] #multi_tenancy_menu li a,
[data-theme="dark"] .nav-container ul li a,
[data-theme="dark"] .navbar-collapse ul li a {
    color: #FFFFFF !important;
    opacity: 1 !important;
}
[data-theme="dark"] .navbar-area .navbar-nav li a:hover,
[data-theme="dark"] #multi_tenancy_menu li a:hover {
    color: #EC4899 !important;
}

/* ---- BOUTON BAS GAUCHE ---- */

/* ============================================
   DARK MODE - TOUS LES THÈMES TENANTS
   ============================================ */

/* --- TEXTES GÉNÉRAUX --- */
[data-theme="dark"] p,
[data-theme="dark"] span:not(.badge):not(.btn):not([class*="color"]),
[data-theme="dark"] li,
[data-theme="dark"] td, [data-theme="dark"] th,
[data-theme="dark"] label,
[data-theme="dark"] .section-para,
[data-theme="dark"] .about-contents-para,
[data-theme="dark"] .choose-contents-para,
[data-theme="dark"] .color-light { color: #CBD5E1 !important; }

/* --- FAQ / ACCORDION --- */
[data-theme="dark"] .accordion-item,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .accordion-button {
    background: #1A1A2E !important;
    color: #F1F5F9 !important;
    border-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .accordion-body,
[data-theme="dark"] .accordion-button:not(.collapsed) {
    background: #111118 !important;
    color: #CBD5E1 !important;
}

/* --- CARDS BLANCHES (choose area, features) --- */
[data-theme="dark"] .choose-wrapper,
[data-theme="dark"] .choose-item,
[data-theme="dark"] .single-choose,
[data-theme="dark"] .features-item,
[data-theme="dark"] .single-features,
[data-theme="dark"] .work-item,
[data-theme="dark"] .single-work {
    background: #1A1A2E !important;
    border-color: rgba(255,255,255,0.07) !important;
}

[data-theme="dark"] .choose-wrapper *,
[data-theme="dark"] .choose-item *,
[data-theme="dark"] .single-choose *,
[data-theme="dark"] .features-item *,
[data-theme="dark"] .single-features * {
    color: #CBD5E1 !important;
}

[data-theme="dark"] .choose-wrapper h1,
[data-theme="dark"] .choose-wrapper h2,
[data-theme="dark"] .choose-wrapper h3,
[data-theme="dark"] .choose-wrapper h4,
[data-theme="dark"] .single-choose h3,
[data-theme="dark"] .single-choose h4 { color: #F1F5F9 !important; }

/* --- PRICING PLANS --- */
[data-theme="dark"] .single-price-plan,
[data-theme="dark"] .price-plan-wrapper,
[data-theme="dark"] .pricing-plan-item {
    background: #1A1A2E !important;
    border-color: rgba(255,255,255,0.1) !important;
}
[data-theme="dark"] .single-price-plan *,
[data-theme="dark"] .price-plan-wrapper * { color: #CBD5E1 !important; }
[data-theme="dark"] .single-price-plan h1,
[data-theme="dark"] .single-price-plan h2,
[data-theme="dark"] .single-price-plan h3,
[data-theme="dark"] .single-price-plan h4,
[data-theme="dark"] .single-price-plan .price,
[data-theme="dark"] .single-price-plan .amount { color: #F8FAFC !important; }

/* Textarea commission plan */
[data-theme="dark"] .single-price-plan textarea,
[data-theme="dark"] .single-price-plan input[type="text"] {
    background: #0F0F17 !important;
    color: #CBD5E1 !important;
    border-color: rgba(255,255,255,0.1) !important;
}

/* Bouton "A Vie" non actif */
[data-theme="dark"] .cmn-btn-outline-one {
    border-color: rgba(255,255,255,0.3) !important;
    color: #CBD5E1 !important;
    background: transparent !important;
}

/* --- USER DASHBOARD --- */
[data-theme="dark"] .user-dashboard-sidebar,
[data-theme="dark"] .dashboard-sidebar {
    background: #1A1A2E !important;
    border-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .user-dashboard-sidebar *,
[data-theme="dark"] .dashboard-sidebar * { color: #CBD5E1 !important; }
[data-theme="dark"] .user-dashboard-sidebar .active,
[data-theme="dark"] .dashboard-sidebar .active {
    background: rgba(124,58,237,0.2) !important;
    color: #F1F5F9 !important;
}

/* --- PACKAGE ORDERS / COMPTE PAIEMENT --- */
[data-theme="dark"] .package-order-wrap,
[data-theme="dark"] .order-page-wrap,
[data-theme="dark"] .single-order-item {
    background: #1A1A2E !important;
    border-color: rgba(255,255,255,0.07) !important;
    color: #CBD5E1 !important;
}
[data-theme="dark"] .package-order-wrap *,
[data-theme="dark"] .order-page-wrap * { color: #CBD5E1 !important; }
[data-theme="dark"] .package-order-wrap h1,
[data-theme="dark"] .package-order-wrap h2,
[data-theme="dark"] .package-order-wrap h3,
[data-theme="dark"] .package-order-wrap h4,
[data-theme="dark"] .order-page-wrap h1,
[data-theme="dark"] .order-page-wrap h2,
[data-theme="dark"] .order-page-wrap h3,
[data-theme="dark"] .order-page-wrap h4 { color: #F1F5F9 !important; }

/* Badges status invisibles */
[data-theme="dark"] .badge,
[data-theme="dark"] .status-badge { opacity: 1 !important; }

/* --- THÈME ELECTRO TENANT --- */
[data-theme="dark"] .electro-header,
[data-theme="dark"] .header-area-two { background: #0A0A0F !important; }
[data-theme="dark"] .shop-sidebar-widget,
[data-theme="dark"] .widget-item { background: #1A1A2E !important; }
[data-theme="dark"] .product-details-area { background: #0F0F17 !important; }
[data-theme="dark"] .product-details-contents { background: #1A1A2E !important; }
[data-theme="dark"] .global-card-two,
[data-theme="dark"] .single-product-item { background: #1A1A2E !important; }
[data-theme="dark"] .tab-content,
[data-theme="dark"] .nav-tabs { background: #111118 !important; }
[data-theme="dark"] .nav-tabs .nav-link { color: #CBD5E1 !important; }
[data-theme="dark"] .nav-tabs .nav-link.active { color: #7C3AED !important; border-color: #7C3AED !important; }

/* --- THÈME CASUAL TENANT --- */
[data-theme="dark"] .casual-header { background: #0A0A0F !important; }

/* --- THÈME FURNITO TENANT --- */
[data-theme="dark"] .furnito-header { background: #0A0A0F !important; }

/* --- CONTENU PRINCIPAL --- */
[data-theme="dark"] .main-content-area,
[data-theme="dark"] .content-area,
[data-theme="dark"] .page-content { background: #0F0F17 !important; }

/* --- DROPDOWNS GÉNÉRAUX --- */
[data-theme="dark"] .dropdown-menu {
    background: #1A1A2E !important;
    border-color: rgba(124,58,237,0.2) !important;
}
[data-theme="dark"] .dropdown-item {
    color: #CBD5E1 !important;
    background: transparent !important;
}
[data-theme="dark"] .dropdown-item:hover {
    background: rgba(124,58,237,0.15) !important;
    color: #F1F5F9 !important;
}

/* --- CHECKOUT --- */
[data-theme="dark"] .checkout-area,
[data-theme="dark"] .checkout-wrapper,
[data-theme="dark"] .order-review-area { background: #0F0F17 !important; }
[data-theme="dark"] .checkout-form-wrap,
[data-theme="dark"] .order-review-wrap {
    background: #1A1A2E !important;
    border-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .checkout-area *,
[data-theme="dark"] .checkout-wrapper * { color: #CBD5E1 !important; }

/* --- SEARCH BOX --- */
[data-theme="dark"] .search-box,
[data-theme="dark"] .search-form input {
    background: #1A1A2E !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #F1F5F9 !important;
}

/* --- PAGINATION --- */
[data-theme="dark"] .pagination .page-link {
    background: #1A1A2E !important;
    border-color: rgba(255,255,255,0.07) !important;
    color: #CBD5E1 !important;
}
[data-theme="dark"] .pagination .page-item.active .page-link {
    background: #7C3AED !important;
    color: #fff !important;
}

/* --- NEWSLETTER / CTA SECTIONS --- */
[data-theme="dark"] .newsletter-area,
[data-theme="dark"] .cta-area,
[data-theme="dark"] .subscribe-area {
    background: #1A1A2E !important;
}
[data-theme="dark"] .newsletter-area *,
[data-theme="dark"] .cta-area * { color: #F1F5F9 !important; }

/* --- COUNTER AREA --- */
[data-theme="dark"] .counter-area,
[data-theme="dark"] .border-counter { background: #1A1A2E !important; }
[data-theme="dark"] .counter-area * { color: #CBD5E1 !important; }
[data-theme="dark"] .counter-area h2,
[data-theme="dark"] .counter-area h3 { color: #F1F5F9 !important; }

/* ============================================
   FIX DROPDOWNS NAVBAR - TOUS THEMES TENANTS
   ============================================ */

/* Login account dropdown */
[data-theme="dark"] .login-account > ul,
[data-theme="dark"] .login-account .dropdown-list,
[data-theme="dark"] .login-account > div > ul,
[data-theme="dark"] .nav-right-content .login-account ul {
    background: #111118 !important;
    border: 1px solid rgba(124,58,237,0.3) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9) !important;
}

[data-theme="dark"] .login-account ul li a,
[data-theme="dark"] .login-account ul li,
[data-theme="dark"] .login-account .dropdown-list li a,
[data-theme="dark"] .nav-right-content .login-account ul li a {
    color: #FFFFFF !important;
    background: transparent !important;
}

[data-theme="dark"] .login-account ul li a:hover,
[data-theme="dark"] .nav-right-content .login-account ul li a:hover {
    color: #7C3AED !important;
    background: rgba(124,58,237,0.1) !important;
}

/* Tous les dropdowns navbar */
[data-theme="dark"] .nav-right-content .dropdown,
[data-theme="dark"] .nav-right-content .dropdown-menu,
[data-theme="dark"] .navbar-right-content .dropdown-menu,
[data-theme="dark"] .header-right .dropdown-menu {
    background: #111118 !important;
    border: 1px solid rgba(124,58,237,0.3) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9) !important;
}

[data-theme="dark"] .nav-right-content .dropdown-menu a,
[data-theme="dark"] .nav-right-content .dropdown-menu li,
[data-theme="dark"] .navbar-right-content .dropdown-menu a,
[data-theme="dark"] .header-right .dropdown-menu a {
    color: #FFFFFF !important;
    background: transparent !important;
}

[data-theme="dark"] .nav-right-content .dropdown-menu a:hover {
    color: #7C3AED !important;
    background: rgba(124,58,237,0.1) !important;
}

/* Cart dropdown */
[data-theme="dark"] .cart-shopping .cart-dropdown,
[data-theme="dark"] .mini-cart-wrap,
[data-theme="dark"] .cart-items-wrapper {
    background: #111118 !important;
    border: 1px solid rgba(124,58,237,0.3) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.9) !important;
}

[data-theme="dark"] .cart-shopping .cart-dropdown *,
[data-theme="dark"] .mini-cart-wrap * {
    color: #E2E8F0 !important;
}

/* Language dropdown */
[data-theme="dark"] .language_dropdown .dropdown-menu,
[data-theme="dark"] #languages_selector .dropdown-menu {
    background: #111118 !important;
    border: 1px solid rgba(124,58,237,0.3) !important;
}

[data-theme="dark"] .language_dropdown .dropdown-menu a,
[data-theme="dark"] #languages_selector .dropdown-menu a {
    color: #FFFFFF !important;
}

/* Wishlist dropdown */
[data-theme="dark"] .wishlist-dropdown,
[data-theme="dark"] .wishlist-popup {
    background: #111118 !important;
    border: 1px solid rgba(124,58,237,0.3) !important;
    color: #E2E8F0 !important;
}

[data-theme="dark"] .wishlist-dropdown *,
[data-theme="dark"] .wishlist-popup * { color: #E2E8F0 !important; }

/* Search popup */
[data-theme="dark"] .search-popup,
[data-theme="dark"] .search-box-wrapper {
    background: rgba(10,10,20,0.97) !important;
}

[data-theme="dark"] .search-popup input,
[data-theme="dark"] .search-box-wrapper input {
    background: #1A1A2E !important;
    color: #F1F5F9 !important;
    border-color: rgba(124,58,237,0.3) !important;
}

/* Fix checkbox dans filtres - rendre visible */
[data-theme="dark"] input[type="checkbox"] {
    accent-color: #7C3AED !important;
}

/* Fix textes dans sidebar shop */
[data-theme="dark"] .shop-sidebar .widget-title,
[data-theme="dark"] .widget-title,
[data-theme="dark"] .sidebar-title {
    color: #F1F5F9 !important;
}

[data-theme="dark"] .shop-sidebar label,
[data-theme="dark"] .filter-label {
    color: #CBD5E1 !important;
}

/* Fix textes noms produits */
[data-theme="dark"] .global-card-contents-title,
[data-theme="dark"] .global-card-contents-title-two,
[data-theme="dark"] .product-title,
[data-theme="dark"] .book-title {
    color: #F1F5F9 !important;
}

/* Fix prix produits */
[data-theme="dark"] .product-price,
[data-theme="dark"] .book-price,
[data-theme="dark"] .price-wrap { color: #F1F5F9 !important; }

/* Fix topbar tenant */
[data-theme="dark"] .topbar-area,
[data-theme="dark"] .header-top { background: #0A0A0F !important; }

[data-theme="dark"] .topbar-area *,
[data-theme="dark"] .header-top * { color: #94A3B8 !important; }

/* Fix "Showing X results" */
[data-theme="dark"] .showing-result,
[data-theme="dark"] .result-count { color: #CBD5E1 !important; }

/* Fix sort dropdown */
[data-theme="dark"] .nice-select,
[data-theme="dark"] .nice-select .list {
    background: #1A1A2E !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #F1F5F9 !important;
}

[data-theme="dark"] .nice-select .option {
    color: #CBD5E1 !important;
    background: #1A1A2E !important;
}

[data-theme="dark"] .nice-select .option:hover,
[data-theme="dark"] .nice-select .option.selected {
    background: rgba(124,58,237,0.2) !important;
    color: #F1F5F9 !important;
}

/* ============================================
   FIX DROPDOWN LOGIN - account-list-item
   ============================================ */
[data-theme="dark"] .account-list-item {
    background: #111118 !important;
    border: 1px solid rgba(124,58,237,0.3) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.95) !important;
}

[data-theme="dark"] .account-list-item li,
[data-theme="dark"] .account-list-item .list,
[data-theme="dark"] .account-list-item li a,
[data-theme="dark"] .account-list-item .list a {
    color: #FFFFFF !important;
    background: transparent !important;
}

[data-theme="dark"] .account-list-item li a:hover,
[data-theme="dark"] .account-list-item .list a:hover {
    color: #7C3AED !important;
    background: rgba(124,58,237,0.1) !important;
}

/* ============================================
   FIX BOUTONS ADD TO CART / BUY NOW DARK MODE
   ============================================ */
[data-theme="dark"] .btn-cart,
[data-theme="dark"] .add-to-cart-btn,
[data-theme="dark"] .btn-buy,
[data-theme="dark"] .buy-now-btn,
[data-theme="dark"] .product-btn,
[data-theme="dark"] .add_to_cart_btn,
[data-theme="dark"] .buy_now_btn,
[data-theme="dark"] .cart-btn,
[data-theme="dark"] button[name="add-to-cart"],
[data-theme="dark"] .single-product-action .btn,
[data-theme="dark"] .product-details-action .btn,
[data-theme="dark"] .product-action-btn {
    background: linear-gradient(135deg, #7C3AED, #EC4899) !important;
    color: #FFFFFF !important;
    border-color: transparent !important;
    opacity: 1 !important;
}

[data-theme="dark"] .btn-cart:hover,
[data-theme="dark"] .add-to-cart-btn:hover,
[data-theme="dark"] .btn-buy:hover,
[data-theme="dark"] .buy-now-btn:hover {
    opacity: 0.9 !important;
    transform: translateY(-2px) !important;
}

/* Fix boutons outline en dark mode */
[data-theme="dark"] .btn-outline-primary {
    border-color: #7C3AED !important;
    color: #7C3AED !important;
}
[data-theme="dark"] .btn-outline-primary:hover {
    background: #7C3AED !important;
    color: #fff !important;
}

/* Fix image fond blanc dans product details */
[data-theme="dark"] .product-gallery-area,
[data-theme="dark"] .product-thumb-area,
[data-theme="dark"] .single-product-img {
    background: #1A1A2E !important;
    border-radius: 12px !important;
}

/* ============================================
   FIX BOUTONS PRODUCT DETAILS - DARK MODE
   ============================================ */

/* Tous les boutons qui sont grisés */
[data-theme="dark"] .add_to_cart_single_page,
[data-theme="dark"] .buy_now_single_page,
[data-theme="dark"] .add-to-cart-btn,
[data-theme="dark"] .buy-now-btn,
[data-theme="dark"] .product-details-area .btn,
[data-theme="dark"] .product-details-area button,
[data-theme="dark"] .single-product-action button,
[data-theme="dark"] .single-product-action .btn,
[data-theme="dark"] .cart-wishlist-area .btn,
[data-theme="dark"] .action-btn,
[data-theme="dark"] .add-to-cart,
[data-theme="dark"] .buy-now {
    background: linear-gradient(135deg, #7C3AED, #EC4899) !important;
    color: #FFFFFF !important;
    border: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Boutons wishlist/compare - garder leur style */
[data-theme="dark"] .wishlist-btn,
[data-theme="dark"] .compare-btn,
[data-theme="dark"] .btn-wishlist,
[data-theme="dark"] .btn-compare {
    background: rgba(124,58,237,0.15) !important;
    color: #7C3AED !important;
    border: 1px solid rgba(124,58,237,0.3) !important;
}

/* Image produit - fond blanc visible */
[data-theme="dark"] .product-gallery-wrap,
[data-theme="dark"] .product-thumb-wrap,
[data-theme="dark"] .product-gallery-img,
[data-theme="dark"] .product-img-wrap {
    background: #1A1A2E !important;
    border-radius: 12px !important;
    padding: 10px !important;
}

/* Alert campaign - rendre lisible */
[data-theme="dark"] .alert-warning {
    background: rgba(245,158,11,0.15) !important;
    border-color: rgba(245,158,11,0.3) !important;
    color: #FCD34D !important;
}

/* Status badge */
[data-theme="dark"] .product-status,
[data-theme="dark"] .stock-status { color: #10B981 !important; }

/* Prix barré */
[data-theme="dark"] .old-price,
[data-theme="dark"] del { color: #64748B !important; }

/* Prix actuel */
[data-theme="dark"] .current-price,
[data-theme="dark"] .product-price { color: #F8FAFC !important; }

/* Quantity input */
[data-theme="dark"] .quantity-input,
[data-theme="dark"] .qty-input { 
    background: #111118 !important; 
    color: #F1F5F9 !important; 
    border-color: rgba(124,58,237,0.3) !important;
}

/* Tabs produit */
[data-theme="dark"] .product-details-tab .nav-link { color: #94A3B8 !important; }
[data-theme="dark"] .product-details-tab .nav-link.active { 
    color: #7C3AED !important; 
    border-bottom: 2px solid #7C3AED !important; 
}

/* ============================================
   FIX EXACT BOUTONS ADD TO CART / BUY NOW
   ============================================ */
[data-theme="dark"] .add_to_cart_single_page,
[data-theme="dark"] .but_now_single_page,
[data-theme="dark"] .cmn-btn.cmn-btn-bg-heading,
[data-theme="dark"] .cmn-btn.cmn-btn-bg-steam,
[data-theme="dark"] .btn-wrapper .cmn-btn,
[data-theme="dark"] .quantity-btn .cmn-btn {
    background: linear-gradient(135deg, #7C3AED, #EC4899) !important;
    color: #FFFFFF !important;
    border: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

[data-theme="dark"] .add_to_wishlist_single_page,
[data-theme="dark"] .compare-btn,
[data-theme="dark"] .btn-wishlist {
    background: rgba(124,58,237,0.15) !important;
    color: #7C3AED !important;
    border: 1px solid rgba(124,58,237,0.3) !important;
}

/* Fix image produit fond blanc */
[data-theme="dark"] .product-details-left,
[data-theme="dark"] .product-gallery-wrap {
    background: #1A1A2E !important;
    border-radius: 12px !important;
    padding: 15px !important;
}

/* ============================================
   FIX WITHDRAW MODAL DARK MODE
   ============================================ */
[data-theme="dark"] .withdraw-modal .modal-content,
[data-theme="dark"] #withdrawModal .modal-content,
[data-theme="dark"] [id*="withdraw"] .modal-content {
    background: #1A1A2E !important;
    color: #E2E8F0 !important;
    border: 1px solid rgba(124,58,237,0.3) !important;
}

[data-theme="dark"] .withdraw-modal .modal-header,
[data-theme="dark"] #withdrawModal .modal-header {
    background: linear-gradient(135deg,rgba(124,58,237,0.15),rgba(236,72,153,0.15)) !important;
    border-bottom: 1px solid rgba(124,58,237,0.2) !important;
    color: #F1F5F9 !important;
}

[data-theme="dark"] .withdraw-modal h5,
[data-theme="dark"] #withdrawModal h5,
[data-theme="dark"] [id*="withdraw"] h4,
[data-theme="dark"] [id*="withdraw"] h5 { color: #F1F5F9 !important; }

[data-theme="dark"] .withdraw-modal label,
[data-theme="dark"] #withdrawModal label { color: #94A3B8 !important; }

/* Payment gateway cards in modal */
[data-theme="dark"] .payment-gateway-wrapper .single-gateway,
[data-theme="dark"] .payment-gateway-items,
[data-theme="dark"] [class*="gateway-item"],
[data-theme="dark"] .gateway-card {
    background: #111118 !important;
    border: 1px solid rgba(124,58,237,0.2) !important;
    color: #E2E8F0 !important;
}

[data-theme="dark"] .payment-gateway-wrapper .single-gateway:hover {
    border-color: #7C3AED !important;
}

/* Alert info in modal */
[data-theme="dark"] .alert.alert-info {
    background: rgba(6,182,212,0.1) !important;
    border-color: rgba(6,182,212,0.2) !important;
    color: #67E8F9 !important;
}

/* Available balance */
[data-theme="dark"] .available-balance,
[data-theme="dark"] .balance-info {
    background: rgba(124,58,237,0.1) !important;
    border-color: rgba(124,58,237,0.2) !important;
    color: #E2E8F0 !important;
}

/* ============================================
   FIX PRODUCT DETAILS DARK MODE BEATWAVE
   ============================================ */
[data-theme="dark"] .book-details-product,
[data-theme="dark"] .bw-product-detail {
    background: #0F0F17 !important;
}
[data-theme="dark"] .book-details-product-contents-title,
[data-theme="dark"] .book-details-product h2 {
    color: #F1F5F9 !important;
}
[data-theme="dark"] .book-details-product {
    background: #1A1A2E !important;
    border-radius: 16px !important;
}
[data-theme="dark"] .digital-product-details-area,
[data-theme="dark"] .product-details-area,
[data-theme="dark"] [class*="product-detail"] {
    background: #0F0F17 !important;
}
/* Breadcrumb dark */
[data-theme="dark"] .breadcrumb-area,
[data-theme="dark"] .breadcrumb-wrapper {
    background: #111118 !important;
}
[data-theme="dark"] .breadcrumb-area h1,
[data-theme="dark"] .breadcrumb-area h2,
[data-theme="dark"] .breadcrumb-title {
    color: #F1F5F9 !important;
}
[data-theme="dark"] .breadcrumb-item a { color: #7C3AED !important; }
[data-theme="dark"] .breadcrumb-item.active { color: #94A3B8 !important; }

/* ============================================
   FIX DARK MODE PRODUCT DETAILS BEATWAVE
   ============================================ */
[data-theme="dark"] .book-details-sidebar-content,
[data-theme="dark"] .bookreview-content-wrapper,
[data-theme="dark"] .single-upcoming-wrapper,
[data-theme="dark"] .book-details-product.bg-white,
[data-theme="dark"] .details-product-padding,
[data-theme="dark"] .bookreviewer-padding,
[data-theme="dark"] .sidebar-content-padding {
    background: #1A1A2E !important;
    color: #E2E8F0 !important;
    border-color: rgba(124,58,237,0.15) !important;
}

[data-theme="dark"] .book-details-sidebar-content *,
[data-theme="dark"] .bookreview-content-wrapper *,
[data-theme="dark"] .single-upcoming-wrapper * {
    color: #CBD5E1 !important;
    border-color: rgba(124,58,237,0.1) !important;
}

/* Titres dans sidebar */
[data-theme="dark"] .book-details-sidebar-content h1,
[data-theme="dark"] .book-details-sidebar-content h2,
[data-theme="dark"] .book-details-sidebar-content h3,
[data-theme="dark"] .book-details-sidebar-content h4,
[data-theme="dark"] .book-details-sidebar-content h5,
[data-theme="dark"] .single-upcoming-wrapper h1,
[data-theme="dark"] .single-upcoming-wrapper h2,
[data-theme="dark"] .single-upcoming-wrapper h3,
[data-theme="dark"] .single-upcoming-wrapper h4,
[data-theme="dark"] .single-upcoming-wrapper h5 {
    color: #F1F5F9 !important;
}

/* Prix dans sidebar */
[data-theme="dark"] .single-upcoming-wrapper .flash-prices,
[data-theme="dark"] .single-upcoming-wrapper .color-one {
    color: #A78BFA !important;
}

/* Description tab */
[data-theme="dark"] .bookreview-content-wrapper p,
[data-theme="dark"] .bookreview-content-wrapper span {
    color: #94A3B8 !important;
}

/* Tabs Description/Reviews */
[data-theme="dark"] .nav-tabs,
[data-theme="dark"] .tab-content {
    background: #1A1A2E !important;
    border-color: rgba(124,58,237,0.2) !important;
}
[data-theme="dark"] .nav-tabs .nav-link {
    color: #94A3B8 !important;
}
[data-theme="dark"] .nav-tabs .nav-link.active {
    background: #7C3AED !important;
    color: #fff !important;
    border-color: #7C3AED !important;
}

/* Related products sidebar */
[data-theme="dark"] .book-details-sidebar-content .single-upcoming-wrapper {
    background: #111118 !important;
    border: 1px solid rgba(124,58,237,0.15) !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
}

/* Images dans sidebar - fond blanc visible */
[data-theme="dark"] .single-upcoming-wrapper img {
    background: #1A1A2E !important;
    border-radius: 8px !important;
}

/* ============================================
   FIX DARK MODE PRODUCT DETAILS BEATWAVE
   ============================================ */
[data-theme="dark"] .book-details-sidebar-content,
[data-theme="dark"] .bookreview-content-wrapper,
[data-theme="dark"] .single-upcoming-wrapper,
[data-theme="dark"] .book-details-product.bg-white,
[data-theme="dark"] .details-product-padding,
[data-theme="dark"] .bookreviewer-padding,
[data-theme="dark"] .sidebar-content-padding {
    background: #1A1A2E !important;
    color: #E2E8F0 !important;
    border-color: rgba(124,58,237,0.15) !important;
}

[data-theme="dark"] .book-details-sidebar-content *,
[data-theme="dark"] .bookreview-content-wrapper *,
[data-theme="dark"] .single-upcoming-wrapper * {
    color: #CBD5E1 !important;
    border-color: rgba(124,58,237,0.1) !important;
}

/* Titres dans sidebar */
[data-theme="dark"] .book-details-sidebar-content h1,
[data-theme="dark"] .book-details-sidebar-content h2,
[data-theme="dark"] .book-details-sidebar-content h3,
[data-theme="dark"] .book-details-sidebar-content h4,
[data-theme="dark"] .book-details-sidebar-content h5,
[data-theme="dark"] .single-upcoming-wrapper h1,
[data-theme="dark"] .single-upcoming-wrapper h2,
[data-theme="dark"] .single-upcoming-wrapper h3,
[data-theme="dark"] .single-upcoming-wrapper h4,
[data-theme="dark"] .single-upcoming-wrapper h5 {
    color: #F1F5F9 !important;
}

/* Prix dans sidebar */
[data-theme="dark"] .single-upcoming-wrapper .flash-prices,
[data-theme="dark"] .single-upcoming-wrapper .color-one {
    color: #A78BFA !important;
}

/* Description tab */
[data-theme="dark"] .bookreview-content-wrapper p,
[data-theme="dark"] .bookreview-content-wrapper span {
    color: #94A3B8 !important;
}

/* Tabs Description/Reviews */
[data-theme="dark"] .nav-tabs,
[data-theme="dark"] .tab-content {
    background: #1A1A2E !important;
    border-color: rgba(124,58,237,0.2) !important;
}
[data-theme="dark"] .nav-tabs .nav-link {
    color: #94A3B8 !important;
}
[data-theme="dark"] .nav-tabs .nav-link.active {
    background: #7C3AED !important;
    color: #fff !important;
    border-color: #7C3AED !important;
}

/* Related products sidebar */
[data-theme="dark"] .book-details-sidebar-content .single-upcoming-wrapper {
    background: #111118 !important;
    border: 1px solid rgba(124,58,237,0.15) !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
}

/* Images dans sidebar - fond blanc visible */
[data-theme="dark"] .single-upcoming-wrapper img {
    background: #1A1A2E !important;
    border-radius: 8px !important;
}

/* ============================================
   FIX COMPLET DARK MODE - ZONES BLANCHES
   ============================================ */

/* Fond sombre + texte clair sur TOUTES les zones blanches */
[data-theme="dark"] .book-details-sidebar-content.bg-white,
[data-theme="dark"] .bookreview-content-wrapper.bg-white,
[data-theme="dark"] .single-upcoming-wrapper.bg-white,
[data-theme="dark"] .sidebar-content-padding,
[data-theme="dark"] .bookreviewer-padding,
[data-theme="dark"] .book-details-product-contents,
[data-theme="dark"] .book-details-product-flex,
[data-theme="dark"] .details-product-padding {
    background: #1A1A2E !important;
    color: #E2E8F0 !important;
}

/* Forcer TOUS les textes enfants en clair */
[data-theme="dark"] .book-details-sidebar-content.bg-white p,
[data-theme="dark"] .book-details-sidebar-content.bg-white span,
[data-theme="dark"] .book-details-sidebar-content.bg-white a,
[data-theme="dark"] .book-details-sidebar-content.bg-white li,
[data-theme="dark"] .book-details-sidebar-content.bg-white label,
[data-theme="dark"] .book-details-sidebar-content.bg-white div,
[data-theme="dark"] .bookreview-content-wrapper.bg-white p,
[data-theme="dark"] .bookreview-content-wrapper.bg-white span,
[data-theme="dark"] .bookreview-content-wrapper.bg-white div,
[data-theme="dark"] .bookreview-content-wrapper.bg-white h1,
[data-theme="dark"] .bookreview-content-wrapper.bg-white h2,
[data-theme="dark"] .bookreview-content-wrapper.bg-white h3,
[data-theme="dark"] .bookreview-content-wrapper.bg-white h4,
[data-theme="dark"] .bookreview-content-wrapper.bg-white h5,
[data-theme="dark"] .single-upcoming-wrapper.bg-white p,
[data-theme="dark"] .single-upcoming-wrapper.bg-white span,
[data-theme="dark"] .single-upcoming-wrapper.bg-white div,
[data-theme="dark"] .single-upcoming-wrapper.bg-white h1,
[data-theme="dark"] .single-upcoming-wrapper.bg-white h2,
[data-theme="dark"] .single-upcoming-wrapper.bg-white h3,
[data-theme="dark"] .single-upcoming-wrapper.bg-white h4,
[data-theme="dark"] .single-upcoming-wrapper.bg-white h5 {
    color: #CBD5E1 !important;
}

/* Titres en blanc pur */
[data-theme="dark"] .single-upcoming-wrapper.bg-white .book-title,
[data-theme="dark"] .single-upcoming-wrapper.bg-white .product-title,
[data-theme="dark"] .single-upcoming-wrapper.bg-white h4,
[data-theme="dark"] .single-upcoming-wrapper.bg-white h5,
[data-theme="dark"] .bookreview-content-wrapper.bg-white h4,
[data-theme="dark"] .bookreview-content-wrapper.bg-white h5 {
    color: #F1F5F9 !important;
}

/* Prix en violet */
[data-theme="dark"] .single-upcoming-wrapper.bg-white .flash-prices,
[data-theme="dark"] .single-upcoming-wrapper.bg-white .color-one,
[data-theme="dark"] .single-upcoming-wrapper.bg-white .price {
    color: #A78BFA !important;
}

/* Forcer via attribut data-theme sur body */
[data-theme="dark"] .bg-white {
    background: #1A1A2E !important;
    color: #E2E8F0 !important;
}

[data-theme="dark"] .bg-white * {
    color: #CBD5E1 !important;
}

[data-theme="dark"] .bg-white h1,
[data-theme="dark"] .bg-white h2,
[data-theme="dark"] .bg-white h3,
[data-theme="dark"] .bg-white h4,
[data-theme="dark"] .bg-white h5,
[data-theme="dark"] .bg-white h6 {
    color: #F1F5F9 !important;
}

[data-theme="dark"] .bg-white a {
    color: #7C3AED !important;
}

[data-theme="dark"] .bg-white a:hover {
    color: #A78BFA !important;
}

/* Prix ancien barré */
[data-theme="dark"] .bg-white .flash-old-prices,
[data-theme="dark"] .flash-old-prices {
    color: #475569 !important;
}

/* Bordures dans les zones blanches */
[data-theme="dark"] .bg-white hr,
[data-theme="dark"] .bg-white .border,
[data-theme="dark"] .bg-white [class*="border"] {
    border-color: rgba(124,58,237,0.15) !important;
}

/* Image dans les zones blanches - enlever fond blanc */
[data-theme="dark"] .single-upcoming-wrapper.bg-white img {
    background: #111118 !important;
    border-radius: 8px !important;
}

/* Tab Description/Reviews */
[data-theme="dark"] .tab-pane.bg-white,
[data-theme="dark"] .tab-content .bg-white {
    background: #1A1A2E !important;
}
