/* =============================================================
   ADDONXPERT — DARK THEME OVERRIDE
   Loaded after style.css and ecommerce.css
   Activated via body.dark-theme class
   ============================================================= */

/* === DARK MODE ROOT OVERRIDES === */
body.dark-theme {
    --primary-color: #2B303A;
    --primary-bg-color: #323742;
    --bg-dark: #1E222A;
    --bg-medium: #3A3F4B;
    --text-primary: #F0F2F5;
    --text-secondary: #B0B8C8;
    --text-trimary: #8891A0;
    --text-light: #B0B8C8;
    --text-muted: #6B7280;
    --border-color: #4A4F5B;
    --placeholder-color: #6B7280;
    --placeholder-bg: #3A3F4B;
    --card-border: #4A4F5B;
    --el-box-shadow: 2px 4px 24px 2px rgba(0, 0, 0, 0.3);
    --header-box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.4);
    --specific-color: #F0F2F5;
    background-color: #2B303A;
    color: #F0F2F5;
}

/* === BODY === */
body.dark-theme {
    background-color: #2B303A;
}

/* === HEADER TOP === */
body.dark-theme .header-top {
    background-color: #1E222A;
}

/* === HEADER FIXED / NAV === */
body.dark-theme .header-fixed {
    background-color: #2B303A;
    border-bottom: 1px solid #4A4F5B;
}

body.dark-theme .header-fixed.fixed {
    background-color: #2B303A;
}

body.dark-theme .header-fixed .logo img {
    filter: brightness(10);
}

/* === MAIN NAVIGATION === */
body.dark-theme .main-mnu > ul > li > a,
body.dark-theme .main-mnu > ul > li > a span {
    color: #F0F2F5;
}

body.dark-theme .main-mnu > ul > li > a:hover,
body.dark-theme .main-mnu > ul > li > a:hover span {
    color: #00C8E8;
}

body.dark-theme .main-sub-mnu {
    background-color: #323742;
    border: 1px solid #4A4F5B;
}

body.dark-theme .main-sub-mnu-list li a span {
    color: #B0B8C8;
}

body.dark-theme .main-sub-mnu-list li a:hover span {
    color: #00C8E8;
}

body.dark-theme .mega-mnu-heading {
    color: #00C8E8 !important;
}

body.dark-theme .mnu-label {
    background-color: #00C8E8;
    color: #2B303A;
}

/* === MOBILE MENU === */
body.dark-theme .mob-main-mnu {
    background-color: #2B303A;
}

body.dark-theme .mob-main-mnu-list li a {
    color: #F0F2F5;
}

body.dark-theme .mob-main-mnu-content {
    background-color: #2B303A;
}

body.dark-theme .mmsm {
    background-color: #323742;
}

body.dark-theme .mmsm-item-heading {
    color: #00C8E8;
}

/* === HEADER ACTIONS === */
body.dark-theme .header-lang-current i {
    color: #B0B8C8;
}

body.dark-theme .header-lang-list {
    background-color: #323742;
    border-color: #4A4F5B;
}

body.dark-theme .header-lang-list a span {
    color: #B0B8C8;
}

body.dark-theme .header-lang-list a:hover span {
    color: #00C8E8;
}

/* === INTRO / HERO === */
body.dark-theme .section-bgc.intro {
    background-color: #2B303A;
}

/* === SECTIONS === */
body.dark-theme .section-bg,
body.dark-theme .section-bgc {
    background-color: #323742;
}

body.dark-theme .section {
    background-color: #2B303A;
}

/* === HEADINGS === */
body.dark-theme .section-heading h1,
body.dark-theme .section-heading h2,
body.dark-theme .section-heading h3,
body.dark-theme .section-heading h4 {
    color: #FFFFFF;
}

body.dark-theme .section-subheading {
    color: #00C8E8;
}

body.dark-theme .section-desc {
    color: #B0B8C8;
}

/* === CONTENT === */
body.dark-theme .content,
body.dark-theme .content ul,
body.dark-theme .content ol,
body.dark-theme .content p {
    color: #B0B8C8;
}

body.dark-theme .content strong {
    color: #F0F2F5;
}

body.dark-theme .content ul li::before {
    color: #00C8E8;
}

/* === BUTTONS === */
body.dark-theme .btn {
    background-color: #00C8E8;
    color: #2B303A;
    border-color: #00C8E8;
}

body.dark-theme .btn:hover {
    background-color: #00A5C4;
    color: #2B303A;
    border-color: #00A5C4;
}

body.dark-theme .btn-border {
    background-color: transparent;
    color: #00C8E8;
    border-color: #00C8E8;
}

body.dark-theme .btn-border:hover {
    background-color: #00C8E8;
    color: #2B303A;
}

body.dark-theme .btn-min {
    background-color: rgba(0, 200, 232, 0.12);
    color: #00C8E8;
    border: 1px solid rgba(0, 200, 232, 0.4);
}

body.dark-theme .btn-min:hover {
    background-color: #00C8E8;
    color: #2B303A;
}

/* btn-min inside product cards (gbi-box) - need solid background for visibility */
body.dark-theme .gbi-box .btn-min {
    background-color: #00C8E8;
    color: #2B303A;
    border: 1px solid #00C8E8;
}

body.dark-theme .gbi-box .btn-min:hover {
    background-color: #00A5C4;
    color: #2B303A;
    border-color: #00A5C4;
}

/* === SERVICE ITEMS (iitem) === */
body.dark-theme .iitem {
    background-color: #323742;
    border: 1px solid #4A4F5B;
    color: #F0F2F5;
}

body.dark-theme .iitem:hover {
    background-color: #00C8E8;
    color: #2B303A;
}

body.dark-theme .iitem-heading {
    color: #FFFFFF;
}

body.dark-theme .iitem-desc,
body.dark-theme .iitem-desc p {
    color: #B0B8C8;
}

body.dark-theme .iitem:hover .iitem-desc,
body.dark-theme .iitem:hover .iitem-desc p,
body.dark-theme .iitem:hover .iitem-heading {
    color: #2B303A;
}

body.dark-theme .iitem-icon {
    background: rgba(0, 200, 232, 0.12);
    color: #00C8E8;
}

body.dark-theme .iitem:hover .iitem-icon {
    background: #2B303A;
    color: #00C8E8;
}

/* === ITEM-STYLE (cards) === */
body.dark-theme .item-style {
    background-color: #323742;
    border-color: #4A4F5B;
}

body.dark-theme .item-style:hover {
    border-color: #00C8E8;
}

/* === PARTNER LOGOS === */
body.dark-theme .brands-min {
    background-color: transparent;
    border: none;
    border-radius: 0;
}

body.dark-theme .brands-min img {
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: all 0.3s ease;
}

body.dark-theme .brands-min:hover img {
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(0, 200, 232, 0.3));
}

/* === PRODUCT GRID === */
body.dark-theme .gb-item {
    border: 1px solid #4A4F5B;
}

body.dark-theme .gbi-box h2 {
    color: #FFFFFF;
}

/* === PRODUCT LIST PAGE === */
body.dark-theme .pitem {
    background-color: #323742;
    border-color: #4A4F5B;
}

body.dark-theme .pitem:hover {
    border-color: #00C8E8;
}

body.dark-theme .pitem-heading {
    color: #FFFFFF;
}

body.dark-theme .pitem-desc {
    color: #B0B8C8;
}

body.dark-theme .pitem-card {
    background-color: #323742;
}

/* === TABLES === */
body.dark-theme table {
    border-color: #4A4F5B;
}

body.dark-theme table th {
    background-color: #3A3F4B;
    color: #F0F2F5;
    border-color: #4A4F5B;
}

body.dark-theme table td {
    border-color: #4A4F5B;
    color: #B0B8C8;
    background-color: #2B303A;
}

body.dark-theme table tr:hover td {
    background-color: #323742;
}

/* === ACCORDION === */
body.dark-theme .accordion-heading {
    color: #F0F2F5;
    background-color: #323742;
    border-color: #4A4F5B;
}

body.dark-theme .accordion-heading:hover {
    color: #00C8E8;
}

body.dark-theme .accordion-content {
    background-color: #2B303A;
    border-color: #4A4F5B;
    color: #B0B8C8;
}

/* === TABS === */
body.dark-theme .tabs-heading li a {
    color: #B0B8C8;
}

body.dark-theme .tabs-heading li.active a {
    color: #00C8E8;
    border-color: #00C8E8;
}

/* === FORMS === */
body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select {
    background-color: #3A3F4B;
    border-color: #4A4F5B;
    color: #F0F2F5;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
    color: #6B7280;
}

body.dark-theme input:focus,
body.dark-theme textarea:focus,
body.dark-theme select:focus {
    border-color: #00C8E8;
    outline: none;
}

body.dark-theme label {
    color: #B0B8C8;
}

/* === CONTACT PAGE === */
body.dark-theme .contact-list i {
    color: #00C8E8;
}

body.dark-theme .contact-info {
    color: #B0B8C8;
}

/* === POPUP === */
body.dark-theme .popup_style .popup {
    background-color: #323742;
    color: #F0F2F5;
}

body.dark-theme .popup_heading {
    color: #FFFFFF;
}

/* === COOKIE MESSAGE === */
body.dark-theme .cookie-message {
    background-color: #323742;
    border-top: 1px solid #4A4F5B;
    color: #B0B8C8;
}

body.dark-theme .cmc-title {
    color: #FFFFFF;
}

body.dark-theme .cmc-desc {
    color: #B0B8C8;
}

body.dark-theme .cmc-desc a {
    color: #00C8E8;
}

/* === FOOTER === */
body.dark-theme .footer {
    background-color: #1E222A;
}

body.dark-theme .footer-main {
    color: #B0B8C8;
}

body.dark-theme .footer-item-heading {
    color: #FFFFFF !important;
}

body.dark-theme .footer-mnu a span,
body.dark-theme .footer-contacts a,
body.dark-theme .footer-contact-info {
    color: #B0B8C8 !important;
}

body.dark-theme .footer-mnu a:hover span,
body.dark-theme .footer-contacts a:hover {
    color: #00C8E8 !important;
}

body.dark-theme .footer-contacts i {
    color: #00C8E8;
}

body.dark-theme .footer-company-desc p {
    color: #8891A0;
}

body.dark-theme .footer-bottom {
    background-color: #1E222A;
    border-top: 1px solid #4A4F5B;
}

body.dark-theme .footer-bottom,
body.dark-theme .footer-bottom a,
body.dark-theme .copyright {
    color: #6B7280;
}

body.dark-theme .footer-bottom a:hover {
    color: #00C8E8;
}

/* === BREADCRUMB === */
body.dark-theme .breadcrumb-item,
body.dark-theme .breadcrumb-item a {
    color: #B0B8C8;
}

body.dark-theme .breadcrumb-item.active {
    color: #00C8E8;
}

/* === LINKS === */
body.dark-theme a {
    color: #00C8E8;
}

body.dark-theme a:hover {
    color: #00A5C4;
}

/* === CODE === */
body.dark-theme code {
    background-color: #3A3F4B;
    color: #00C8E8;
}

/* === BLOCKQUOTE === */
body.dark-theme blockquote {
    border-left-color: #00C8E8;
    background-color: #323742;
    color: #B0B8C8;
}

/* === HR === */
body.dark-theme hr {
    border-color: #4A4F5B;
}

/* === ALERTS === */
body.dark-theme .alert {
    border-color: #4A4F5B;
}

/* === SCROLLBAR === */
body.dark-theme::-webkit-scrollbar {
    width: 8px;
}

body.dark-theme::-webkit-scrollbar-track {
    background: #2B303A;
}

body.dark-theme::-webkit-scrollbar-thumb {
    background: #4A4F5B;
    border-radius: 4px;
}

body.dark-theme::-webkit-scrollbar-thumb:hover {
    background: #00C8E8;
}

/* === SELECTION === */
body.dark-theme ::selection {
    background-color: #00C8E8;
    color: #2B303A;
}

/* === SOCIAL LINKS === */
body.dark-theme .social-links a svg {
    fill: #B0B8C8;
}

body.dark-theme .social-links a:hover svg {
    fill: #00C8E8;
}

/* === ABOUT PAGE SPECIFICS === */
body.dark-theme .team-item {
    background-color: #323742;
    border-color: #4A4F5B;
}

body.dark-theme .team-item-heading {
    color: #FFFFFF;
}

body.dark-theme .team-item-desc {
    color: #B0B8C8;
}

/* === CAREER PAGE === */
body.dark-theme .vacancy-item {
    background-color: #323742;
    border-color: #4A4F5B;
}

body.dark-theme .vacancy-item:hover {
    border-color: #00C8E8;
}

/* === 404/503 PAGES === */
body.dark-theme .error-page {
    background-color: #2B303A;
    color: #F0F2F5;
}

/* === ISOTOPE FILTER (product-list) === */
body.dark-theme .isotope-filter button {
    color: #B0B8C8;
}

body.dark-theme .isotope-filter button.active,
body.dark-theme .isotope-filter button:hover {
    color: #00C8E8;
}

/* === THEME TOGGLE BUTTON === */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin-left: 12px;
}

.theme-toggle-btn:hover {
    border-color: #00C8E8;
    background-color: rgba(0, 200, 232, 0.1);
}

.theme-toggle-btn i {
    font-size: 18px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.theme-toggle-btn:hover i {
    color: #00C8E8;
}

/* Light mode icon (shown in dark mode) */
body.dark-theme .theme-icon-dark { display: none; }
body.dark-theme .theme-icon-light { display: inline; }

/* Dark mode icon (shown in light mode) */
body:not(.dark-theme) .theme-icon-dark { display: inline; }
body:not(.dark-theme) .theme-icon-light { display: none; }

/* Smooth transition */
body,
body .header-top,
body .header-fixed,
body .main-sub-mnu,
body .mob-main-mnu,
body .section,
body .section-bg,
body .section-bgc,
body .iitem,
body .brands-min,
body .footer,
body .footer-bottom,
body .cookie-message,
body .popup_style .popup,
body input, body textarea, body select,
body table th, body table td {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

/* === INLINE COLOR OVERRIDES === */
body.dark-theme h1[style*='color'],
body.dark-theme h2[style*='color'],
body.dark-theme h3[style*='color'],
body.dark-theme h4[style*='color'] {
    color: #FFFFFF !important;
}

body.dark-theme .gbi-box[style*='color:grey'],
body.dark-theme .gbi-box[style*='color: grey'] {
    color: #B0B8C8 !important;
}

body.dark-theme small[style*='color:#888'] {
    color: #8891A0 !important;
}

body.dark-theme p[style*='color:#ccc'] {
    color: #B0B8C8 !important;
}

/* === BADGES DARK MODE === */
body.dark-theme .mnu-label {
    background-color: #00C8E8;
    color: #2B303A;
}

body.dark-theme .mnu-label[style*="alert-danger"],
body.dark-theme .mnu-label-eol {
    background-color: #6B7280 !important;
    color: #F0F2F5 !important;
}

/* === FIX: Partner logos — blend with section background === */
body.dark-theme .section-bg .brands-min,
body.dark-theme .section-bgc .brands-min,
body.dark-theme [data-body-columns] .brands-min {
    background-color: transparent;
    border: none;
    border-radius: 0;
}

body.dark-theme .section-bg .brands-min img,
body.dark-theme .section-bgc .brands-min img,
body.dark-theme [data-body-columns] .brands-min img {
    filter: brightness(0) invert(1);
    opacity: 0.55;
}

body.dark-theme .section-bg .brands-min:hover img,
body.dark-theme .section-bgc .brands-min:hover img,
body.dark-theme [data-body-columns] .brands-min:hover img {
    opacity: 0.9;
    filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(0, 200, 232, 0.3));
}

/* === FIX: Product images (ajax, ksenia, etc.) — no box in dark mode === */
body.dark-theme .litems .brands-min {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

body.dark-theme .litems .brands-min img {
    filter: none;
    opacity: 1;
}

body.dark-theme .litems .brands-min a {
    color: #B0B8C8;
}

/* === FIX: Partners section on index — override .litems rule === */
body.dark-theme [data-body-columns] .litems .brands-min {
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

body.dark-theme [data-body-columns] .litems .brands-min img {
    filter: brightness(0) invert(1) !important;
    opacity: 0.75 !important;
}

body.dark-theme [data-body-columns] .litems .brands-min:hover img {
    opacity: 0.9 !important;
}

/* === FIX: Tables — empty th cells in tbody should be transparent === */
body.dark-theme tbody th:empty {
    background-color: transparent;
    border-color: transparent;
}

/* Better table styling overall */
body.dark-theme table {
    border-collapse: collapse;
}

body.dark-theme thead th {
    background-color: #3A3F4B;
    color: #F0F2F5;
    border-color: #4A4F5B;
}

body.dark-theme tbody td {
    background-color: #2B303A;
    border-color: #4A4F5B;
    color: #B0B8C8;
}

body.dark-theme tbody td strong {
    color: #F0F2F5;
}

body.dark-theme tbody tr:nth-child(even) td {
    background-color: #303540;
}

body.dark-theme tbody tr:hover td {
    background-color: #363B48;
}

/* === LOGO SWITCHING === */
/* Light mode: show dark logo, hide white logo */
.logo-light { display: inline-block; }
.logo-dark { display: none !important; }

/* Dark mode: show white logo, hide dark logo */
body.dark-theme .logo-light { display: none !important; }
body.dark-theme .logo-dark { display: inline-block !important; }

/* Remove the brightness filter we had before */
body.dark-theme .header-fixed .logo img {
    filter: none;
}

/* === FIX: Brand logos on product pages — invert in dark mode === */
body.dark-theme .content img[src*="brands/"],
body.dark-theme .content img[data-src*="brands/"],
body.dark-theme .sidebar-item img[src*="brands/"],
body.dark-theme .sidebar-item img[data-src*="brands/"],
body.dark-theme .section-subheading img[src*="brands/"],
body.dark-theme .section-subheading img[data-src*="brands/"] {
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: all 0.3s ease;
}

body.dark-theme .content img[src*="brands/"]:hover,
body.dark-theme .sidebar-item img[src*="brands/"]:hover,
body.dark-theme .section-subheading img[src*="brands/"]:hover {
    opacity: 1;
}

/* Exceptions: logos that are already white (-w, -b variants) should NOT be inverted */
body.dark-theme img[src*="-w.png"],
body.dark-theme img[src*="-b.png"],
body.dark-theme img[data-src*="-w.png"],
body.dark-theme img[data-src*="-b.png"] {
    filter: none !important;
    opacity: 1 !important;
}

/* Don't invert certification badges and product screenshots */
body.dark-theme img[src*="certified"],
body.dark-theme img[data-src*="certified"],
body.dark-theme img[src*="product/"],
body.dark-theme img[data-src*="product/"] {
    filter: none !important;
}

/* Don't invert logos inside gbi-box (product showcase cards with bg images) */
body.dark-theme .gbi-box img {
    filter: none !important;
}

/* === MOBILE MENU DARK MODE === */
body.dark-theme .mmm-footer {
    border-top-color: #4A4F5B;
}

body.dark-theme .mmm-lang li a {
    border-color: #4A4F5B;
    color: #B0B8C8;
}

body.dark-theme .mmm-lang li.active a {
    background-color: #00C8E8;
    border-color: #00C8E8;
    color: #2B303A;
}

body.dark-theme .mmm-lang li:not(.active) a:hover {
    border-color: #00C8E8;
    color: #00C8E8;
}

/* Mobile newsletter button dark */
@media (max-width: 991px) {
    body.dark-theme .header-actions .wishlist_popup_open .btn {
        border-color: #4A4F5B;
    }
    body.dark-theme .header-actions .wishlist_popup_open .btn:hover {
        border-color: #00C8E8;
        background: rgba(0, 200, 232, 0.1);
    }
    body.dark-theme .header-actions .wishlist_popup_open .btn i {
        color: #00C8E8;
    }
}

/* === HEADER BUTTONS DARK MODE (lang, newsletter) === */
body.dark-theme .header-lang-current {
    border-color: #4A4F5B;
}
body.dark-theme .header-lang-current:hover {
    border-color: #00C8E8;
    background-color: rgba(0, 200, 232, 0.1);
}
body.dark-theme .header-lang-current i {
    color: #B0B8C8;
}
body.dark-theme .header-lang-current:hover i {
    color: #00C8E8;
}

@media (min-width: 992px) {
    body.dark-theme .header-actions .wishlist_popup_open .btn.btn-border {
        border-color: #4A4F5B;
    }
    body.dark-theme .header-actions .wishlist_popup_open .btn.btn-border:hover {
        border-color: #00C8E8;
        background-color: rgba(0, 200, 232, 0.1);
    }
    body.dark-theme .header-actions .wishlist_popup_open .btn.btn-border i {
        color: #B0B8C8;
    }
    body.dark-theme .header-actions .wishlist_popup_open .btn.btn-border:hover i {
        color: #00C8E8;
    }
}

/* === FIX: Header top bar — text and icons white in dark mode === */
body.dark-theme .header-top {
    color: #F0F2F5;
}

body.dark-theme .header-top i {
    color: #F0F2F5;
}

body.dark-theme .header-top a,
body.dark-theme .header-top a span {
    color: #F0F2F5 !important;
}

body.dark-theme .header-top a:hover,
body.dark-theme .header-top a:hover span {
    color: #00C8E8 !important;
}

body.dark-theme .header-top-info span {
    color: #B0B8C8;
}

body.dark-theme .header-top-info li > i {
    color: #B0B8C8;
}

/* === FIX: Button row between sections — same background as page === */
body.dark-theme .row > .section-bgc {
    background-color: #2B303A;
}

/* === Services section — same dark bg as footer === */
body.dark-theme #services-dev {
    background-color: #1E222A;
}

/* === About-us: Partner logos — white on dark, no border === */
body.dark-theme .brands-item.item-style {
    background-color: transparent;
    border-color: transparent;
    box-shadow: none;
}

body.dark-theme .brands-item.item-style img {
    filter: brightness(0) invert(1);
    opacity: 0.55;
    transition: all 0.3s ease;
}

body.dark-theme .brands-item.item-style:hover img {
    opacity: 0.9;
    filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(0, 200, 232, 0.3));
}

body.dark-theme .brands-item.item-style:hover {
    border-color: transparent;
}

/* === Product-list: Brand logos in product cards — white in dark === */
body.dark-theme .careers-item .careers-item-location img[src*="brands/"] {
    filter: brightness(0) invert(1);
    opacity: 0.75;
    transition: all 0.3s ease;
}

body.dark-theme .careers-item:hover .careers-item-location img[src*="brands/"] {
    opacity: 1;
}

/* === Architecture/Schema images — dark mode treatment === */
body.dark-theme .content img[src*="schema"],
body.dark-theme .content img[data-src*="schema"],
body.dark-theme .content img[src*="product/"],
body.dark-theme .content img[data-src*="product/"] {
    border-radius: 12px;
    background-color: transparent;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    filter: none !important;
}

/* === VIDEO SIDEBAR DARK === */
body.dark-theme .sidebar-video-card {
    background: #1E222A !important;
    border-color: #3A3F4B !important;
}

body.dark-theme .sidebar-video-header {
    background: #323742 !important;
    border-bottom: 2px solid #00C8E8 !important;
}

body.dark-theme .sidebar-video-header h4 {
    color: #00C8E8 !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.8px !important;
}

body.dark-theme .sidebar-video-header i {
    color: #00C8E8 !important;
}

body.dark-theme .sidebar-video-thumb {
    background: #1E222A;
}

body.dark-theme .sidebar-video-info h5 {
    color: #F0F2F5;
}

body.dark-theme .sidebar-video-info span {
    color: #8891A0;
}

body.dark-theme .sidebar-video-item + .sidebar-video-item {
    border-top-color: rgba(255, 255, 255, 0.05);
}

body.dark-theme .sidebar-video-footer {
    border-top-color: #4A4F5B;
}

/* === Unified sidebar cards — dark mode === */
body.dark-theme .sidebar-item-style,
body.dark-theme .sibebar-item-bg-style {
    background-color: #1E222A !important;
    border-color: #3A3F4B !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 0 !important;
    overflow: hidden !important;
}

body.dark-theme .sidebar-item-style {
    border-color: #4A4F5B;
}

body.dark-theme .sibebar-item-bg-style {
    background-color: #1E222A !important;
}

body.dark-theme .sidebar .section-bgc.sibebar-item-bg-style,
body.dark-theme .sidebar-item .section-bgc.sibebar-item-bg-style {
    background-color: #1E222A !important;
    border-color: #3A3F4B !important;
}

/* === UNIFIED SIDEBAR — dark heading border === */
body.dark-theme .sidebar-item-style .sidebar-item-heading,
body.dark-theme .sibebar-item-bg-style .sidebar-item-heading {
    color: #00C8E8 !important;
    background: #323742 !important;
    border-bottom: 2px solid #00C8E8 !important;
}

body.dark-theme .sibebar-item-bg-style .sidebar-cat-item,
body.dark-theme .sidebar-item-style .sidebar-cat-item {
    padding: 9px 20px !important;
}

body.dark-theme .sibebar-item-bg-style .sidebar-cat-item:hover,
body.dark-theme .sidebar-item-style .sidebar-cat-item:hover {
    background-color: rgba(0, 200, 232, 0.08) !important;
}

/* === INDEX: Alternating section backgrounds — dark mode === */
/* Partenaires - dark */
body.dark-theme #partners-section {
    background-color: #1E222A !important;
}

/* Services - lighter */
body.dark-theme #services-dev {
    background-color: #2B303A !important;
}

/* Plugins - dark */
body.dark-theme #plugins-section {
    background-color: #1E222A !important;
}

/* Solutions - lighter */
body.dark-theme #solutions-section,
body.dark-theme #solutions-section > .section {
    background-color: #2B303A !important;
}

body.dark-theme .sidebar-item-heading.item-heading {
    color: #00C8E8 !important;
    background: #323742 !important;
    border-bottom: 2px solid #00C8E8 !important;
}

/* === FORCE all ADDONXPERT logos white in dark mode === */
body.dark-theme img[src*="addonxpert-logo.png"],
body.dark-theme img[src*="addonxpert-logo-b.png"],
body.dark-theme img[data-src*="addonxpert-logo.png"],
body.dark-theme img[data-src*="addonxpert-logo-b.png"] {
    filter: brightness(0) invert(1) !important;
    opacity: 0.85;
    transition: all 0.3s ease;
}

body.dark-theme img[src*="addonxpert-logo.png"]:hover,
body.dark-theme img[src*="addonxpert-logo-b.png"]:hover,
body.dark-theme img[data-src*="addonxpert-logo.png"]:hover,
body.dark-theme img[data-src*="addonxpert-logo-b.png"]:hover {
    opacity: 1;
}

/* === Scroll-to-top button dark mode === */
body.dark-theme .btn-top {
    background: #323742;
    border-color: #4A4F5B;
}

body.dark-theme .btn-top:hover {
    border-color: #00C8E8;
}

/* === FIX: Don't invert lazy-load placeholder images === */
body.dark-theme img[src^="data:image/gif"]:not([data-loaded="true"]) {
    filter: none !important;
    opacity: 0 !important;
}

/* Also hide broken lazy images in light mode */
img.lazy[src^="data:image/gif"]:not([data-loaded="true"]) {
    opacity: 0;
}

/* === Cookie banner dark mode === */
body.dark-theme .cookie-message {
    background: #1E222A;
    border-top: 1px solid #4A4F5B;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-theme .cmc-title {
    color: #FFFFFF;
}

body.dark-theme .cmc-desc {
    color: #B0B8C8;
}

/* === Plugins section: uniform dark background === */
body.dark-theme #plugins-section,
body.dark-theme #plugins-section .section-bg,
body.dark-theme #plugins-section .section-bgc,
body.dark-theme #plugins-section .section-without-padding {
    background-color: #1E222A !important;
}

/* === Tables: cleaner dark mode styling === */
body.dark-theme table {
    background-color: transparent !important;
    border-bottom-color: #4A4F5B;
}

body.dark-theme table td {
    background-color: transparent !important;
    border-color: #3A3F4B;
    color: #B0B8C8;
}

body.dark-theme table td strong {
    color: #F0F2F5;
}

body.dark-theme table tr:hover td {
    background-color: rgba(0, 200, 232, 0.05) !important;
}

/* === Scroll-to-top button: bigger + centered arrow === */
body.dark-theme .btn-top {
    width: 3rem;
    height: 3rem;
    background: #323742;
    border-color: #4A4F5B;
    border-radius: 10px;
}

/* === "Tous nos produits" button row — match plugins dark bg === */
body.dark-theme #plugins-section + .row .section-bgc,
body.dark-theme #plugins-section ~ .row .section-bgc {
    background-color: #1E222A !important;
}

/* === Plugins button row — match plugins dark bg === */
body.dark-theme .plugins-btn-row .section-bgc {
    background-color: #1E222A !important;
}

/* === About-us main content section — darker bg === */
body.dark-theme #about-content {
    background-color: #1E222A !important;
}


/* === OPTION B: Sidebar headings — dark mode === */
body.dark-theme .sidebar .sidebar-item-style .sidebar-item-heading,
body.dark-theme .sidebar .sibebar-item-bg-style .sidebar-item-heading,
body.dark-theme .sidebar-item .sidebar-item-style .sidebar-item-heading,
body.dark-theme .sidebar-item .section-bgc.sibebar-item-bg-style .sidebar-item-heading {
    cursor: default !important;
    pointer-events: none !important;
    text-decoration: none !important;
    color: #00C8E8 !important;
    background: #323742 !important;
    border-bottom: 2px solid #00C8E8 !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    padding: 14px 20px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
}
body.dark-theme .sidebar .sidebar-item-style .sidebar-item-heading:hover,
body.dark-theme .sidebar .sibebar-item-bg-style .sidebar-item-heading:hover {
    color: #00C8E8 !important;
    text-decoration: none !important;
}
body.dark-theme .sidebar .sidebar-item-style .sidebar-item-heading i,
body.dark-theme .sidebar .sibebar-item-bg-style .sidebar-item-heading i {
    color: #00C8E8 !important;
}

/* === FIX: Empty thead th — no gray bar === */
body.dark-theme thead th:empty {
    background-color: transparent !important;
    border-color: transparent !important;
}

/* === Plugins section: gap between cards matches dark bg === */
body.dark-theme #plugins-section .section-without-padding {
    margin-bottom: 2.5rem;
}
body.dark-theme #plugins-section .section-without-padding:last-child {
    margin-bottom: 0;
}

/* === About-us partners section — darker bg === */
body.dark-theme #about-partners {
    background-color: #1E222A !important;
}

/* ═══════════════════════════════════════════════════════════
   TABLE-B — Dark Mode
   ═══════════════════════════════════════════════════════════ */

body.dark-theme table.table-b {
    border-color: #3A3F4B;
    background: #1E222A;
    border-bottom-color: #3A3F4B;
}

body.dark-theme table.table-b thead tr th {
    background: #323742 !important;
    color: #00C8E8 !important;
    border-bottom: 2px solid #00C8E8 !important;
    border-color: #3A3F4B;
}

body.dark-theme table.table-b thead tr th:empty {
    background: #323742 !important;
    border-bottom: 2px solid #00C8E8 !important;
}

body.dark-theme table.table-b tbody td {
    background: transparent !important;
    border-bottom-color: #323742;
    color: #F0F2F5;
}

body.dark-theme table.table-b tbody tr:nth-child(even) td {
    background: transparent !important;
}

body.dark-theme table.table-b tbody tr:hover td,
body.dark-theme table.table-b tbody tr:hover th {
    background: rgba(0, 200, 232, 0.07) !important;
}

body.dark-theme table.table-b tbody td:first-child strong {
    color: #00C8E8;
}

body.dark-theme table.table-b tbody td strong {
    color: #F0F2F5;
}

/* Status Icons — dark */
body.dark-theme .status-icon.yes {
    background: rgba(52, 211, 153, 0.12);
    color: #34D399;
}

body.dark-theme .status-icon.no {
    background: rgba(248, 113, 113, 0.12);
    color: #F87171;
}

body.dark-theme .status-icon.neutral {
    background: rgba(138, 146, 163, 0.12);
    color: #8A92A3;
}

/* tbody th (sub-separators) */
body.dark-theme table.table-b tbody th {
    background: transparent !important;
    color: #F0F2F5;
}



/* ═══════════════════════════════════════════════════════════
   SIDEBAR Option B — Dark Mode overrides
   ═══════════════════════════════════════════════════════════ */

/* Force dark card bg but keep heading with accent bg */
body.dark-theme .sidebar .section-bgc,
body.dark-theme .sidebar .sibebar-item-bg-style,
body.dark-theme .sidebar .sidebar-item-style,
body.dark-theme .sidebar .sidebar-video-card,
body.dark-theme .sidebar-item .section-bgc {
    background-color: #1E222A !important;
    border-color: #3A3F4B !important;
    overflow: hidden;
    padding: 0 !important;
}

body.dark-theme .sidebar .sidebar-item-style .sidebar-item-heading,
body.dark-theme .sidebar .sibebar-item-bg-style .sidebar-item-heading,
body.dark-theme .sidebar-item .section-bgc .sidebar-item-heading {
    color: #00C8E8 !important;
    background: #323742 !important;
    border-bottom: 2px solid #00C8E8 !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.8px;
    padding: 14px 20px !important;
    margin: 0 !important;
}

body.dark-theme .sidebar-item-heading.item-heading i {
    color: #00C8E8 !important;
}

/* Count badges dark */
body.dark-theme .sidebar .sidebar-cat-count,
body.dark-theme .sidebar-item-style .sidebar-cat-count,
body.dark-theme .sibebar-item-bg-style .sidebar-cat-count {
    color: #00C8E8 !important;
    background: rgba(0, 200, 232, 0.12) !important;
}

/* List item hover */
body.dark-theme .sidebar .sidebar-item-style .sidebar-cat-item:hover,
body.dark-theme .sidebar .sibebar-item-bg-style .sidebar-cat-item:hover {
    background-color: rgba(0, 200, 232, 0.08) !important;
}

/* Video header dark */
body.dark-theme .sidebar-video-header {
    background: #323742 !important;
    border-bottom: 2px solid #00C8E8 !important;
}

body.dark-theme .sidebar-video-header h4 {
    color: #00C8E8 !important;
}

body.dark-theme .sidebar-video-header i {
    color: #00C8E8 !important;
}

/* Resource links dark */
body.dark-theme .sidebar-resource-link {
    color: #00C8E8 !important;
}

body.dark-theme .sidebar-resource-link .material-icons {
    color: #00C8E8 !important;
}

/* Form focus dark */
body.dark-theme .form-field input:focus,
body.dark-theme .form-field textarea:focus {
    border-color: #00C8E8 !important;
    box-shadow: 0 0 0 3px rgba(0, 200, 232, 0.15) !important;
}

/* Cookie dark */
body.dark-theme .cmc-title {
    color: #00C8E8 !important;
}

/* Filter active dark */
body.dark-theme .sidebar-filter-list > li.active,
body.dark-theme .sidebar-filter-list > li.is-checked {
    color: #00C8E8 !important;
}


/* Table category rows dark */
body.dark-theme .table-b tr.table-category td {
    background: rgba(0, 200, 232, 0.08) !important;
    color: #00C8E8 !important;
    border-bottom: 1px solid rgba(0, 200, 232, 0.15) !important;
}

body.dark-theme .table-b tr.table-category td .material-icons {
    color: #00C8E8;
}

body.dark-theme .table-b td > strong {
    color: #00C8E8;
}


/* ═══ Filter list checkboxes — dark mode ═══ */
body.dark-theme .sidebar-filter-list > li.checkbox-label {
    color: #C9D1D9 !important;
}

body.dark-theme .sidebar-filter-list > li.checkbox-label::before {
    background: #2D333B !important;
    border-color: #555D6B !important;
}

body.dark-theme .sidebar-filter-list > li.checkbox-label.active::before,
body.dark-theme .sidebar-filter-list > li.checkbox-label.is-checked::before {
    background: #00A5C4 !important;
    border-color: #00C8E8 !important;
}

body.dark-theme .sidebar-filter-list > li.checkbox-label.active::after,
body.dark-theme .sidebar-filter-list > li.checkbox-label.is-checked::after {
    opacity: 1;
    color: #FFFFFF !important;
}

body.dark-theme .sidebar-filter-list > li.checkbox-label:hover::before {
    border-color: #00C8E8 !important;
}

body.dark-theme .sidebar-filter-list > li.checkbox-label.active,
body.dark-theme .sidebar-filter-list > li.checkbox-label.is-checked {
    color: #00C8E8 !important;
}

/* ═══ Newsletter popup iframe — dark mode invert ═══ */
body.dark-theme .wishlist_popup .popup_content iframe {
    filter: invert(0.88) hue-rotate(180deg);
    border-radius: 8px;
}

/* ═══ Light/Dark mode image switching ═══ */
body.dark-theme .img-light-only {
    display: none !important;
}
body.dark-theme .img-dark-only {
    display: inline-block !important;
}
