/**
 * Nafra Overseas - Luxury Obsidian Emerald Dark Theme Engine
 * Strictly Scoped to [data-theme="dark"] / .theme-dark
 * 100% Non-Destructive & Reversible Design System
 */

/* ==========================================================================
   1. ROOT VARIABLES & THEME FOUNDATION (Dark Mode)
   ========================================================================== */
html[data-theme="dark"] {
    color-scheme: dark;

    /* Core Palette Tokens - Obsidian & Deep Forest Slate */
    --bg-alabaster: #08120E;
    --bg-pearl: #0C1A14;
    --card-white: #10241C;
    
    /* Text Hierarchy */
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --text-light: #64748B;
    
    /* Borders & Accents */
    --border-light: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(212, 175, 55, 0.25);
    --primary: #10B981;
    --primary-light: #34D399;
    --primary-lighter: #6EE7B7;
    --accent-gold: #F59E0B;
    --accent-gold-light: rgba(245, 158, 11, 0.15);
    --accent-gold-hover: #D97706;

    /* Shadows with Deep Ambient Glow */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 14px 35px -5px rgba(0, 0, 0, 0.75);
    --shadow-gold: 0 4px 16px rgba(212, 175, 55, 0.18);

    /* Admin Portal Tokens */
    --admin-bg: #060E0B;
    --admin-card: #0D1C16;
    --admin-border: rgba(255, 255, 255, 0.08);
    --admin-primary: #34D399;
    --admin-accent: #F59E0B;
    --admin-text: #F8FAFC;
    --admin-muted: #94A3B8;
    --admin-sidebar-bg: #040806;
    --admin-sidebar-hover: #0C1A14;

    /* Universal Component Fallback Tokens */
    --card-bg: #0D1C16;
    --header-bg: #13241C;
    --border-color: rgba(255, 255, 255, 0.08);
    --btn-bg: rgba(255, 255, 255, 0.06);
    --input-bg: #061510;
    --input-text: #F8FAFC;
    --label-color: #E2E8F0;
    --th-bg: #13241C;
    --row-text: #E2E8F0;

    /* Dynamic Island Tokens */
    --island-bg: #0D1C16;
    --island-border: rgba(255, 255, 255, 0.12);
    --island-text-primary: #F8FAFC;
    --island-text-secondary: #94A3B8;
    --island-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   2. GLOBAL BODY & LAYOUT OVERRIDES
   ========================================================================== */
html[data-theme="dark"],
html[data-theme="dark"] body {
    background-color: var(--bg-alabaster) !important;
    color: var(--text-main) !important;
    scrollbar-color: #334155 #08120E;
}

html[data-theme="dark"] body.admin-body {
    background-color: var(--admin-bg) !important;
    color: var(--admin-text) !important;
}

/* Headings in Dark Theme */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
    color: #F8FAFC !important;
}

html[data-theme="dark"] p {
    color: #94A3B8;
}

/* ==========================================================================
   3. THEME TOGGLE BUTTON STYLES (Apple iOS Tactile Switch)
   ========================================================================== */
.btn-theme-toggle {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    background: #FFFFFF;
    color: #0F172A;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    padding: 0;
    line-height: 1;
    z-index: 10;
}

.btn-theme-toggle:hover {
    transform: scale(1.08) rotate(15deg);
    border-color: #CBD5E1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-theme-toggle:active {
    transform: scale(0.92);
}

/* In Dark Theme - Unified Action Button */
html[data-theme="dark"] .btn-theme-toggle {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #CBD5E1 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .btn-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #FFFFFF !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .theme-icon-moon {
    display: none !important;
}
html[data-theme="dark"] .theme-icon-sun {
    display: inline-block !important;
}


/* ==========================================================================
   4. PUBLIC NAVIGATION & NAVBAR
   ========================================================================== */
html[data-theme="dark"] .navbar-unified {
    background: rgba(4, 23, 17, 0.95) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.22) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .navbar-logo-img,
html[data-theme="dark"] .trade-desk-brand-logo,
html[data-theme="dark"] .contact-headquarters-box img,
html[data-theme="dark"] .rfq-contact-desk-card img {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.45)) drop-shadow(0 2px 8px rgba(212, 175, 55, 0.35)) brightness(1.2) contrast(1.1) !important;
}

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

html[data-theme="dark"] .nav-item-link:hover {
    color: #D4AF37 !important;
    background: rgba(212, 175, 55, 0.1) !important;
}

html[data-theme="dark"] .nav-item-link.active {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

/* ==========================================================================
   Harmonized Dark Navbar Action Buttons (Admin, Brochure, RFQ, Home, Lang, Theme)
   Every button shares identical dark obsidian background, clean border & typography.
   No neon gradients, no clashing colors.
   ========================================================================== */
html[data-theme="dark"] .btn-navbar-home,
html[data-theme="dark"] .btn-navbar-admin,
html[data-theme="dark"] .btn-navbar-brochure,
html[data-theme="dark"] .btn-navbar-rfq,
html[data-theme="dark"] .btn-navbar-lang,
html[data-theme="dark"] .btn-theme-toggle {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #F8FAFC !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
    height: 38px !important;
    border-radius: 999px !important;
    text-decoration: none !important;
}

html[data-theme="dark"] .btn-navbar-home *,
html[data-theme="dark"] .btn-navbar-admin *,
html[data-theme="dark"] .btn-navbar-brochure *,
html[data-theme="dark"] .btn-navbar-rfq *,
html[data-theme="dark"] .btn-navbar-lang *,
html[data-theme="dark"] .btn-theme-toggle * {
    color: inherit;
}

html[data-theme="dark"] .btn-navbar-home i,
html[data-theme="dark"] .btn-navbar-admin i,
html[data-theme="dark"] .btn-navbar-brochure i,
html[data-theme="dark"] .btn-navbar-rfq i,
html[data-theme="dark"] .btn-navbar-lang i,
html[data-theme="dark"] .btn-theme-toggle i {
    color: #CBD5E1 !important;
    transition: all 0.2s ease;
}

html[data-theme="dark"] .btn-navbar-home:hover,
html[data-theme="dark"] .btn-navbar-admin:hover,
html[data-theme="dark"] .btn-navbar-brochure:hover,
html[data-theme="dark"] .btn-navbar-rfq:hover,
html[data-theme="dark"] .btn-navbar-lang:hover,
html[data-theme="dark"] .btn-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .btn-navbar-home:hover i,
html[data-theme="dark"] .btn-navbar-admin:hover i,
html[data-theme="dark"] .btn-navbar-brochure:hover i,
html[data-theme="dark"] .btn-navbar-rfq:hover i,
html[data-theme="dark"] .btn-navbar-lang:hover i,
html[data-theme="dark"] .btn-theme-toggle:hover i {
    color: #FFFFFF !important;
}

/* Dark Mode Brochure Modal */
html[data-theme="dark"] .brochure-modal-backdrop {
    background: rgba(4, 15, 11, 0.88);
}
html[data-theme="dark"] .brochure-modal-box {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8) !important;
}
html[data-theme="dark"] .brochure-modal-header {
    background: #050E0A !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="dark"] .brochure-modal-header .modal-title {
    color: #F8FAFC !important;
}
html[data-theme="dark"] .brochure-modal-subtitle {
    color: #94A3B8 !important;
}
html[data-theme="dark"] .brochure-preview-wrap {
    background: #050E0A !important;
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="dark"] .brochure-preview-zoom-btn {
    color: #34D399 !important;
}
html[data-theme="dark"] .brochure-info-title {
    color: #F8FAFC !important;
}
html[data-theme="dark"] .brochure-features-list li {
    color: #CBD5E1 !important;
}
html[data-theme="dark"] .brochure-download-actions {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="dark"] .btn-brochure-15mb {
    background: #059669 !important;
    border: 1px solid #10B981 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3) !important;
}
html[data-theme="dark"] .btn-brochure-15mb:hover {
    background: #10B981 !important;
    color: #04261A !important;
}
html[data-theme="dark"] .btn-brochure-15mb:hover .brochure-btn-icon-wrap {
    background: rgba(0, 0, 0, 0.15) !important;
    color: #04261A !important;
}
html[data-theme="dark"] .btn-brochure-35mb {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #F8FAFC !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .btn-brochure-35mb:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #FFFFFF !important;
}
html[data-theme="dark"] .brochure-btn-secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #E2E8F0 !important;
}
html[data-theme="dark"] .brochure-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .navbar-mobile-toggle {
    background: rgba(15, 30, 24, 0.85) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .navbar-mobile-toggle .hamburger-bar {
    background-color: #D4AF37 !important;
}

html[data-theme="dark"] .nav-lang-toggle-btn {
    background: #10241C !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .nav-lang-dropdown {
    background: #0E1D17 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] .nav-lang-item {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .nav-lang-item:hover {
    background: #152E24 !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .navbar-mobile-drawer {
    background: rgba(4, 20, 15, 0.98) !important;
    border-bottom: 2px solid rgba(212, 175, 55, 0.25) !important;
    backdrop-filter: blur(25px) !important;
}

html[data-theme="dark"] .mobile-nav-link {
    color: #E2E8F0 !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .mobile-nav-link:hover,
html[data-theme="dark"] .mobile-nav-link.active {
    color: #D4AF37 !important;
    background: rgba(212, 175, 55, 0.1) !important;
}

html[data-theme="dark"] .nav-item-link::after {
    background: linear-gradient(90deg, #D4AF37, #F59E0B) !important;
}

/* Specific Mobile Viewport Overrides (higher specificity than responsive.css) */
@media (max-width: 1120px) {
    html[data-theme="dark"] .navbar-mobile-toggle {
        background: #0D1C16 !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
    }
    html[data-theme="dark"] .navbar-mobile-toggle .hamburger-bar {
        background-color: #CBD5E1 !important;
    }
    html[data-theme="dark"] .btn-navbar-admin,
    html[data-theme="dark"] .btn-navbar-home,
    html[data-theme="dark"] .btn-navbar-contact,
    html[data-theme="dark"] .btn-navbar-brochure,
    html[data-theme="dark"] .btn-navbar-rfq,
    html[data-theme="dark"] .btn-navbar-lang,
    html[data-theme="dark"] .btn-theme-toggle {
        background: #0D1C16 !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #F8FAFC !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
    }
    html[data-theme="dark"] .btn-navbar-admin i,
    html[data-theme="dark"] .btn-navbar-home i,
    html[data-theme="dark"] .btn-navbar-contact i,
    html[data-theme="dark"] .btn-navbar-brochure i,
    html[data-theme="dark"] .btn-navbar-rfq i,
    html[data-theme="dark"] .btn-navbar-lang i,
    html[data-theme="dark"] .btn-theme-toggle i {
        color: #CBD5E1 !important;
    }
}

/* ==========================================================================
   4.1. HERO BANNER SLIDER & CAROUSEL (Dark Theme)
   ========================================================================== */
html[data-theme="dark"] .hero-slider-section {
    background: #030D09 !important;
}

html[data-theme="dark"] .hero-slide-overlay {
    background: linear-gradient(135deg, rgba(3, 16, 12, 0.90) 0%, rgba(4, 23, 17, 0.76) 50%, rgba(2, 10, 7, 0.88) 100%) !important;
}

@media (max-width: 992px) {
    html[data-theme="dark"] .hero-slide-overlay {
        background: linear-gradient(180deg, rgba(3, 16, 12, 0.92) 0%, rgba(4, 23, 17, 0.82) 55%, rgba(2, 10, 7, 0.92) 100%) !important;
    }
}

html[data-theme="dark"] .hero-title {
    color: #FFFFFF !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] .hero-description {
    color: #CBD5E1 !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .hero-pill {
    background: rgba(13, 28, 22, 0.9) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    color: #F59E0B !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .hero-stat-item h3 {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .hero-stat-item p {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .hero-slider-btn {
    background: rgba(13, 28, 22, 0.9) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .hero-slider-btn:hover {
    background: #10B981 !important;
    border-color: #10B981 !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .hero-slider-dot {
    background: rgba(255, 255, 255, 0.25) !important;
}

html[data-theme="dark"] .hero-slider-dot.active {
    background: #D4AF37 !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.6) !important;
}

html[data-theme="dark"] .hero-slider-swipe-hint {
    color: #94A3B8 !important;
}

/* ==========================================================================
   5. PRODUCT CARDS & 3D SHAPE ARCHITECTURE
   ========================================================================== */
html[data-theme="dark"] .product-card {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.35),
        0 14px 30px -4px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .product-card:hover {
    border-color: rgba(16, 185, 129, 0.3) !important;
    box-shadow: 
        0 8px 18px rgba(0, 0, 0, 0.4),
        0 24px 45px -4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(16, 185, 129, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

html[data-theme="dark"] .product-image-box {
    background: radial-gradient(circle at 50% 50%, #0D221A 0%, #071510 70%, #030C09 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .product-image-box::after {
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7) 0%, transparent 75%) !important;
}

html[data-theme="dark"] .product-zoom-hint {
    background: rgba(8, 20, 15, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .product-card-title,
html[data-theme="dark"] .product-title {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .product-card-desc,
html[data-theme="dark"] .product-botanical {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .product-meta-item,
html[data-theme="dark"] .spec-chip,
html[data-theme="dark"] .spec-badge {
    background: #12241C !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .btn-card-detail {
    background: #11241C !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .btn-card-detail:hover {
    background: #173227 !important;
    border-color: #34D399 !important;
    color: #34D399 !important;
}

/* ==========================================================================
   6. HOMEPAGE SECTIONS, HERO, AND FEATURED CAROUSEL
   ========================================================================== */
html[data-theme="dark"] .featured-row-section,
html[data-theme="dark"] .product-range-section,
html[data-theme="dark"] .section-light,
html[data-theme="dark"] .section-white {
    background-color: #08120E !important;
}

html[data-theme="dark"] .section-bg-alt {
    background-color: #0A1611 !important;
}

html[data-theme="dark"] .category-filter-btn {
    background: #0E1E18 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #94A3B8 !important;
}

html[data-theme="dark"] .category-filter-btn:hover,
html[data-theme="dark"] .category-filter-btn.active {
    background: #10B981 !important;
    color: #FFFFFF !important;
    border-color: #10B981 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
}

html[data-theme="dark"] .featured-carousel-btn {
    background: #0E1D17 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .featured-carousel-btn:hover {
    background: #10B981 !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   7. QUOTE PANEL (APMC EXPORT DESK) & SEAPORTS (product_detail.php)
   ========================================================================== */
html[data-theme="dark"] .detail-quote-panel {
    background: #0D1C16 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] .detail-quote-title {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .detail-quote-badge {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .detail-quote-sla {
    background: #081410 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .quick-rfq-field,
html[data-theme="dark"] .detail-quote-panel input,
html[data-theme="dark"] .detail-quote-panel select,
html[data-theme="dark"] .detail-quote-panel textarea {
    background: #07100D !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .quick-rfq-field:focus,
html[data-theme="dark"] .detail-quote-panel input:focus,
html[data-theme="dark"] .detail-quote-panel select:focus,
html[data-theme="dark"] .detail-quote-panel textarea:focus {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25) !important;
}

html[data-theme="dark"] .detail-corridor-box {
    background: #0D1C16 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .detail-corridor-title {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .detail-corridor-port {
    background: #081410 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .spec-cert-badge {
    background: #0D1C16 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #E2E8F0 !important;
}

html[data-theme="dark"] .btn-detail-whatsapp {
    background: #11241C !important;
    border-color: #25D366 !important;
    color: #25D366 !important;
}

html[data-theme="dark"] .btn-detail-whatsapp:hover {
    background: #25D366 !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   8. SPECIFICATIONS TABLES & GENERAL CARDS
   ========================================================================== */
html[data-theme="dark"] .spec-table-wrap,
html[data-theme="dark"] .detail-specs-card,
html[data-theme="dark"] .spec-sheet-card {
    background: #0D1C16 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .spec-table tr {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .spec-table td {
    color: #E2E8F0 !important;
}

html[data-theme="dark"] .spec-table td:first-child {
    color: #94A3B8 !important;
}

/* ==========================================================================
   9. ADMIN PORTAL (Dashboard, Topbar, Sidebar, Tables, Maps, Devices, Cards)
   ========================================================================== */

/* 9.1 Admin Layout, Topbar & Mobile Navigation */
html[data-theme="dark"] body.admin-body {
    background-color: #040E0A !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .admin-topbar {
    background: rgba(6, 19, 14, 0.96) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .admin-sidebar-toggle {
    background: #081C16 !important;
    border: 1.5px solid rgba(212, 175, 55, 0.45) !important;
    color: #D4AF37 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .admin-sidebar-toggle:hover {
    background: #0D2D22 !important;
    border-color: #F59E0B !important;
    color: #F59E0B !important;
}

html[data-theme="dark"] .admin-page-title {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .topbar-user-details strong {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .admin-avatar {
    background: #0A261D !important;
    border: 1.5px solid #D4AF37 !important;
    color: #D4AF37 !important;
}

/* 9.2 Admin Liquid Obsidian Glass Sidebar */
html[data-theme="dark"] .admin-sidebar {
    background: #061711 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 6px 0 30px rgba(0, 0, 0, 0.6) !important;
    color: #F8FAFC !important;
    overscroll-behavior: contain !important;
    overscroll-behavior-y: contain !important;
}

html[data-theme="dark"] .admin-sidebar-top-profile {
    background: rgba(8, 24, 18, 0.6) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .admin-profile-snippet {
    background: rgba(10, 30, 22, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .admin-profile-snippet:hover {
    background: #0D3627 !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
}

html[data-theme="dark"] .profile-name {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .profile-role {
    color: #34D399 !important;
}

html[data-theme="dark"] .sidebar-top-btn {
    background: rgba(12, 38, 28, 0.9) !important;
    color: #E2E8F0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .sidebar-top-btn:hover {
    background: #10B981 !important;
    color: #FFFFFF !important;
    border-color: #10B981 !important;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.35) !important;
}

html[data-theme="dark"] .sidebar-top-btn.logout {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #F87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.28) !important;
}

html[data-theme="dark"] .sidebar-top-btn.logout:hover {
    background: #EF4444 !important;
    color: #FFFFFF !important;
    border-color: #EF4444 !important;
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.35) !important;
}

html[data-theme="dark"] .admin-nav-item,
html[data-theme="dark"] .admin-nav-link {
    color: #94A3B8 !important;
    border-color: transparent !important;
}

html[data-theme="dark"] .admin-nav-item .nav-icon,
html[data-theme="dark"] .admin-nav-link .nav-icon {
    color: #64748B !important;
}

html[data-theme="dark"] .admin-nav-item:hover,
html[data-theme="dark"] .admin-nav-link:hover {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #F8FAFC !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
}

html[data-theme="dark"] .admin-nav-item:hover .nav-icon,
html[data-theme="dark"] .admin-nav-link:hover .nav-icon {
    color: #34D399 !important;
}

html[data-theme="dark"] .admin-nav-item.active,
html[data-theme="dark"] .admin-nav-link.active {
    background: rgba(16, 185, 129, 0.22) !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    color: #34D399 !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.15) !important;
}

html[data-theme="dark"] .admin-nav-item.active .nav-icon,
html[data-theme="dark"] .admin-nav-link.active .nav-icon {
    color: #10B981 !important;
}

html[data-theme="dark"] .nav-badge-pill {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .nav-badge-pill.gold-pill {
    background: rgba(212, 175, 55, 0.18) !important;
    color: #F59E0B !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
}

html[data-theme="dark"] .admin-sidebar-close {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .admin-sidebar-backdrop {
    background: rgba(0, 0, 0, 0.75) !important;
}

/* 9.3 Cards, Tables & Containers */
html[data-theme="dark"] .kpi-card,
html[data-theme="dark"] .admin-card,
html[data-theme="dark"] .admin-table-wrap,
html[data-theme="dark"] .admin-mobile-card {
    background: #091C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .admin-card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .admin-card-header h3 {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .kpi-value,
html[data-theme="dark"] .kpi-num {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .kpi-label,
html[data-theme="dark"] .kpi-title,
html[data-theme="dark"] .kpi-sub {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .kpi-icon-box,
html[data-theme="dark"] .kpi-icon-wrap {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34D399 !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

/* 9.4 Trade Operations World Map Stage (Eliminates Blinding White Rectangle) */
html[data-theme="dark"] .admin-map-card {
    background: #071913 !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .admin-map-header {
    background: linear-gradient(135deg, #051811 0%, #08281D 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .admin-map-stage {
    background: radial-gradient(circle at 50% 50%, #071F17 0%, #030C08 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .admin-map-stage .world-country {
    stroke: rgba(255, 255, 255, 0.2) !important;
}

html[data-theme="dark"] .admin-map-stage .other-country,
html[data-theme="dark"] .admin-map-stage svg path.other-country,
html[data-theme="dark"] .admin-map-stage svg g.other-country path,
html[data-theme="dark"] .admin-map-stage svg path:not([fill]),
html[data-theme="dark"] .admin-map-stage svg g:not([fill]) > path,
html[data-theme="dark"] .admin-map-stage svg #_somaliland {
    fill: #0F2D22 !important;
    stroke: #061711 !important;
    stroke-width: 0.5px !important;
}

html[data-theme="dark"] .filter-tab-pill {
    background: #081B15 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #94A3B8 !important;
}

html[data-theme="dark"] .filter-tab-pill:hover {
    background: #0F3327 !important;
    border-color: rgba(212, 175, 55, 0.4) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .filter-tab-pill.active {
    background: #D4AF37 !important;
    color: #04100C !important;
    border-color: #D4AF37 !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4) !important;
}

html[data-theme="dark"] .consignment-pin .pin-badge-bg {
    fill: #04120D !important;
    stroke-width: 1.2 !important;
}

html[data-theme="dark"] .consignment-pin .pin-badge-text {
    fill: #F8FAFC !important;
}

/* 9.5 Trusted Hardware Devices & Workstations */
html[data-theme="dark"] .hardware-engine-card {
    background: #1E293B !important;
    border-color: #334155 !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .hardware-engine-card .engine-bg-glow {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0) 70%) !important;
}

html[data-theme="dark"] .engine-icon-badge {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #34D399 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .engine-tag {
    color: #34D399 !important;
}

html[data-theme="dark"] .engine-title {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .engine-desc {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .engine-lock-badge.is-enforced {
    background: rgba(16, 185, 129, 0.18) !important;
    border-color: rgba(16, 185, 129, 0.45) !important;
    color: #6EE7B7 !important;
}

html[data-theme="dark"] .engine-lock-badge.is-permissive {
    background: rgba(245, 158, 11, 0.16) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    color: #FCD34D !important;
}

html[data-theme="dark"] .engine-meta-pill {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .engine-meta-pill.pill-superadmin {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    color: #FCD34D !important;
}

html[data-theme="dark"] .engine-meta-pill.pill-workstation {
    background: rgba(148, 163, 184, 0.12) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .superadmin-counter-pill {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #6EE7B7 !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
}

html[data-theme="dark"] .badge-primary-superadmin {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #6EE7B7 !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
}

html[data-theme="dark"] .badge-superadmin-pill {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #FCD34D !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
}

html[data-theme="dark"] .role-pill-superadmin {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #FCD34D !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
}

html[data-theme="dark"] .device-uuid-code {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #94A3B8 !important;
}

html[data-theme="dark"] .device-ip-code {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .luxury-toggle-locked {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #94A3B8 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .device-mobile-card {
    background: #0A1F18 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .device-mobile-card.is-current-workstation,
html[data-theme="dark"] .is-current-workstation {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 2px solid #10B981 !important;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.22) !important;
}

html[data-theme="dark"] tr.is-current-workstation td {
    background: rgba(16, 185, 129, 0.12) !important;
    border-top: 2px solid #10B981 !important;
    border-bottom: 2px solid #10B981 !important;
}

html[data-theme="dark"] .device-mobile-card strong,
html[data-theme="dark"] .device-mobile-card div[style*="color: #1E293B"],
html[data-theme="dark"] .devices-main-table strong[style*="color: #1E293B"] {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .device-mobile-card div[style*="rgba(248, 250, 252"] {
    background: rgba(4, 16, 12, 0.82) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .device-mobile-card div[style*="rgba(248, 250, 252"] span[style*="color: #334155"],
html[data-theme="dark"] .device-mobile-card div[style*="rgba(248, 250, 252"] span[style*="color: #64748B"] {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .device-mobile-card code,
html[data-theme="dark"] .devices-main-table code {
    background: #05100B !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .device-mobile-card button[style*="background: #FFFBEB"],
html[data-theme="dark"] .devices-main-table button[style*="background: #FFFBEB"] {
    background: rgba(245, 158, 11, 0.14) !important;
    color: #F59E0B !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

html[data-theme="dark"] .device-mobile-card button[style*="color: #DC2626"],
html[data-theme="dark"] .devices-main-table button[style*="color: #DC2626"] {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #F87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

html[data-theme="dark"] .device-mobile-card button[style*="color: #64748B"],
html[data-theme="dark"] .devices-main-table button[style*="color: #64748B"] {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #CBD5E1 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* Emergency Master Recovery Key Card */
html[data-theme="dark"] .admin-card[style*="#FDE68A"],
html[data-theme="dark"] .recovery-key-card {
    background: #091C16 !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

html[data-theme="dark"] .admin-card-header[style*="#FFFBEB"],
html[data-theme="dark"] .recovery-card-header {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(10, 38, 29, 0.9) 100%) !important;
    border-bottom: 1px solid rgba(245, 158, 11, 0.3) !important;
}

html[data-theme="dark"] .admin-card-header[style*="#FFFBEB"] h3,
html[data-theme="dark"] .recovery-card-header h3 {
    color: #F59E0B !important;
}

html[data-theme="dark"] .admin-card-header[style*="#FFFBEB"] span,
html[data-theme="dark"] .recovery-card-header span {
    color: #FCD34D !important;
}

html[data-theme="dark"] .recovery-card-body p {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .recovery-key-box {
    background: #05120D !important;
    border: 1px dashed rgba(245, 158, 11, 0.45) !important;
}

html[data-theme="dark"] .recovery-key-box span {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .recovery-key-box code {
    background: #081C15 !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    color: #F59E0B !important;
}

html[data-theme="dark"] .recovery-key-text {
    color: #34D399 !important;
}

html[data-theme="dark"] .superadmin-policy-alert,
html[data-theme="dark"] div[style*="background: #FEF3C7"][style*="border: 1px solid #FCD34D"] {
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    color: #FCD34D !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .superadmin-policy-alert strong {
    color: #FBBF24 !important;
}

html[data-theme="dark"] .recovery-alert-warning,
html[data-theme="dark"] div[style*="background: #FFFBEB"][style*="border: 1px solid #FDE68A"] {
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    color: #FCD34D !important;
}

html[data-theme="dark"] .recovery-alert-info,
html[data-theme="dark"] div[style*="background: #EFF6FF"][style*="border: 1px solid #BFDBFE"] {
    background: rgba(59, 130, 246, 0.12) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    color: #93C5FD !important;
}

html[data-theme="dark"] .cli-code-badge,
html[data-theme="dark"] code[style*="background: #DBEAFE"] {
    background: rgba(15, 23, 42, 0.7) !important;
    border: 1px solid rgba(59, 130, 246, 0.35) !important;
    color: #60A5FA !important;
}

html[data-theme="dark"] .btn-action-amber {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #FBBF24 !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

html[data-theme="dark"] .btn-action-amber:hover {
    background: rgba(245, 158, 11, 0.25) !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .modal-box-auth {
    background: #091C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85) !important;
}

html[data-theme="dark"] .modal-header-auth {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16) 0%, rgba(10, 38, 29, 0.95) 100%) !important;
    border-bottom: 1px solid rgba(245, 158, 11, 0.3) !important;
}

html[data-theme="dark"] .btn-featured-active {
    border-color: rgba(245, 158, 11, 0.45) !important;
    color: #F59E0B !important;
    background: rgba(245, 158, 11, 0.15) !important;
}

html[data-theme="dark"] .admin-empty-state,
html[data-theme="dark"] div[style*="background: #FFF"][style*="text-align: center"],
html[data-theme="dark"] div[style*="background: #FFFFFF"][style*="text-align: center"] {
    background: #091C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #94A3B8 !important;
}

/* 9.6 Category Pills, Form Types & Status Badges (Eliminates White-on-White Washout) */
html[data-theme="dark"] .badge-status {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .badge-category,
html[data-theme="dark"] .badge-status[style*="background: #EBF8F5"],
html[data-theme="dark"] span.badge-status[style*="#EBF8F5"] {
    background: rgba(16, 185, 129, 0.16) !important;
    border: 1px solid rgba(16, 185, 129, 0.38) !important;
    color: #34D399 !important;
    font-weight: 600 !important;
}

html[data-theme="dark"] .badge-status[style*="background: #FFFBEB"],
html[data-theme="dark"] span.badge-status[style*="#FFFBEB"] {
    background: rgba(245, 158, 11, 0.16) !important;
    border: 1px solid rgba(245, 158, 11, 0.38) !important;
    color: #F59E0B !important;
    font-weight: 600 !important;
}

html[data-theme="dark"] .badge-status[style*="background: #EFF6FF"],
html[data-theme="dark"] span.badge-status[style*="#EFF6FF"] {
    background: rgba(59, 130, 246, 0.16) !important;
    border: 1px solid rgba(59, 130, 246, 0.38) !important;
    color: #60A5FA !important;
    font-weight: 600 !important;
}

html[data-theme="dark"] .badge-status[style*="background: #FAF8F5"],
html[data-theme="dark"] span.badge-status[style*="#FAF8F5"] {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .badge-status[style*="background: #D1FAE5"],
html[data-theme="dark"] span.badge-status[style*="#D1FAE5"],
html[data-theme="dark"] .badge-completed,
html[data-theme="dark"] .badge-status-active {
    background: rgba(16, 185, 129, 0.18) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .badge-status[style*="background: #FEE2E2"],
html[data-theme="dark"] span.badge-status[style*="#FEE2E2"],
html[data-theme="dark"] .badge-status-inactive {
    background: rgba(239, 68, 68, 0.18) !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    color: #F87171 !important;
}

html[data-theme="dark"] .badge-new {
    background: rgba(245, 158, 11, 0.18) !important;
    color: #F59E0B !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
}

html[data-theme="dark"] .badge-under_review {
    background: rgba(59, 130, 246, 0.18) !important;
    color: #60A5FA !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
}

html[data-theme="dark"] .badge-quoted {
    background: rgba(139, 92, 246, 0.18) !important;
    color: #A78BFA !important;
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
}

html[data-theme="dark"] .badge-archived {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #94A3B8 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* 9.7 Product & Certificate Thumbnail Backings */
html[data-theme="dark"] .admin-table-thumb,
html[data-theme="dark"] .admin-cert-badge-thumb,
html[data-theme="dark"] .admin-table td img[style*="background: #F8FAFC"],
html[data-theme="dark"] .admin-table td img[style*="background: #FFF"],
html[data-theme="dark"] .admin-table td img[style*="background:#FFF"],
html[data-theme="dark"] .admin-mobile-card img[style*="background: #FFF"] {
    background: #05120D !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .admin-cert-badge-thumb {
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.08) 0%, rgba(5, 18, 13, 0.9) 70%) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
}

/* 9.8 Table Cell Typography & Contrasts */
html[data-theme="dark"] .admin-table th {
    background: #06130E !important;
    color: #94A3B8 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .admin-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #E2E8F0 !important;
}

html[data-theme="dark"] .admin-table tbody tr:hover {
    background: rgba(16, 185, 129, 0.05) !important;
}

html[data-theme="dark"] .admin-table td strong,
html[data-theme="dark"] .admin-table td strong[style*="color: #1E293B"],
html[data-theme="dark"] .admin-table td strong[style*="color: var(--admin-primary)"],
html[data-theme="dark"] .admin-table td span[style*="color: #1E293B"],
html[data-theme="dark"] .admin-table td span[style*="color: #334155"],
html[data-theme="dark"] .admin-table td span[style*="color: #4B5563"],
html[data-theme="dark"] .admin-table td div[style*="color: #1E293B"],
html[data-theme="dark"] .admin-table td div[style*="color: #334155"],
html[data-theme="dark"] .admin-table td code[style*="color: #1E293B"],
html[data-theme="dark"] .admin-table td code[style*="color: #334155"] {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .admin-table td span[style*="color: #64748B"],
html[data-theme="dark"] .admin-table td div[style*="color: #64748B"],
html[data-theme="dark"] .admin-table td span[style*="color: #94A3B8"] {
    color: #94A3B8 !important;
}

/* 9.9 Forms, Controls, Inputs & Modals */
html[data-theme="dark"] .form-group label,
html[data-theme="dark"] .form-label {
    color: #E2E8F0 !important;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] input.form-control,
html[data-theme="dark"] select.form-control,
html[data-theme="dark"] textarea.form-control {
    background: #061510 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] select.form-control option {
    background: #061510 !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .form-control:focus {
    border-color: #34D399 !important;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25) !important;
}

html[data-theme="dark"] .admin-modal,
html[data-theme="dark"] .admin-modal-content,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .modal-box {
    background: #091C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85) !important;
}

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

html[data-theme="dark"] .btn-outline {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #E2E8F0 !important;
}

html[data-theme="dark"] .btn-outline:hover {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34D399 !important;
    border-color: #10B981 !important;
}

html[data-theme="dark"] .btn-danger-light {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #F87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
}

html[data-theme="dark"] .btn-danger-light:hover {
    background: #EF4444 !important;
    color: #FFFFFF !important;
}

/* 9.10 Mobile Cards & Chips */
html[data-theme="dark"] .admin-mobile-title {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .admin-mobile-subtitle {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .admin-mobile-thumb {
    background: #05120D !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .admin-chip {
    background: #061610 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .admin-chip[style*="background: #ECFDF5"],
html[data-theme="dark"] .admin-chip[style*="background:#ECFDF5"] {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .admin-mobile-code-badge {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #34D399 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    padding: 1px 5px !important;
    border-radius: 4px !important;
}

html[data-theme="dark"] .admin-mobile-order-badge {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #94A3B8 !important;
}

html[data-theme="dark"] .admin-mobile-card-actions button,
html[data-theme="dark"] .admin-mobile-card-actions a {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #E2E8F0 !important;
}

/* 9.11 Profile & Identity Box */
html[data-theme="dark"] .identity-name {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .identity-role-tag {
    color: #F59E0B !important;
}

html[data-theme="dark"] .identity-details-box {
    background: #061510 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .identity-detail-label {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .identity-detail-val {
    color: #F8FAFC !important;
}

/* 9.12 Admin Badges, Cards & Container Overrides */
html[data-theme="dark"] .admin-card div[style*="background: #F8FAFC"],
html[data-theme="dark"] .admin-card div[style*="background:#F8FAFC"],
html[data-theme="dark"] .admin-card div[style*="background: #FAF8F5"],
html[data-theme="dark"] .admin-card div[style*="background:#FAF8F5"],
html[data-theme="dark"] .admin-card div[style*="background: #FAF9F6"],
html[data-theme="dark"] .admin-card div[style*="background:#FAF9F6"],
html[data-theme="dark"] .admin-card div[style*="background: #FFF;"],
html[data-theme="dark"] .admin-card div[style*="background:#FFF;"],
html[data-theme="dark"] .admin-card div[style*="background: #FFFFFF"],
html[data-theme="dark"] .admin-card div[style*="background:#FFFFFF"],
html[data-theme="dark"] .modal-box div[style*="background: #F8FAFC"],
html[data-theme="dark"] .modal-box div[style*="background:#F8FAFC"],
html[data-theme="dark"] .modal-box div[style*="background: #FFFFFF"],
html[data-theme="dark"] .modal-box div[style*="background:#FFFFFF"],
html[data-theme="dark"] .modal-box div[style*="background: #FAF9F6"],
html[data-theme="dark"] .modal-box div[style*="background:#FAF9F6"],
html[data-theme="dark"] .modal-box div[style*="background: #FAF8F5"],
html[data-theme="dark"] .modal-box div[style*="background:#FAF8F5"],
html[data-theme="dark"] .audit-filter-form,
html[data-theme="dark"] .audit-action-bar-wrap,
html[data-theme="dark"] .admin-featured-status-row,
html[data-theme="dark"] #modalImagePreviewBox,
html[data-theme="dark"] .settings-brand-box {
    background: #081410 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .whatsapp-logo-sync-panel {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .whatsapp-logo-sync-panel span {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .whatsapp-logo-sync-panel small {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .modal-box span[style*="color: #4B5563"],
html[data-theme="dark"] .modal-box span[style*="color:#4B5563"],
html[data-theme="dark"] .modal-box p[style*="color: #4B5563"],
html[data-theme="dark"] .modal-box p[style*="color:#4B5563"] {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .modal-box strong[style*="color: #374151"],
html[data-theme="dark"] .modal-box strong[style*="color:#374151"] {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .modal-box span[style*="color: #9CA3AF"],
html[data-theme="dark"] .modal-box span[style*="color:#9CA3AF"] {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .audit-filter-form {
    background: transparent !important;
}

html[data-theme="dark"] .audit-action-bar-wrap label,
html[data-theme="dark"] .audit-action-bar-wrap span,
html[data-theme="dark"] .audit-action-bar-wrap strong {
    color: #E2E8F0 !important;
}

html[data-theme="dark"] .audit-card-context-box {
    background: #081410 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .audit-card-context-title {
    color: #34D399 !important;
}

/* Universal High-Contrast Overrides for hardcoded dark text colors (User & Admin Pages) */
html[data-theme="dark"] [style*="color: #1E293B" i],
html[data-theme="dark"] [style*="color:#1E293B" i],
html[data-theme="dark"] [style*="color: #0F172A" i],
html[data-theme="dark"] [style*="color:#0F172A" i],
html[data-theme="dark"] [style*="color: #111827" i],
html[data-theme="dark"] [style*="color:#111827" i] {
    color: #F8FAFC !important;
}

html[data-theme="dark"] [style*="color: #334155" i],
html[data-theme="dark"] [style*="color:#334155" i],
html[data-theme="dark"] [style*="color: #374151" i],
html[data-theme="dark"] [style*="color:#374151" i],
html[data-theme="dark"] [style*="color: #475569" i],
html[data-theme="dark"] [style*="color:#475569" i],
html[data-theme="dark"] [style*="color: #4B5563" i],
html[data-theme="dark"] [style*="color:#4B5563" i] {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] [style*="color: #64748B" i],
html[data-theme="dark"] [style*="color:#64748B" i] {
    color: #94A3B8 !important;
}

html[data-theme="dark"] label[style*="color: #334155" i],
html[data-theme="dark"] label[style*="color:#334155" i],
html[data-theme="dark"] label[style*="color: #1E293B" i],
html[data-theme="dark"] label[style*="color:#1E293B" i] {
    color: #E2E8F0 !important;
}

/* Light badges in tables and mobile cards */
html[data-theme="dark"] span[style*="background: #EEF2F6"],
html[data-theme="dark"] span[style*="background:#EEF2F6"],
html[data-theme="dark"] span[style*="background: #F1F5F9"],
html[data-theme="dark"] span[style*="background:#F1F5F9"],
html[data-theme="dark"] .admin-table-audit span[style*="#F1F5F9"] {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: #34D399 !important;
}

html[data-theme="dark"] span[style*="background: #EFF6FF"],
html[data-theme="dark"] span[style*="background:#EFF6FF"] {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: #93C5FD !important;
}

html[data-theme="dark"] span[style*="background: #FEE2E2"],
html[data-theme="dark"] span[style*="background:#FEE2E2"],
html[data-theme="dark"] span[style*="background: #FFF1F2"],
html[data-theme="dark"] span[style*="background:#FFF1F2"],
html[data-theme="dark"] .admin-table-audit span[style*="#FEE2E2"],
html[data-theme="dark"] .admin-table-audit span[style*="#FFF1F2"] {
    background: rgba(239, 68, 68, 0.18) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #F87171 !important;
}

html[data-theme="dark"] span[style*="background: #ECFDF5"],
html[data-theme="dark"] span[style*="background:#ECFDF5"],
html[data-theme="dark"] span[style*="background: #D1FAE5"],
html[data-theme="dark"] span[style*="background:#D1FAE5"],
html[data-theme="dark"] .admin-table-audit span[style*="#ECFDF5"] {
    background: rgba(16, 185, 129, 0.18) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #34D399 !important;
}

html[data-theme="dark"] span[style*="background: #FEF3C7"],
html[data-theme="dark"] span[style*="background:#FEF3C7"],
html[data-theme="dark"] span[style*="background: #FFFBEB"],
html[data-theme="dark"] span[style*="background:#FFFBEB"],
html[data-theme="dark"] .admin-table-audit span[style*="#FFFBEB"] {
    background: rgba(245, 158, 11, 0.18) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    color: #FBBF24 !important;
}

html[data-theme="dark"] span[style*="background: #FAF8F5"],
html[data-theme="dark"] span[style*="background:#FAF8F5"] {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] code,
html[data-theme="dark"] code[style*="background: #F1F5F9"],
html[data-theme="dark"] code[style*="background:#F1F5F9"] {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #34D399 !important;
}

/* Image preview thumbnails in Admin forms */
html[data-theme="dark"] div[style*="width: 70px"][style*="background: #FFFFFF"],
html[data-theme="dark"] div[style*="width: 70px"][style*="background:#FFFFFF"] {
    background: #081410 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] div[style*="background: #ECFDF5"][style*="border: 1px solid #A7F3D0"],
html[data-theme="dark"] div[style*="background:#ECFDF5"][style*="border: 1px solid #A7F3D0"] {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
}
html[data-theme="dark"] div[style*="background: #ECFDF5"] label,
html[data-theme="dark"] div[style*="background:#ECFDF5"] label {
    color: #34D399 !important;
}

/* ==========================================================================
   10. DYNAMIC ISLAND IN DARK MODE
   ========================================================================== */
html[data-theme="dark"] .dynamic-island {
    background: #0D1C16 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .island-title {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .island-message {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .island-chip-group {
    background: #081410 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .island-chip {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .island-close-btn {
    background: #142820 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #94A3B8 !important;
}

html[data-theme="dark"] .island-close-btn:hover {
    background: #1B352B !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .island-btn-secondary {
    background: #10241C !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #E2E8F0 !important;
}

html[data-theme="dark"] .island-btn-secondary:hover {
    background: #163026 !important;
    color: #FFFFFF !important;
}


/* ==========================================================================
   11. PRIMARY COMMODITIES CAROUSEL & 3D CARDS
   ========================================================================== */
html[data-theme="dark"] .section-featured-products {
    background-color: #08120E !important;
}

html[data-theme="dark"] .section-featured-products .section-tag {
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.28) !important;
    color: #FBBF24 !important;
}

html[data-theme="dark"] .section-featured-products .section-title {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .section-featured-products .section-desc {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .primary-commodity-card {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 
        0 4px 14px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .primary-commodity-card:hover {
    border-color: rgba(16, 185, 129, 0.35) !important;
    box-shadow: 
        0 14px 32px -4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(16, 185, 129, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] .primary-card-origin {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .primary-card-star {
    background: rgba(245, 158, 11, 0.15) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    color: #F59E0B !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.25) !important;
}

html[data-theme="dark"] .primary-card-media {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, #07100D 70%) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

html[data-theme="dark"] .primary-card-title {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .primary-card-botanical {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .primary-purity-badge {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .primary-card-action {
    color: #F59E0B !important;
}

html[data-theme="dark"] .featured-carousel-nav .featured-nav-btn {
    background: #0E1D17 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .featured-carousel-nav .featured-nav-btn:hover {
    background: #10B981 !important;
    border-color: #10B981 !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .btn-outline-gold {
    background: transparent !important;
    border-color: #F59E0B !important;
    color: #F59E0B !important;
}

html[data-theme="dark"] .btn-outline-gold:hover {
    background: #F59E0B !important;
    color: #08120E !important;
}

/* ==========================================================================
   12. PRODUCT RANGE 6 CARDS (pjm-range-card)
   ========================================================================== */
html[data-theme="dark"] .pjm-range-section,
html[data-theme="dark"] #productRangeSection {
    background-color: #08120E !important;
}

html[data-theme="dark"] .pjm-range-card {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .pjm-corner-icon-badge {
    background: rgba(8, 20, 15, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .pjm-card-banner {
    background: linear-gradient(to top, rgba(13, 28, 22, 0.98), rgba(13, 28, 22, 0.4) 70%, transparent) !important;
}

html[data-theme="dark"] .pjm-card-title {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .pjm-card-overlay {
    background: rgba(8, 18, 14, 0.94) !important;
    backdrop-filter: blur(8px) !important;
}

html[data-theme="dark"] .pjm-overlay-title {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .pjm-overlay-desc {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .pjm-overlay-btn {
    background: #10B981 !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   13. PRODUCTS CATALOG PAGE (products.php)
   ========================================================================== */
html[data-theme="dark"] .catalog-search-wrap,
html[data-theme="dark"] .catalog-filter-bar {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .catalog-search-input,
html[data-theme="dark"] #productSearchInput,
html[data-theme="dark"] input[type="search"] {
    background: #08130F !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .catalog-card,
html[data-theme="dark"] .product-catalog-card {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .catalog-card-body,
html[data-theme="dark"] .product-card-body {
    background: transparent !important;
}

/* ==========================================================================
   14. CONTAINER CALCULATOR (container_calculator.php)
   ========================================================================== */
html[data-theme="dark"] .calc-container,
html[data-theme="dark"] .calculator-card,
html[data-theme="dark"] .calc-display-panel,
html[data-theme="dark"] .calc-viewport-wrapper {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .calc-stat-box,
html[data-theme="dark"] .calc-metric-pill {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
}

/* ==========================================================================
   15. QUALITY, ABOUT, CONTACT & RFQ PAGES
   ========================================================================== */
html[data-theme="dark"] .quality-card,
html[data-theme="dark"] .cert-showcase-card,
html[data-theme="dark"] .timeline-card,
html[data-theme="dark"] .contact-info-card,
html[data-theme="dark"] .rfq-step-card,
html[data-theme="dark"] .rfq-panel {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    background: #08130F !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25) !important;
}

/* ==========================================================================
   16. MASTER FOOTER HARDENING
   ========================================================================== */
html[data-theme="dark"] .footer {
    background: #050B08 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .footer h3,
html[data-theme="dark"] .footer h4 {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .footer-links a {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .footer-links a:hover {
    color: #34D399 !important;
}

html[data-theme="dark"] .footer-contact-list li span {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.06) !important;
    color: #64748B !important;
}

html[data-theme="dark"] .footer-bottom a {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .footer-bottom a:hover {
    color: #34D399 !important;
}

/* ==========================================================================
   17. SMOOTH THEME TRANSITION HELPER
   ========================================================================== */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *:before,
html.theme-transitioning *:after {
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease !important;
}

/* ==========================================================================
   19. SUBPAGE HEADER BAR (Breadcrumbs & Navigation in Dark Mode)
   ========================================================================== */
html[data-theme="dark"] .catalog-sub-header,
html[data-theme="dark"] .subpage-header-bar {
    background: rgba(8, 18, 14, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .catalog-back-button,
html[data-theme="dark"] .subpage-back-btn {
    background: #0D1C16 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .catalog-back-button:hover,
html[data-theme="dark"] .subpage-back-btn:hover {
    background: #10B981 !important;
    border-color: #10B981 !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .catalog-breadcrumbs,
html[data-theme="dark"] .subpage-breadcrumbs {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .catalog-breadcrumbs a,
html[data-theme="dark"] .subpage-breadcrumbs a {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .catalog-breadcrumbs a:hover,
html[data-theme="dark"] .subpage-breadcrumbs a:hover {
    color: #34D399 !important;
}

html[data-theme="dark"] .catalog-breadcrumbs .bc-active,
html[data-theme="dark"] .subpage-breadcrumbs .bc-active {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .catalog-main-title,
html[data-theme="dark"] .subpage-main-title {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .subpage-badge-pill {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .subpage-hub-badge {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.28) !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .header-search-wrap {
    background: #08130F !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

html[data-theme="dark"] .header-search-wrap:focus-within {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25) !important;
}

html[data-theme="dark"] .header-search-input {
    color: #F8FAFC !important;
}

/* Smart Predictive Search Autocomplete Dropdown Dark Mode */
html[data-theme="dark"] .search-autocomplete-dropdown {
    background: #0B1E17 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .autocomplete-top-bar {
    background: #071510 !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .autocomplete-badge-count {
    color: #34D399 !important;
}

html[data-theme="dark"] .autocomplete-keyboard-hint kbd {
    background: #132A20 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .autocomplete-item:hover,
html[data-theme="dark"] .autocomplete-item.selected {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
}

html[data-theme="dark"] .autocomplete-title {
    color: #F1F5F9 !important;
}

html[data-theme="dark"] .autocomplete-thumb {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: #071510 !important;
}

html[data-theme="dark"] .search-match-highlight {
    background: rgba(245, 158, 11, 0.25) !important;
    color: #FCD34D !important;
}

html[data-theme="dark"] .autocomplete-cat {
    background: #132A20 !important;
    color: #94A3B8 !important;
}

html[data-theme="dark"] .autocomplete-alias-tag {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #FCD34D !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
}

html[data-theme="dark"] .autocomplete-zero {
    color: #94A3B8 !important;
}

/* ==========================================================================
   20. PRODUCTS FILTER BAR & CARDS REFINEMENT (products.php)
   ========================================================================== */
html[data-theme="dark"] .products-filter-bar {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .filter-bar-header {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .filter-bar-title {
    color: #34D399 !important;
}

html[data-theme="dark"] .filter-bar-hint {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .products-category-pills .country-tab-btn,
html[data-theme="dark"] .products-category-pills .filter-pill-btn {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .products-category-pills .country-tab-btn.active,
html[data-theme="dark"] .products-category-pills .filter-pill-btn.active {
    background: #10B981 !important;
    border-color: #10B981 !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .product-card-header {
    background: #0D1C16 !important;
}

html[data-theme="dark"] .product-origin-pill {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .prod-card-form-toggle {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .prod-form-btn {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .prod-form-btn.active {
    background: #10241C !important;
    color: var(--v-color, #34D399) !important;
    border-color: var(--v-border, #10B981) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
}
html[data-theme="dark"] .prod-form-btn.badge-whole.active,
html[data-theme="dark"] .prod-form-btn[data-form="whole"].active {
    background: rgba(21, 128, 61, 0.22) !important;
    color: #4ADE80 !important;
    border-color: #22C55E !important;
}
html[data-theme="dark"] .prod-form-btn.badge-whole.active i,
html[data-theme="dark"] .prod-form-btn[data-form="whole"].active i {
    color: #4ADE80 !important;
}
html[data-theme="dark"] .prod-form-btn.badge-ground.active,
html[data-theme="dark"] .prod-form-btn[data-form="ground"].active {
    background: rgba(180, 83, 9, 0.22) !important;
    color: #FBBF24 !important;
    border-color: #F59E0B !important;
}
html[data-theme="dark"] .prod-form-btn.badge-ground.active i,
html[data-theme="dark"] .prod-form-btn[data-form="ground"].active i {
    color: #FBBF24 !important;
}
html[data-theme="dark"] .prod-form-btn.badge-split.active,
html[data-theme="dark"] .prod-form-btn[data-form="split"].active {
    background: rgba(5, 150, 105, 0.22) !important;
    color: #34D399 !important;
    border-color: #10B981 !important;
}
html[data-theme="dark"] .prod-form-btn.badge-split.active i,
html[data-theme="dark"] .prod-form-btn[data-form="split"].active i {
    color: #34D399 !important;
}
html[data-theme="dark"] .prod-form-btn.badge-slice.active,
html[data-theme="dark"] .prod-form-btn[data-form="slice"].active {
    background: rgba(217, 119, 6, 0.22) !important;
    color: #FBBF24 !important;
    border-color: #D97706 !important;
}
html[data-theme="dark"] .prod-form-btn.badge-slice.active i,
html[data-theme="dark"] .prod-form-btn[data-form="slice"].active i {
    color: #FBBF24 !important;
}
html[data-theme="dark"] .prod-form-btn.badge-dehydrated.active,
html[data-theme="dark"] .prod-form-btn[data-form="dehydrated"].active {
    background: rgba(234, 88, 12, 0.22) !important;
    color: #FB923C !important;
    border-color: #EA580C !important;
}
html[data-theme="dark"] .prod-form-btn.badge-dehydrated.active i,
html[data-theme="dark"] .prod-form-btn[data-form="dehydrated"].active i {
    color: #FB923C !important;
}
html[data-theme="dark"] .prod-form-btn.badge-flakes.active,
html[data-theme="dark"] .prod-form-btn[data-form="flakes"].active {
    background: rgba(192, 38, 211, 0.22) !important;
    color: #E879F9 !important;
    border-color: #C026D3 !important;
}
html[data-theme="dark"] .prod-form-btn.badge-flakes.active i,
html[data-theme="dark"] .prod-form-btn[data-form="flakes"].active i {
    color: #E879F9 !important;
}
html[data-theme="dark"] .prod-form-btn.badge-crushed.active,
html[data-theme="dark"] .prod-form-btn[data-form="crushed"].active {
    background: rgba(220, 38, 38, 0.22) !important;
    color: #F87171 !important;
    border-color: #DC2626 !important;
}
html[data-theme="dark"] .prod-form-btn.badge-crushed.active i,
html[data-theme="dark"] .prod-form-btn[data-form="crushed"].active i {
    color: #F87171 !important;
}
html[data-theme="dark"] .prod-form-btn.badge-hulled.active,
html[data-theme="dark"] .prod-form-btn[data-form="hulled"].active {
    background: rgba(13, 148, 136, 0.22) !important;
    color: #2DD4BF !important;
    border-color: #0D9488 !important;
}
html[data-theme="dark"] .prod-form-btn.badge-hulled.active i,
html[data-theme="dark"] .prod-form-btn[data-form="hulled"].active i {
    color: #2DD4BF !important;
}
html[data-theme="dark"] .prod-form-btn.badge-granules.active,
html[data-theme="dark"] .prod-form-btn[data-form="granules"].active {
    background: rgba(124, 58, 237, 0.22) !important;
    color: #A78BFA !important;
    border-color: #7C3AED !important;
}
html[data-theme="dark"] .prod-form-btn.badge-granules.active i,
html[data-theme="dark"] .prod-form-btn[data-form="granules"].active i {
    color: #A78BFA !important;
}
html[data-theme="dark"] .prod-form-btn.badge-custom.active,
html[data-theme="dark"] .prod-form-btn[data-form="custom"].active {
    background: rgba(67, 56, 202, 0.22) !important;
    color: #818CF8 !important;
    border-color: #4338CA !important;
}
html[data-theme="dark"] .prod-form-btn.badge-custom.active i,
html[data-theme="dark"] .prod-form-btn[data-form="custom"].active i {
    color: #818CF8 !important;
}

/* Spot Form Pill Dark Theme */
html[data-theme="dark"] .spot-form-pill.is-whole,
html[data-theme="dark"] .spot-form-pill.badge-whole,
html[data-theme="dark"] .prod-form-badge-single.whole,
html[data-theme="dark"] .prod-form-badge-single.badge-whole {
    background: rgba(21, 128, 61, 0.22) !important;
    border-color: rgba(74, 222, 128, 0.35) !important;
    color: #4ADE80 !important;
}
html[data-theme="dark"] .spot-form-pill.is-whole i,
html[data-theme="dark"] .spot-form-pill.badge-whole i,
html[data-theme="dark"] .prod-form-badge-single.whole i,
html[data-theme="dark"] .prod-form-badge-single.badge-whole i {
    color: #4ADE80 !important;
}
html[data-theme="dark"] .spot-form-pill.is-ground,
html[data-theme="dark"] .spot-form-pill.badge-ground,
html[data-theme="dark"] .prod-form-badge-single.ground,
html[data-theme="dark"] .prod-form-badge-single.badge-ground {
    background: rgba(180, 83, 9, 0.22) !important;
    border-color: rgba(251, 191, 36, 0.35) !important;
    color: #FBBF24 !important;
}
html[data-theme="dark"] .spot-form-pill.is-ground i,
html[data-theme="dark"] .spot-form-pill.badge-ground i,
html[data-theme="dark"] .prod-form-badge-single.ground i,
html[data-theme="dark"] .prod-form-badge-single.badge-ground i {
    color: #FBBF24 !important;
}
html[data-theme="dark"] .spot-form-pill.badge-split,
html[data-theme="dark"] .prod-form-badge-single.split,
html[data-theme="dark"] .prod-form-badge-single.badge-split {
    background: rgba(5, 150, 105, 0.22) !important;
    border-color: rgba(52, 211, 153, 0.35) !important;
    color: #34D399 !important;
}
html[data-theme="dark"] .spot-form-pill.badge-slice,
html[data-theme="dark"] .prod-form-badge-single.slice,
html[data-theme="dark"] .prod-form-badge-single.badge-slice {
    background: rgba(217, 119, 6, 0.22) !important;
    border-color: rgba(251, 191, 36, 0.35) !important;
    color: #FBBF24 !important;
}
html[data-theme="dark"] .spot-form-pill.badge-dehydrated,
html[data-theme="dark"] .prod-form-badge-single.dehydrated,
html[data-theme="dark"] .prod-form-badge-single.badge-dehydrated {
    background: rgba(234, 88, 12, 0.22) !important;
    border-color: rgba(251, 146, 60, 0.35) !important;
    color: #FB923C !important;
}
html[data-theme="dark"] .spot-form-pill.badge-flakes,
html[data-theme="dark"] .prod-form-badge-single.flakes,
html[data-theme="dark"] .prod-form-badge-single.badge-flakes {
    background: rgba(192, 38, 211, 0.22) !important;
    border-color: rgba(232, 121, 249, 0.35) !important;
    color: #E879F9 !important;
}
html[data-theme="dark"] .spot-form-pill.badge-crushed,
html[data-theme="dark"] .prod-form-badge-single.crushed,
html[data-theme="dark"] .prod-form-badge-single.badge-crushed {
    background: rgba(220, 38, 38, 0.22) !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
}
html[data-theme="dark"] .spot-form-pill.badge-hulled,
html[data-theme="dark"] .prod-form-badge-single.hulled,
html[data-theme="dark"] .prod-form-badge-single.badge-hulled {
    background: rgba(13, 148, 136, 0.22) !important;
    border-color: rgba(45, 212, 191, 0.35) !important;
    color: #2DD4BF !important;
}
html[data-theme="dark"] .spot-form-pill.badge-granules,
html[data-theme="dark"] .prod-form-badge-single.granules,
html[data-theme="dark"] .prod-form-badge-single.badge-granules {
    background: rgba(124, 58, 237, 0.22) !important;
    border-color: rgba(167, 139, 250, 0.35) !important;
    color: #A78BFA !important;
}
html[data-theme="dark"] .spot-form-pill.badge-custom,
html[data-theme="dark"] .prod-form-badge-single.custom,
html[data-theme="dark"] .prod-form-badge-single.badge-custom {
    background: rgba(67, 56, 202, 0.22) !important;
    border-color: rgba(129, 140, 248, 0.35) !important;
    color: #818CF8 !important;
}

html[data-theme="dark"] .product-specs-list {
    background: #091510 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .product-spec-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="dark"] .product-spec-label {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .product-spec-val {
    color: #F8FAFC !important;
}

/* ==========================================================================
   21. PRODUCT DETAIL STAGE VIEWPORT (product_detail.php)
   ========================================================================== */
html[data-theme="dark"] .product-stage-viewport,
html[data-theme="dark"] .product-stage-viewport[data-variant] {
    background: radial-gradient(circle at 50% 48%, #0E2219 0%, #091611 55%, #050C09 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .stage-filter-bar-wrap {
    background: rgba(8, 18, 14, 0.94) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .stage-watermark-text {
    color: rgba(255, 255, 255, 0.025) !important;
    text-shadow: none !important;
}

html[data-theme="dark"] .product-master-title {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .product-botanical-code {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .product-spec-glass-card {
    background: rgba(13, 28, 22, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .product-export-highlights-card {
    background: rgba(13, 28, 22, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .product-price-payload-chip {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .stage-form-toggle {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .stage-form-btn {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .stage-form-btn.active {
    background: #10241C !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .detail-specs-container,
html[data-theme="dark"] .spec-matrix-card {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .spec-matrix-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .spec-matrix-key {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .spec-matrix-val {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .product-detail-specs-section {
    background-color: #08120E !important;
}

html[data-theme="dark"] .detail-overview-box {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .btn-stage-secondary {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .btn-stage-secondary:hover {
    background: #10241C !important;
    border-color: #34D399 !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .stage-search-dropdown {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] .stage-search-item {
    color: #CBD5E1 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .stage-search-item:hover {
    background: #142820 !important;
    color: #34D399 !important;
}

/* ==========================================================================
   22. CONTAINER CALCULATOR & SUBPAGE VISUAL SHOWCASES (container_calculator.php, export_guide.php, terms.php)
   ========================================================================== */
html[data-theme="dark"] .subpage-visual-showcase {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .subpage-visual-title {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .subpage-visual-desc {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .subpage-visual-tag {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .subpage-visual-badge-item {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .subpage-visual-badge-item i {
    color: #F59E0B !important;
}

html[data-theme="dark"] .subpage-visual-media-badge {
    background: rgba(8, 20, 15, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .calc-card {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #F8FAFC !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .calc-toggle-btn {
    background: #081410 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .calc-toggle-btn:hover {
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .calc-toggle-btn.active {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    color: #FFFFFF !important;
    border-color: #10B981 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
}

html[data-theme="dark"] .calc-meter-box {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .container-specs-card {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #F8FAFC !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .container-specs-card p {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .container-specs-table th {
    background: #081410 !important;
    color: #F8FAFC !important;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .container-specs-table td {
    color: #CBD5E1 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .container-specs-table td strong {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .container-specs-table tbody tr:hover {
    background: rgba(16, 185, 129, 0.06) !important;
}

html[data-theme="dark"] .mobile-table-hint {
    background: #081410 !important;
    color: #94A3B8 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   23. QUALITY, ABOUT, CONTACT & RFQ PAGES
   ========================================================================== */
html[data-theme="dark"] .apple-glass-section {
    background: #08120E !important;
}

html[data-theme="dark"] .apple-glass-card {
    background: rgba(13, 28, 22, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .apple-glass-pill {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .apple-media-frame {
    background: #07100D !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .apple-media-float-badge {
    background: rgba(8, 20, 15, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .contact-form-card,
html[data-theme="dark"] .contact-info-card,
html[data-theme="dark"] .rfq-card-section {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

/* ==========================================================================
   23. RFQ DEDICATED PORTAL (rfq.php & includes/rfq_modal.php)
   ========================================================================== */
html[data-theme="dark"] .rfq-portal-wrap {
    background: #060E0B !important;
}

html[data-theme="dark"] .rfq-card-section {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .rfq-card-section:hover {
    border-color: rgba(16, 185, 129, 0.35) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 15px rgba(16, 185, 129, 0.1) !important;
}

html[data-theme="dark"] .rfq-section-title {
    color: #34D399 !important;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .rfq-section-badge {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
}

html[data-theme="dark"] .form-label {
    color: #E2E8F0 !important;
}

html[data-theme="dark"] .form-label-opt {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .form-hint {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .form-control {
    background: #081410 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .form-control:focus {
    background: #0A1813 !important;
    border-color: #10B981 !important;
    box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.22) !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .form-control::placeholder {
    color: #64748B !important;
}

html[data-theme="dark"] select.form-control {
    background-color: #081410 !important;
    color: #F8FAFC !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334D399' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 1rem !important;
}

/* Admin RFQ Table Status Badge Select (Dark Mode) */
html[data-theme="dark"] .rfq-status-badge-select {
    background-color: #0A1E17 !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #F8FAFC !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.6rem center !important;
    background-size: 10px 10px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

html[data-theme="dark"] .rfq-status-badge-select option {
    background-color: #0A1E17 !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .rfq-status-badge-select.status-new {
    background-color: rgba(16, 185, 129, 0.18) !important;
    border-color: rgba(16, 185, 129, 0.45) !important;
    color: #34D399 !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2334D399' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
}

html[data-theme="dark"] .rfq-status-badge-select.status-under_review {
    background-color: rgba(245, 158, 11, 0.18) !important;
    border-color: rgba(245, 158, 11, 0.45) !important;
    color: #FBBF24 !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FBBF24' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
}

html[data-theme="dark"] .rfq-status-badge-select.status-quoted {
    background-color: rgba(59, 130, 246, 0.18) !important;
    border-color: rgba(59, 130, 246, 0.45) !important;
    color: #60A5FA !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2360A5FA' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
}

html[data-theme="dark"] .rfq-status-badge-select.status-sample_dispatched {
    background-color: rgba(168, 85, 247, 0.18) !important;
    border-color: rgba(168, 85, 247, 0.45) !important;
    color: #C084FC !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C084FC' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
}

html[data-theme="dark"] .rfq-status-badge-select.status-completed {
    background-color: rgba(34, 197, 94, 0.18) !important;
    border-color: rgba(34, 197, 94, 0.45) !important;
    color: #4ADE80 !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234ADE80' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
}

html[data-theme="dark"] .rfq-gateway-ports-box {
    background: rgba(16, 185, 129, 0.08) !important;
    border: 1px solid rgba(16, 185, 129, 0.22) !important;
    color: #E2E8F0 !important;
}

html[data-theme="dark"] .rfq-sample-box {
    background: rgba(16, 185, 129, 0.06) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    color: #E2E8F0 !important;
}

html[data-theme="dark"] .rfq-sample-box strong {
    color: #34D399 !important;
}

html[data-theme="dark"] .rfq-sample-box span {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .rfq-ssl-guarantee {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .phone-smart-input-group {
    background: #081410 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="dark"] .phone-smart-input-group:focus-within {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.22) !important;
}

html[data-theme="dark"] .phone-smart-input-group .nafra-select-trigger {
    background: #081410 !important;
    border-right: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .phone-smart-input-group .nafra-select-container.is-open .nafra-select-trigger {
    background: #0B1C15 !important;
    border-right-color: #10B981 !important;
}

html[data-theme="dark"] .phone-code-select {
    background: #081410 !important;
    border-right: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .phone-input-field {
    color: #F8FAFC !important;
    background: transparent !important;
}

html[data-theme="dark"] .phone-input-field::placeholder {
    color: #64748B !important;
}

html[data-theme="dark"] .rfq-summary-card {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    color: #F8FAFC !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55) !important;
}

html[data-theme="dark"] .rfq-summary-card:hover {
    border-color: rgba(16, 185, 129, 0.35) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), 0 0 15px rgba(16, 185, 129, 0.1) !important;
}

html[data-theme="dark"] .rfq-summary-card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .rfq-summary-card-header h4 {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .rfq-summary-card-header h4 i {
    color: #34D399 !important;
}

html[data-theme="dark"] .rfq-live-badge {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .rfq-summary-row {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .rfq-summary-label {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .rfq-summary-value {
    color: #34D399 !important;
}

html[data-theme="dark"] .rfq-ports-box {
    background: rgba(16, 185, 129, 0.08) !important;
    border: 1px solid rgba(16, 185, 129, 0.22) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .rfq-ports-box strong {
    color: #34D399 !important;
}

html[data-theme="dark"] .rfq-contact-desk-card {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    color: #F8FAFC !important;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .rfq-contact-desk-card:hover {
    border-color: rgba(16, 185, 129, 0.35) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), 0 0 15px rgba(16, 185, 129, 0.1) !important;
}

html[data-theme="dark"] .rfq-contact-desk-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .rfq-contact-avatar {
    background: #081410 !important;
    border: 1.5px solid #10B981 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25) !important;
}

html[data-theme="dark"] .avatar-online-dot {
    border-color: #081410 !important;
}

html[data-theme="dark"] .rfq-contact-desk-card div[style*="color: #0A261D"],
html[data-theme="dark"] .rfq-contact-desk-card div[style*="color:#0A261D"] {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .rfq-contact-desk-card div[style*="color: #6B7280"],
html[data-theme="dark"] .rfq-contact-desk-card div[style*="color:#6B7280"] {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .rfq-contact-desk-card div[style*="color: #4B5563"],
html[data-theme="dark"] .rfq-contact-desk-card div[style*="color:#4B5563"] {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .rfq-contact-desk-card div[style*="color: #4B5563"] a,
html[data-theme="dark"] .rfq-contact-desk-card div[style*="color:#4B5563"] a {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .rfq-contact-desk-card div[style*="color: #4B5563"] a:hover,
html[data-theme="dark"] .rfq-contact-desk-card div[style*="color:#4B5563"] a:hover {
    color: #34D399 !important;
}

html[data-theme="dark"] .rfq-cert-pill {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .rfq-cert-pill:hover {
    background: #12241C !important;
    border-color: #10B981 !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .rfq-cert-pill i {
    color: #F59E0B !important;
}

html[data-theme="dark"] .rfq-success-container {
    background: #0D1C16 !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .rfq-success-heading {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .rfq-success-lead {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .rfq-success-message-box {
    background: rgba(16, 185, 129, 0.08) !important;
    border: 1px solid rgba(16, 185, 129, 0.25) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .rfq-success-ref-card {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .rfq-ref-label {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .rfq-ref-code {
    color: #34D399 !important;
}

/* Modal RFQ (includes/rfq_modal.php) */
html[data-theme="dark"] .rfq-modal-box {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85) !important;
}

html[data-theme="dark"] .rfq-modal-body {
    background: #0D1C16 !important;
}

html[data-theme="dark"] .rfq-promo-banner {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #A7F3D0 !important;
}

html[data-theme="dark"] .rfq-promo-link {
    color: #34D399 !important;
}

html[data-theme="dark"] .rfq-security-badge {
    color: #94A3B8 !important;
}

/* ==========================================================================
   24. LANGUAGE DROPDOWN & CUSTOM SELECTS
   ========================================================================== */
html[data-theme="dark"] .lang-dropdown-panel {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8) !important;
}

html[data-theme="dark"] .lang-search-box input {
    background: #08130F !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .lang-quick-pill {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .lang-quick-pill:hover,
html[data-theme="dark"] .lang-quick-pill.active {
    background: #10B981 !important;
    border-color: #10B981 !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .lang-item {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .lang-item:hover,
html[data-theme="dark"] .lang-item.active {
    background: #12241C !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .lang-english-name {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .lang-native-name {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .nafra-select-btn,
html[data-theme="dark"] .custom-dropdown-btn {
    background: #08130F !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .nafra-select-dropdown,
html[data-theme="dark"] .custom-dropdown-panel {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .nafra-select-item,
html[data-theme="dark"] .custom-dropdown-item {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .nafra-select-item:hover,
html[data-theme="dark"] .custom-dropdown-item:hover {
    background: #12241C !important;
    color: #34D399 !important;
}

/* ==========================================================================
   25. PRODUCT TITLE ANCHORS & METRIC BOXES CONTRAST (Dark Mode)
   ========================================================================== */
html[data-theme="dark"] .product-title a,
html[data-theme="dark"] .product-card-title a {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .product-title a:hover,
html[data-theme="dark"] .product-card-title a:hover {
    color: #34D399 !important;
}

html[data-theme="dark"] .metric-mini-box {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    padding: 0.5rem !important;
}

html[data-theme="dark"] .metric-mini-val {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .metric-mini-label {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .spec-subbadge {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .product-tasting-tag {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .product-tasting-desc {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .product-card-header .product-title,
html[data-theme="dark"] .product-card-header .product-title a {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .product-card-header .product-title a:hover {
    color: #34D399 !important;
}

/* ==========================================================================
   26. LUXURY SECTIONS & REFERENCE SECTION HEADERS (Dark Mode)
   ========================================================================== */
html[data-theme="dark"] .section-luxury-why,
html[data-theme="dark"] #whyChooseNafraSection {
    background: #08120E !important;
    background-color: #08120E !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .section-luxury-industries,
html[data-theme="dark"] #industriesWeServeSection {
    background: #050D0A !important;
    background-color: #050D0A !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] #worldMapSection {
    background: #08120E !important;
    background-color: #08120E !important;
    background-image: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] #qualitySection {
    background: #050D0A !important;
    background-color: #050D0A !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] #faqSection {
    background: #08120E !important;
    background-color: #08120E !important;
    background-image: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] #calculatorSection {
    background: #060E0B !important;
    background-color: #060E0B !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] #contactBanner {
    background: #08120E !important;
    background-color: #08120E !important;
}

html[data-theme="dark"] .apple-glass-section,
html[data-theme="dark"] .apple-glass-section-alt {
    background: #08120E !important;
    background-color: #08120E !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .luxury-bg-watermark .watermark-arc {
    border-color: rgba(16, 185, 129, 0.07) !important;
}

html[data-theme="dark"] .reference-section-header .reference-eyebrow .eyebrow-text {
    color: #F59E0B !important;
    letter-spacing: 0.12em !important;
    font-weight: 700 !important;
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.25) !important;
}

html[data-theme="dark"] .reference-section-header .reference-eyebrow .eyebrow-rule {
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.65), transparent) !important;
}

html[data-theme="dark"] .reference-section-header .reference-title {
    color: #FFFFFF !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 0 30px rgba(16, 185, 129, 0.15) !important;
}

html[data-theme="dark"] .reference-section-header .reference-ornament .ornament-line {
    background: rgba(245, 158, 11, 0.4) !important;
}

html[data-theme="dark"] .reference-section-header .reference-ornament .ornament-dot {
    background: #F59E0B !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6) !important;
    border: 2px solid #08120E !important;
}

/* ==========================================================================
   27. 3D FLIP DECKS & CARDS (Trust Pillars, Industries, Seaports, Certs)
   ========================================================================== */
/* Common Deck Controls */
html[data-theme="dark"] .flip-card-cue {
    background: #10241C !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #94A3B8 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .flip-card-slot:hover .flip-card-cue {
    background: #10B981 !important;
    color: #FFFFFF !important;
    border-color: #10B981 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
}

html[data-theme="dark"] .flip-toggle-pill {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    color: #94A3B8 !important;
}

html[data-theme="dark"] .flip-toggle-pill.is-active {
    background: #10B981 !important;
    border-color: #10B981 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45) !important;
}

html[data-theme="dark"] .flip-progress-track {
    background: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .flip-progress-bar {
    background: linear-gradient(90deg, #10B981, #F59E0B) !important;
}

html[data-theme="dark"] .flip-deck-hint {
    color: #64748B !important;
}

/* Trust Pillars Deck (Why Choose Nafra) */
html[data-theme="dark"] .trust-pillar-glass-card {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .trust-pillar-glass-card:hover {
    border-color: rgba(16, 185, 129, 0.45) !important;
    background: #10241C !important;
    box-shadow: 
        0 18px 45px rgba(0, 0, 0, 0.8),
        0 0 25px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] .trust-top-notch {
    background: linear-gradient(90deg, #10B981, #F59E0B) !important;
}

html[data-theme="dark"] .trust-icon-badge {
    background: radial-gradient(circle, #10241C 0%, #08120E 100%) !important;
    border: 1.5px solid rgba(16, 185, 129, 0.35) !important;
    color: #34D399 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .trust-card-title {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .trust-card-divider {
    background: rgba(16, 185, 129, 0.4) !important;
}

html[data-theme="dark"] .trust-card-desc {
    color: #94A3B8 !important;
}

/* Industries We Serve Deck */
html[data-theme="dark"] .industry-glass-card {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(245, 158, 11, 0.25) !important;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .industry-glass-card:hover {
    border-color: rgba(245, 158, 11, 0.6) !important;
    background: #11241C !important;
    box-shadow: 
        0 18px 45px rgba(0, 0, 0, 0.8),
        0 0 25px rgba(245, 158, 11, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] .industry-icon-badge {
    background: radial-gradient(circle, #1C190D 0%, #0B1410 100%) !important;
    border: 1.5px solid rgba(245, 158, 11, 0.45) !important;
    color: #F59E0B !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .industry-card-title {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .industry-card-divider {
    background: rgba(245, 158, 11, 0.4) !important;
}

html[data-theme="dark"] .industry-card-desc {
    color: #94A3B8 !important;
}

/* Seaports & Ocean Carriers Deck */
html[data-theme="dark"] .port-carrier-glass-card {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .port-carrier-glass-card:hover {
    background: #10241C !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
}

html[data-theme="dark"] .port-carrier-name {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .port-carrier-sub {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .card-mini-tag.tag-port {
    background: rgba(2, 132, 199, 0.2) !important;
    color: #38BDF8 !important;
    border-color: rgba(2, 132, 199, 0.4) !important;
}

html[data-theme="dark"] .card-mini-tag.tag-carrier {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #34D399 !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
}

html[data-theme="dark"] .port-carrier-glass-card:hover .carrier-action-maersk,
html[data-theme="dark"] .port-carrier-glass-card:hover .carrier-action-msc,
html[data-theme="dark"] .port-carrier-glass-card:hover .carrier-action-cmacgm,
html[data-theme="dark"] .port-carrier-glass-card:hover .carrier-action-hapag,
html[data-theme="dark"] .port-carrier-glass-card:hover .port-action-kandla,
html[data-theme="dark"] .port-carrier-glass-card:hover .port-action-mundra,
html[data-theme="dark"] .port-carrier-glass-card:hover .port-action-jnpt,
html[data-theme="dark"] .port-carrier-glass-card:hover .port-action-pipavav {
    color: #FFFFFF !important;
}

/* Certifications Showcase Deck - Luxury Gold Medallion Architecture */
html[data-theme="dark"] .cert-glass-card {
    background: radial-gradient(circle at 50% 25%, rgba(212, 175, 55, 0.08) 0%, rgba(10, 28, 21, 0.95) 75%) !important;
    border: 1.5px solid rgba(212, 175, 55, 0.35) !important;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .cert-glass-card:hover {
    border-color: #D4AF37 !important;
    background: radial-gradient(circle at 50% 25%, rgba(212, 175, 55, 0.14) 0%, rgba(13, 34, 25, 0.98) 75%) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8), 0 0 28px rgba(212, 175, 55, 0.28) !important;
}

html[data-theme="dark"] .cert-glass-media {
    width: auto !important;
    min-width: 96px !important;
    height: 76px !important;
    margin: 0 auto 0.9rem auto !important;
    border-radius: 16px !important;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, rgba(8, 24, 18, 0.75) 70%, transparent 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 0 14px rgba(212, 175, 55, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 14px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    transition: all 0.35s ease !important;
}

html[data-theme="dark"] .cert-glass-media img {
    max-height: 58px !important;
    max-width: 105px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6)) !important;
    transition: transform 0.35s ease, filter 0.35s ease !important;
}

/* Invert black logo (Kosher) so it becomes a gleaming white emblem on dark theme */
html[data-theme="dark"] .cert-glass-media img[src*="Kosher"],
html[data-theme="dark"] .cert-glass-media img[alt*="Kosher"] {
    filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(255, 255, 255, 0.45)) !important;
}

/* Ensure FDA blue pop with subtle glow on dark theme */
html[data-theme="dark"] .cert-glass-media img[src*="FDA"],
html[data-theme="dark"] .cert-glass-media img[alt*="FDA"] {
    filter: brightness(1.25) drop-shadow(0 2px 8px rgba(0, 100, 255, 0.35)) !important;
}

html[data-theme="dark"] .cert-glass-card:hover .cert-glass-media {
    border-color: #D4AF37 !important;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.18) 0%, rgba(13, 38, 28, 0.85) 70%, transparent 100%) !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.7), 0 0 18px rgba(212, 175, 55, 0.25) !important;
    transform: translateY(-2px) scale(1.05) !important;
}

html[data-theme="dark"] .cert-card-title {
    color: #FFFFFF !important;
    font-weight: 700 !important;
}

html[data-theme="dark"] .cert-card-issuer {
    color: #F59E0B !important;
}

html[data-theme="dark"] .cert-card-desc {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .cert-card-badge {
    background: rgba(212, 175, 55, 0.12) !important;
    color: #F59E0B !important;
    border: 1px solid rgba(212, 175, 55, 0.28) !important;
}

/* ==========================================================================
   28. GLOBAL LOGISTICS NETWORK & WORLD MAP (Dark Mode)
   ========================================================================== */
html[data-theme="dark"] .trade-hub-card {
    background: #0A1612 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .trade-hub-header {
    background: #0D1C16 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .trade-hub-title {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .trade-hub-title-group p {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .trade-hub-icon {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34D399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

html[data-theme="dark"] .trade-hub-badge-pill {
    background: rgba(245, 158, 11, 0.15) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    color: #F59E0B !important;
}

html[data-theme="dark"] .world-map-visual-wrap {
    background: #060D0A !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8) !important;
}

/* SVG non-export countries in dark theme */
html[data-theme="dark"] #nafraWorldMapSvg .other-country,
html[data-theme="dark"] #nafraWorldMapSvg #_somaliland,
html[data-theme="dark"] #nafraWorldMapSvg path:not([fill]),
html[data-theme="dark"] #nafraWorldMapSvg g:not([fill]) > path {
    fill: #13241C !important;
    stroke: #1B3528 !important;
}

html[data-theme="dark"] #nafraWorldMapSvg .other-country:hover,
html[data-theme="dark"] #nafraWorldMapSvg #_somaliland:hover {
    fill: #182E24 !important;
    stroke: #2E5340 !important;
}

html[data-theme="dark"] #nafraWorldMapSvg .world-country.continent-dimmed,
html[data-theme="dark"] #nafraWorldMapSvg path.continent-dimmed,
html[data-theme="dark"] #nafraWorldMapSvg g.continent-dimmed path {
    fill: #0F1D17 !important;
    stroke: #162B21 !important;
    opacity: 0.3 !important;
}

/* Continent Cards */
html[data-theme="dark"] .continent-card {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .continent-card.active,
html[data-theme="dark"] .continent-card:hover {
    border-color: rgba(245, 158, 11, 0.6) !important;
    background: #11241C !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(245, 158, 11, 0.15) !important;
}

html[data-theme="dark"] .continent-name {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .continent-score {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .continent-score span {
    color: #64748B !important;
}

html[data-theme="dark"] .continent-progress-track {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Directory Drawer Button & Drawer */
html[data-theme="dark"] .btn-clean-directory-toggle {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .btn-clean-directory-toggle:hover {
    background: #10241C !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
}

html[data-theme="dark"] .btn-toggle-title {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .btn-toggle-text small {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .btn-toggle-icon {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .badge-pill {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #F59E0B !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

html[data-theme="dark"] .country-directory-drawer {
    background: #0A1612 !important;
}

html[data-theme="dark"] .countries-search-bar {
    background: #08120E !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .country-input-wrap {
    background: #060D0A !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .country-input-wrap input {
    background: transparent !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .countries-table-wrapper table th {
    background: #081410 !important;
    color: #34D399 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .countries-table-wrapper table td {
    background: #0A1612 !important;
    color: #CBD5E1 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="dark"] .countries-table-wrapper table tr:hover td {
    background: #10241C !important;
}

/* Port Gateways Corridor Box */
html[data-theme="dark"] .port-corridor-card,
html[data-theme="dark"] .port-gateways-bar,
html[data-theme="dark"] .corridor-strip-card {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
}

/* ==========================================================================
   29. SOURCING & PROCESSING FLOW (Dark Mode)
   ========================================================================== */
html[data-theme="dark"] .sourcing-flow-card {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .sourcing-step-item {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
}

html[data-theme="dark"] .sourcing-step-num {
    color: #10B981 !important;
    font-weight: 800 !important;
    opacity: 1 !important;
    text-shadow: 0 0 16px rgba(16, 185, 129, 0.3) !important;
}

html[data-theme="dark"] .sourcing-step-title {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .sourcing-step-desc {
    color: #94A3B8 !important;
}

/* ==========================================================================
   30. CONTAINER CALCULATOR (Homepage & Dedicated Calculator Page)
   ========================================================================== */
html[data-theme="dark"] .calc-card,
html[data-theme="dark"] .calc-container,
html[data-theme="dark"] .calc-sidebar,
html[data-theme="dark"] .calc-panel,
html[data-theme="dark"] .calc-meter-box,
html[data-theme="dark"] .container-specs-card {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .calc-input,
html[data-theme="dark"] .calc-select,
html[data-theme="dark"] .calculator-control-box input,
html[data-theme="dark"] .calculator-control-box select {
    background: #060D0A !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .meter-stat {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .meter-stat strong {
    color: #10B981 !important;
}

html[data-theme="dark"] .meter-stat span {
    color: #94A3B8 !important;
}

html[data-theme="dark"] #calcAdviceText {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .container-specs-table-wrap table th {
    background: #081410 !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .container-specs-table-wrap table td {
    background: #0D1C16 !important;
    color: #CBD5E1 !important;
}

/* ==========================================================================
   31. FAQ ACCORDION & CONTACT SECTIONS (Dark Mode)
   ========================================================================== */
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .faq-accordion-item,
html[data-theme="dark"] .faq-box {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .faq-question,
html[data-theme="dark"] .faq-header {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .faq-answer,
html[data-theme="dark"] .faq-body {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .faq-chevron,
html[data-theme="dark"] .faq-toggle-icon {
    color: #10B981 !important;
}

/* ==========================================================================
   32. MODALS & POPUPS (Dark Mode)
   ========================================================================== */
html[data-theme="dark"] .modal-box {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-box .modal-header,
html[data-theme="dark"] .track-modal-header,
html[data-theme="dark"] .admin-modal-header {
    background: #0D1C16 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .modal-footer,
html[data-theme="dark"] .modal-box .modal-footer,
html[data-theme="dark"] .admin-modal-footer,
html[data-theme="dark"] .admin-modal-btn-row {
    background: #0D1C16 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .modal-title,
html[data-theme="dark"] .modal-header .modal-title,
html[data-theme="dark"] .track-modal-header h3,
html[data-theme="dark"] .track-modal-header h4 {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .modal-close-btn {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .modal-close-btn:hover {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .modal-box label {
    color: #E2E8F0 !important;
}

html[data-theme="dark"] .modal-box small {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .modal-box div[style*="color: #475569"],
html[data-theme="dark"] .modal-box div[style*="color:#475569"] {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .modal-body div[style*="background: #FAF9F6"] {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .modal-body p {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .modal-body p[style*="background: #F8FAFC"] {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #CBD5E1 !important;
}

/* ==========================================================================
   33. HERO SLIDER HIGH-CONTRAST ACCENTS & BUTTONS (Dark Mode)
   ========================================================================== */
html[data-theme="dark"] .hero-title {
    color: #FFFFFF !important;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.85) !important;
}

html[data-theme="dark"] .hero-description {
    color: #E2E8F0 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85) !important;
}

html[data-theme="dark"] .hero-slider-section .btn-outline {
    background: rgba(8, 20, 15, 0.85) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    color: #FFFFFF !important;
    backdrop-filter: blur(12px) !important;
}

html[data-theme="dark"] .hero-slider-section .btn-outline:hover {
    background: #10B981 !important;
    border-color: #10B981 !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .hero-slider-section .btn-hero-action.btn-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #B89020 100%) !important;
    color: #0A261D !important;
    border-color: #F59E0B !important;
    text-shadow: none !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35) !important;
}

html[data-theme="dark"] .hero-slider-section .btn-hero-action.btn-gold:hover {
    background: linear-gradient(135deg, #F59E0B 0%, #D4AF37 100%) !important;
    color: #042f2e !important;
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.5) !important;
}

html[data-theme="dark"] .hero-slider-section .btn-hero-action.btn-outline-gold {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1.5px solid #F59E0B !important;
    color: #FBBF24 !important;
    text-shadow: none !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(12px) !important;
}

html[data-theme="dark"] .hero-slider-section .btn-hero-action.btn-outline-gold:hover {
    background: #F59E0B !important;
    border-color: #F59E0B !important;
    color: #0A261D !important;
}

html[data-theme="dark"] .hero-stat-item {
    background: rgba(8, 20, 15, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(12px) !important;
}

html[data-theme="dark"] .hero-stat-item h3 {
    color: #34D399 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
}

html[data-theme="dark"] .hero-stat-item p {
    color: #E2E8F0 !important;
}

html[data-theme="dark"] .hero-metric-pill,
html[data-theme="dark"] .hero-feature-capsule {
    background: rgba(8, 20, 15, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
}

/* ==========================================================================
   34. QUALITY, ABOUT & DETAIL PAGES (Apple Glass & Pipeline Circuit)
   ========================================================================== */
html[data-theme="dark"] .apple-feature-card,
html[data-theme="dark"] .apple-val-card,
html[data-theme="dark"] .apple-vision-card,
html[data-theme="dark"] .apple-cta-glass-card {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .apple-feature-card:hover,
html[data-theme="dark"] .apple-val-card:hover {
    background: #10241C !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(16, 185, 129, 0.15) !important;
}

html[data-theme="dark"] .apple-feature-card h3,
html[data-theme="dark"] .apple-val-card h3 {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .apple-feature-card p,
html[data-theme="dark"] .apple-val-card p {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .apple-badge-chip {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .apple-glass-title {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .apple-glass-subtitle {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .apple-glass-divider {
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.5), transparent) !important;
}

html[data-theme="dark"] .pipeline-step-pill {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .pipeline-icon-box {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .apple-table table th,
html[data-theme="dark"] .spec-table th,
html[data-theme="dark"] .quality-table th {
    background: #081410 !important;
    color: #34D399 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .apple-table table td,
html[data-theme="dark"] .spec-table td,
html[data-theme="dark"] .quality-table td {
    background: #0D1C16 !important;
    color: #CBD5E1 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* ==========================================================================
   35. COMPREHENSIVE TEXT & CARD GUARDRAILS (Anti-Washout Guarantee)
   ========================================================================== */
html[data-theme="dark"] .card,
html[data-theme="dark"] .card-box,
html[data-theme="dark"] .info-box,
html[data-theme="dark"] .stats-box {
    background: #0D1C16 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] strong,
html[data-theme="dark"] b {
    color: #FFFFFF !important;
}

html[data-theme="dark"] em,
html[data-theme="dark"] i:not([class*="fa"]) {
    color: #CBD5E1 !important;
}

/* ==========================================================================
   36. DIRECT SEAPORT GATEWAYS & SHIPPING PARTNERS STRIP
   ========================================================================== */
html[data-theme="dark"] .shipping-partners-strip {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .shipping-partners-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .shipping-partners-title {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .shipping-partners-title i {
    color: #F59E0B !important;
}

html[data-theme="dark"] .shipping-partners-badge {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34D399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

/* ==========================================================================
   37. CATALOG & PRODUCT CARD SPECIFICATIONS (High-Contrast Fix)
   ========================================================================== */
html[data-theme="dark"] .product-card-top-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .product-cat-pill {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #CBD5E1 !important;
    padding: 0.2rem 0.55rem !important;
    border-radius: 6px !important;
    font-size: 0.72rem !important;
}

html[data-theme="dark"] .product-specs-list .spec-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .product-specs-list .spec-label {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .product-specs-list .spec-label i {
    color: #F59E0B !important;
}

html[data-theme="dark"] .product-specs-list .spec-value {
    color: #F8FAFC !important;
    font-weight: 600 !important;
}

html[data-theme="dark"] .product-specs-list .spec-item-purity .spec-value {
    color: #34D399 !important;
    font-weight: 700 !important;
}

html[data-theme="dark"] .subpage-count-pill {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .subpage-visual-badge-item {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .no-live-results {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .no-live-results h3 {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .no-live-results p {
    color: #94A3B8 !important;
}

/* ==========================================================================
   38. 3D GRAND STAGE & PRODUCT DETAIL SYSTEM (product-dailyblend.css)
   ========================================================================== */
html[data-theme="dark"] .stage-filter-bar-wrap {
    background: #08120E !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .stage-back-btn {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="dark"] .stage-back-btn:hover {
    background: #10B981 !important;
    border-color: #10B981 !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .stage-back-btn i {
    color: #34D399 !important;
}

html[data-theme="dark"] .stage-cat-btn {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #94A3B8 !important;
}

html[data-theme="dark"] .stage-cat-btn:hover {
    background: #0D1C16 !important;
    color: #F8FAFC !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

html[data-theme="dark"] .stage-cat-btn.is-active {
    background: #10B981 !important;
    border-color: #10B981 !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .stage-search-input {
    background: #050D0A !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .stage-search-input:focus {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

html[data-theme="dark"] .stage-search-icon {
    color: #64748B !important;
}

html[data-theme="dark"] .stage-search-clear {
    background: #1E293B !important;
    color: #94A3B8 !important;
}

html[data-theme="dark"] .stage-search-dropdown {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="dark"] .stage-search-item:hover {
    background: rgba(16, 185, 129, 0.15) !important;
}

html[data-theme="dark"] .stage-search-item img {
    background: #081410 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .stage-search-item-name {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .stage-search-item-cat {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .stage-watermark-text {
    color: rgba(255, 255, 255, 0.02) !important;
}

html[data-theme="dark"] .spin-arrow-btn {
    background: rgba(13, 28, 22, 0.9) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .spin-arrow-btn:hover {
    background: #10B981 !important;
    border-color: #10B981 !important;
    color: #FFFFFF !important;
}

/* 3D Grand Stage Viewport & Ambient Halos */
html[data-theme="dark"] .product-stage-viewport {
    background: radial-gradient(circle at 50% 48%, #081C15 0%, #05130E 55%, #030C09 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .product-stage-viewport[data-variant="seeds"],
html[data-theme="dark"] .product-stage-viewport[data-variant="cumin"],
html[data-theme="dark"] .product-stage-viewport[data-variant="carom"],
html[data-theme="dark"] .product-stage-viewport[data-variant="coriander"] {
    background: radial-gradient(circle at 50% 48%, #1E1606 0%, #130E04 55%, #0A0702 100%) !important;
}

html[data-theme="dark"] .product-stage-viewport[data-variant="green"],
html[data-theme="dark"] .product-stage-viewport[data-variant="cardamom"],
html[data-theme="dark"] .product-stage-viewport[data-variant="fennel"],
html[data-theme="dark"] .product-stage-viewport[data-variant="herbs"] {
    background: radial-gradient(circle at 50% 48%, #062319 0%, #041610 55%, #020A07 100%) !important;
}

html[data-theme="dark"] .product-stage-viewport[data-variant="pepper"],
html[data-theme="dark"] .product-stage-viewport[data-variant="nigella"],
html[data-theme="dark"] .product-stage-viewport[data-variant="mustard"] {
    background: radial-gradient(circle at 50% 48%, #0D1620 0%, #080D14 55%, #04070A 100%) !important;
}

html[data-theme="dark"] .product-stage-viewport[data-variant="turmeric"],
html[data-theme="dark"] .product-stage-viewport[data-variant="ginger"] {
    background: radial-gradient(circle at 50% 48%, #241A04 0%, #171002 55%, #0C0801 100%) !important;
}

html[data-theme="dark"] .product-stage-viewport[data-variant="chilli"],
html[data-theme="dark"] .product-stage-viewport[data-variant="clove"],
html[data-theme="dark"] .product-stage-viewport[data-variant="cinnamon"] {
    background: radial-gradient(circle at 50% 48%, #24080D 0%, #160407 55%, #0A0204 100%) !important;
}

html[data-theme="dark"] .product-stage-viewport[data-variant="sesame"],
html[data-theme="dark"] .product-stage-viewport[data-variant="psyllium"],
html[data-theme="dark"] .product-stage-viewport[data-variant="makhana"] {
    background: radial-gradient(circle at 50% 48%, #0B1914 0%, #06110D 55%, #030A07 100%) !important;
}

html[data-theme="dark"] .center-spin-anchor::before {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.05) 60%, transparent 80%) !important;
}

/* Left HUD Panel */
html[data-theme="dark"] .product-spec-glass-card {
    background: rgba(13, 28, 22, 0.9) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .product-tasting-desc {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .product-metrics-grid {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .metric-mini-val {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .metric-mini-label {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .product-spec-subbadges {
    border-top: 1px dashed rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .spec-subbadge {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #CBD5E1 !important;
}

/* Right HUD Panel */
html[data-theme="dark"] .product-origin-pill {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .product-botanical-tag {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .product-botanical-tag em {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .product-master-title {
    color: #FFFFFF !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6) !important;
}

html[data-theme="dark"] .stage-form-toggle {
    background: rgba(8, 20, 15, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .stage-form-btn {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .stage-form-btn.is-active {
    background: #10241C !important;
    color: var(--v-color, #34D399) !important;
    border: 1.5px solid var(--v-border, #10B981) !important;
}
html[data-theme="dark"] .stage-form-btn.badge-whole.is-active,
html[data-theme="dark"] .stage-form-btn[data-form="whole"].is-active {
    background: rgba(21, 128, 61, 0.22) !important;
    color: #4ADE80 !important;
    border-color: #22C55E !important;
}
html[data-theme="dark"] .stage-form-btn.badge-whole.is-active i,
html[data-theme="dark"] .stage-form-btn[data-form="whole"].is-active i {
    color: #4ADE80 !important;
}
html[data-theme="dark"] .stage-form-btn.badge-ground.is-active,
html[data-theme="dark"] .stage-form-btn[data-form="ground"].is-active {
    background: rgba(180, 83, 9, 0.22) !important;
    color: #FBBF24 !important;
    border-color: #F59E0B !important;
}
html[data-theme="dark"] .stage-form-btn.badge-ground.is-active i,
html[data-theme="dark"] .stage-form-btn[data-form="ground"].is-active i {
    color: #FBBF24 !important;
}
html[data-theme="dark"] .stage-form-btn.badge-split.is-active,
html[data-theme="dark"] .stage-form-btn[data-form="split"].is-active {
    background: rgba(5, 150, 105, 0.22) !important;
    color: #34D399 !important;
    border-color: #10B981 !important;
}
html[data-theme="dark"] .stage-form-btn.badge-split.is-active i,
html[data-theme="dark"] .stage-form-btn[data-form="split"].is-active i {
    color: #34D399 !important;
}
html[data-theme="dark"] .stage-form-btn.badge-slice.is-active,
html[data-theme="dark"] .stage-form-btn[data-form="slice"].is-active {
    background: rgba(217, 119, 6, 0.22) !important;
    color: #FBBF24 !important;
    border-color: #D97706 !important;
}
html[data-theme="dark"] .stage-form-btn.badge-slice.is-active i,
html[data-theme="dark"] .stage-form-btn[data-form="slice"].is-active i {
    color: #FBBF24 !important;
}
html[data-theme="dark"] .stage-form-btn.badge-dehydrated.is-active,
html[data-theme="dark"] .stage-form-btn[data-form="dehydrated"].is-active {
    background: rgba(234, 88, 12, 0.22) !important;
    color: #FB923C !important;
    border-color: #EA580C !important;
}
html[data-theme="dark"] .stage-form-btn.badge-dehydrated.is-active i,
html[data-theme="dark"] .stage-form-btn[data-form="dehydrated"].is-active i {
    color: #FB923C !important;
}
html[data-theme="dark"] .stage-form-btn.badge-flakes.is-active,
html[data-theme="dark"] .stage-form-btn[data-form="flakes"].is-active {
    background: rgba(192, 38, 211, 0.22) !important;
    color: #E879F9 !important;
    border-color: #C026D3 !important;
}
html[data-theme="dark"] .stage-form-btn.badge-flakes.is-active i,
html[data-theme="dark"] .stage-form-btn[data-form="flakes"].is-active i {
    color: #E879F9 !important;
}
html[data-theme="dark"] .stage-form-btn.badge-crushed.is-active,
html[data-theme="dark"] .stage-form-btn[data-form="crushed"].is-active {
    background: rgba(220, 38, 38, 0.22) !important;
    color: #F87171 !important;
    border-color: #DC2626 !important;
}
html[data-theme="dark"] .stage-form-btn.badge-crushed.is-active i,
html[data-theme="dark"] .stage-form-btn[data-form="crushed"].is-active i {
    color: #F87171 !important;
}
html[data-theme="dark"] .stage-form-btn.badge-hulled.is-active,
html[data-theme="dark"] .stage-form-btn[data-form="hulled"].is-active {
    background: rgba(13, 148, 136, 0.22) !important;
    color: #2DD4BF !important;
    border-color: #0D9488 !important;
}
html[data-theme="dark"] .stage-form-btn.badge-hulled.is-active i,
html[data-theme="dark"] .stage-form-btn[data-form="hulled"].is-active i {
    color: #2DD4BF !important;
}
html[data-theme="dark"] .stage-form-btn.badge-granules.is-active,
html[data-theme="dark"] .stage-form-btn[data-form="granules"].is-active {
    background: rgba(124, 58, 237, 0.22) !important;
    color: #A78BFA !important;
    border-color: #7C3AED !important;
}
html[data-theme="dark"] .stage-form-btn.badge-granules.is-active i,
html[data-theme="dark"] .stage-form-btn[data-form="granules"].is-active i {
    color: #A78BFA !important;
}

html[data-theme="dark"] .product-export-highlights-card {
    background: rgba(13, 28, 22, 0.9) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .export-highlight-item {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .export-highlight-item strong {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .product-price-payload-chip {
    background: rgba(13, 28, 22, 0.92) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .product-calc-btn {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .product-calc-btn:hover {
    background: #10241C !important;
    border-color: #10B981 !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .product-calc-btn i {
    color: #34D399 !important;
}

/* Bottom Thumbnail Dock */
html[data-theme="dark"] .spin-thumbnails-dock {
    background: rgba(13, 28, 22, 0.92) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .spin-thumb-item {
    background: rgba(8, 20, 15, 0.85) !important;
    border-color: transparent !important;
}

html[data-theme="dark"] .spin-thumb-item:hover {
    background: #10241C !important;
    border-color: #10B981 !important;
}

html[data-theme="dark"] .spin-thumb-item.is-active {
    background: #10241C !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.4) !important;
}

html[data-theme="dark"] .spec-matrix-card {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .spec-matrix-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .spec-matrix-row:hover {
    background: rgba(16, 185, 129, 0.1) !important;
}

html[data-theme="dark"] .spec-matrix-row:hover .spec-key {
    color: #E2E8F0 !important;
}

html[data-theme="dark"] .spec-matrix-row:hover .spec-key i {
    color: #F59E0B !important;
}

html[data-theme="dark"] .spec-matrix-row:hover .spec-val,
html[data-theme="dark"] .spec-matrix-row:hover .spec-val strong,
html[data-theme="dark"] .spec-matrix-row:hover .spec-val em,
html[data-theme="dark"] .spec-matrix-row:hover .spec-val code,
html[data-theme="dark"] .spec-matrix-row:hover .spec-matrix-value {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .spec-key {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .spec-val,
html[data-theme="dark"] .spec-val strong,
html[data-theme="dark"] .spec-val em {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .spec-val-highlight {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .detail-card-panel {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .detail-panel-title,
html[data-theme="dark"] .detail-panel-title h2 {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .detail-desc-text {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .detail-sub-title {
    color: #34D399 !important;
}

html[data-theme="dark"] .detail-corridor-box {
    background: #08120E !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="dark"] .corridor-box-title {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .corridor-ports-row span {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .corridor-note {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .detail-quote-panel {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .detail-quote-header h3 {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .quote-panel-tag {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .quote-lead-badge {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .quick-rfq-field label {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .quick-rfq-field .form-control {
    background: #081410 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .quick-rfq-field .form-control:focus {
    background: #081410 !important;
    border-color: #10B981 !important;
    box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.2) !important;
}

/* ==========================================================================
   39. QUALITY PROCESS PIPELINE & APPLE GLASS SYSTEM (quality.php)
   ========================================================================== */
html[data-theme="dark"] .pipeline-node {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .pipeline-node:hover {
    background: #10241C !important;
    border-color: rgba(16, 185, 129, 0.6) !important;
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.2) !important;
}

html[data-theme="dark"] .pipeline-node.is-active {
    background: #10241C !important;
    border-color: #10B981 !important;
    box-shadow: 0 14px 35px rgba(16, 185, 129, 0.35), 0 0 0 3.5px rgba(16, 185, 129, 0.25) !important;
}

html[data-theme="dark"] .pipeline-node-title {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .pipeline-node-subtitle {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .pipeline-node.is-active .pipeline-node-subtitle {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .pipeline-port {
    background: #08120E !important;
    border: 2px solid #10B981 !important;
}

html[data-theme="dark"] .btn-glass-secondary {
    background: rgba(13, 28, 22, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .btn-glass-secondary:hover {
    background: #10B981 !important;
    border-color: #10B981 !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .apple-val-letter {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* ==========================================================================
   40. LUXURY CUSTOM SELECT & DROPDOWN ENGINE (custom-dropdown.css)
   ========================================================================== */
html[data-theme="dark"] .nafra-select-trigger {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

html[data-theme="dark"] .nafra-select-trigger:hover {
    background: #10241C !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

html[data-theme="dark"] .nafra-select-container.is-open .nafra-select-trigger,
html[data-theme="dark"] .nafra-select-trigger:focus-visible {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.22) !important;
    background: #0D1C16 !important;
}

html[data-theme="dark"] .nafra-select-placeholder {
    color: #64748B !important;
}

html[data-theme="dark"] .nafra-select-chevron {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .nafra-select-container.is-open .nafra-select-chevron {
    color: #34D399 !important;
}

html[data-theme="dark"] .nafra-select-dropdown {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(20px) !important;
}

html[data-theme="dark"] .nafra-select-search {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .nafra-select-search:focus {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

html[data-theme="dark"] .nafra-select-search-icon {
    color: #64748B !important;
}

html[data-theme="dark"] .nafra-select-option {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .nafra-select-option:hover {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .nafra-select-option.is-selected {
    background: rgba(16, 185, 129, 0.25) !important;
    color: #34D399 !important;
    font-weight: 700 !important;
}

html[data-theme="dark"] .nafra-select-no-results {
    color: #64748B !important;
}

html[data-theme="dark"] .phone-smart-input-group {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .phone-flag-btn {
    background: #081410 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .phone-number-input {
    background: transparent !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   41. GLOBAL LANGUAGE SELECTOR & TOPBAR ACTIONS
   ========================================================================== */
html[data-theme="dark"] .btn-navbar-lang {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .lang-panel {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .lang-panel-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .lang-panel-title {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .lang-panel-badge {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34D399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

html[data-theme="dark"] .lang-search-wrap {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .lang-search-input {
    background: transparent !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .lang-reset-btn {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #94A3B8 !important;
}

html[data-theme="dark"] .lang-reset-btn:hover {
    background: #EF4444 !important;
    border-color: #EF4444 !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .lang-tab {
    background: transparent !important;
    color: #94A3B8 !important;
}

html[data-theme="dark"] .lang-tab.active {
    background: #10B981 !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .lang-item {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .lang-item:hover {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .lang-item.active {
    background: rgba(16, 185, 129, 0.25) !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .lang-item-badge {
    background: #081410 !important;
    color: #94A3B8 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   42. CONTAINER CALCULATOR & SUMMARY HUD
   ========================================================================== */
html[data-theme="dark"] .calc-card {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .calc-summary,
html[data-theme="dark"] .calc-stat-box {
    background: #08120E !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .calc-table tr {
    background: transparent !important;
}

html[data-theme="dark"] .calc-table th {
    background: #081410 !important;
    color: #34D399 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .calc-table td {
    background: #0D1C16 !important;
    color: #CBD5E1 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* ==========================================================================
   43. TRADE CONTROL DESK (Admin Portal Dark System)
   ========================================================================== */
html[data-theme="dark"] {
    --admin-sidebar-bg: #050D0A;
    --admin-sidebar-hover: #0D1C16;
    --admin-bg: #050D0A;
    --admin-card: #0D1C16;
    --admin-border: rgba(255, 255, 255, 0.08);
    --admin-primary: #FFFFFF;
    --admin-accent: #F59E0B;
    --admin-text: #F8FAFC;
    --admin-muted: #94A3B8;
}

html[data-theme="dark"] body.admin-body {
    background-color: #050D0A !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .admin-sidebar {
    background: rgba(8, 18, 14, 0.96) !important;
    backdrop-filter: blur(28px) saturate(190%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4) !important;
    color: #F8FAFC !important;
    overscroll-behavior: contain !important;
    overscroll-behavior-y: contain !important;
}

html[data-theme="dark"] .admin-sidebar-top-profile {
    background: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .admin-profile-snippet {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

html[data-theme="dark"] .admin-profile-snippet:hover {
    background: #10241C !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
}

html[data-theme="dark"] .profile-name {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .sidebar-top-btn {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .sidebar-top-btn:hover {
    background: #10B981 !important;
    color: #FFFFFF !important;
    border-color: #10B981 !important;
}

html[data-theme="dark"] .sidebar-top-btn.logout {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #F87171 !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}

html[data-theme="dark"] .sidebar-top-btn.logout:hover {
    background: #DC2626 !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .admin-nav-item {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .admin-nav-item:hover {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #34D399 !important;
}

html[data-theme="dark"] .admin-nav-item.active {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #34D399 !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

html[data-theme="dark"] .nav-icon {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .admin-nav-item.active .nav-icon {
    color: #34D399 !important;
}

html[data-theme="dark"] .admin-topbar {
    background: rgba(8, 18, 14, 0.94) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .admin-page-title {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .admin-card {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="dark"] .admin-card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .admin-card-title {
    color: #FFFFFF !important;
}

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

html[data-theme="dark"] .stat-card-val {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .stat-card-label {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .admin-table th {
    background: #081410 !important;
    color: #34D399 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .admin-table td {
    background: transparent !important;
    color: #CBD5E1 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="dark"] .admin-table tr:hover td {
    background: rgba(16, 185, 129, 0.06) !important;
}

html[data-theme="dark"] .admin-filter-bar {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .admin-form-control,
html[data-theme="dark"] .admin-input,
html[data-theme="dark"] .admin-select,
html[data-theme="dark"] .admin-textarea {
    background: #081410 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .admin-form-control:focus,
html[data-theme="dark"] .admin-input:focus,
html[data-theme="dark"] .admin-select:focus,
html[data-theme="dark"] .admin-textarea:focus {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

html[data-theme="dark"] .admin-pagination a,
html[data-theme="dark"] .admin-pagination span {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .admin-pagination a.active {
    background: #10B981 !important;
    color: #FFFFFF !important;
    border-color: #10B981 !important;
}

/* ==========================================================================
   44. EXPORT GUIDE & DOCUMENTATION SUITE (export_guide.php)
   ========================================================================== */
html[data-theme="dark"] .export-doc-suite-card {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .export-doc-suite-card h3 {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .export-doc-suite-card p {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .export-doc-suite-card h4 {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .doc-icon-bubble {
    background: #081410 !important;
    color: #10B981 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .product-card .hero-pill {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34D399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

/* ==========================================================================
   45. COMMERCIAL TERMS & LEGAL POLICIES (terms.php)
   ========================================================================== */
html[data-theme="dark"] .terms-layout-grid > div,
html[data-theme="dark"] .terms-layout-grid .admin-card {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="dark"] .terms-layout-grid p,
html[data-theme="dark"] .terms-layout-grid li {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .terms-layout-grid h2,
html[data-theme="dark"] .terms-layout-grid h3,
html[data-theme="dark"] .terms-layout-grid h4 {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .terms-layout-grid div[style*="background: #F8FAFC"],
html[data-theme="dark"] .terms-layout-grid div[style*="background:#F8FAFC"],
html[data-theme="dark"] .terms-layout-grid div[style*="background: #f8fafc"] {
    background: #081410 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .terms-layout-grid nav a {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .terms-layout-grid nav a:hover {
    background: #10241C !important;
    color: #34D399 !important;
}

/* ==========================================================================
   46. 404 NOT FOUND & BRAND ERROR SCREENS (404.php)
   ========================================================================== */
html[data-theme="dark"] form[action*="products.php"][style*="background: #FFFFFF"],
html[data-theme="dark"] form[action*="products.php"][style*="background:#FFFFFF"],
html[data-theme="dark"] form[action*="products.php"][style*="background: #ffffff"] {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] form[action*="products.php"] input[type="text"] {
    color: #FFFFFF !important;
}

html[data-theme="dark"] form[action*="products.php"] input[type="text"]::placeholder {
    color: #64748B !important;
}

/* ==========================================================================
   47. FREQUENTLY ASKED QUESTIONS (FAQ) & B2B EXPORT ACCORDION (index.php, quality.php)
   ========================================================================== */
html[data-theme="dark"] #faqSection,
html[data-theme="dark"] .section-light#faqSection {
    background: #06150F !important;
}

html[data-theme="dark"] .b2b-faq-accordion-item {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .b2b-faq-accordion-item:hover,
html[data-theme="dark"] .b2b-faq-accordion-item[open] {
    border-color: rgba(212, 175, 55, 0.35) !important;
    background: #10241C !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .b2b-faq-accordion-item summary {
    color: #FFFFFF !important;
    font-weight: 700 !important;
}

html[data-theme="dark"] .b2b-faq-accordion-item summary span > span:first-child {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #34D399 !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

html[data-theme="dark"] .b2b-faq-accordion-item .faq-chevron-icon {
    color: #F59E0B !important;
}

html[data-theme="dark"] .b2b-faq-accordion-item div {
    color: #CBD5E1 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .b2b-faq-accordion-item p {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] #faqSection .section-desc,
html[data-theme="dark"] #faqSection p {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .geo-entity-summary-card {
    background: #0D1C16 !important;
    border-color: rgba(212, 175, 55, 0.2) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .geo-entity-summary-card strong {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .geo-entity-summary-card p {
    color: #94A3B8 !important;
}

/* ==========================================================================
   48. CONTACT BANNER & CORPORATE HEADQUARTERS (index.php #contactBanner)
   ========================================================================== */
html[data-theme="dark"] #contactBanner,
html[data-theme="dark"] .section-white#contactBanner {
    background: #04120D !important;
}

html[data-theme="dark"] .contact-banner-card {
    background: linear-gradient(135deg, #071912 0%, #0B2219 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .contact-banner-content h3 {
    color: #FFFFFF !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .contact-banner-content p {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .contact-banner-content strong {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .contact-headquarters-box {
    background: rgba(4, 15, 11, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .contact-headquarters-box h4 {
    color: #F59E0B !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .contact-headquarters-box p {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .contact-headquarters-box strong {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .contact-headquarters-box .text-gold-icon {
    color: #D4AF37 !important;
}

/* ==========================================================================
   49. FOOTER CERTIFICATE ACCREDITATION SEALS (includes/footer.php)
   ========================================================================== */
html[data-theme="dark"] .footer-certs-bar img {
    background: #FFFFFF !important;
    border: 1.5px solid rgba(212, 175, 55, 0.45) !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 6px rgba(212, 175, 55, 0.25) !important;
    padding: 3px 6px !important;
    transition: transform 0.25s ease, border-color 0.25s ease !important;
}

html[data-theme="dark"] .footer-certs-bar img:hover {
    transform: translateY(-2px) scale(1.08) !important;
    border-color: #F59E0B !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 0 10px rgba(245, 158, 11, 0.4) !important;
}

/* ==========================================================================
   50. CATEGORY PORTFOLIO CARDS & MEDIA (style.css)
   ========================================================================== */
html[data-theme="dark"] .category-portfolio-card {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .category-portfolio-card:hover {
    background: #11241C !important;
    border-color: rgba(212, 175, 55, 0.4) !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.15) !important;
}

html[data-theme="dark"] .category-card-media {
    background: radial-gradient(circle at 50% 50%, #0B1913 0%, #06100C 100%) !important;
}

html[data-theme="dark"] .category-card-title {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .category-card-desc {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .category-icon-box {
    background: rgba(212, 175, 55, 0.15) !important;
    color: #D4AF37 !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
}

/* ==========================================================================
   51. SECONDARY PAGE COMPONENTS & INLINE FIXES
   ========================================================================== */

/* Seaport & Country Interactive Modals Telemetry (index.php, global_reach.php) */
html[data-theme="dark"] #countryModal .modal-box,
html[data-theme="dark"] #portDetailModal .modal-box {
    background: #0B1A14 !important;
    border: 1.5px solid rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85) !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] #countryModal div[style*="background: #FAF9F6"],
html[data-theme="dark"] #countryModal div[style*="background:#FAF9F6"],
html[data-theme="dark"] #portDetailModal div[style*="background: #FAF9F6"],
html[data-theme="dark"] #portDetailModal div[style*="background:#FAF9F6"] {
    background: #07130F !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] #portDetailModal p[style*="background: #F8FAFC"],
html[data-theme="dark"] #portDetailModal p[style*="background:#F8FAFC"] {
    background: #07130F !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] #countryModal p,
html[data-theme="dark"] #countryModal span,
html[data-theme="dark"] #portDetailModal p,
html[data-theme="dark"] #portDetailModal span {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] #countryModal strong,
html[data-theme="dark"] #portDetailModal strong {
    color: #FFFFFF !important;
}

/* Shipping Partner Items (index.php, global_reach.php) */
html[data-theme="dark"] .shipping-partner-item {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .shipping-partner-item:hover {
    background: #0E2018 !important;
    border-color: rgba(212, 175, 55, 0.35) !important;
}

html[data-theme="dark"] .shipping-partner-name {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .shipping-partner-type,
html[data-theme="dark"] .shipping-partner-code {
    color: #94A3B8 !important;
}

/* Contact Page (contact.php) */
html[data-theme="dark"] .contact-info-card,
html[data-theme="dark"] .contact-form-card {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .contact-info-card h3,
html[data-theme="dark"] .contact-form-card h3 {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .contact-info-card div[style*="background: #EBF8F5"],
html[data-theme="dark"] .contact-info-card div[style*="background:#EBF8F5"] {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34D399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

html[data-theme="dark"] .contact-info-card strong {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .contact-info-card p,
html[data-theme="dark"] .contact-info-card a {
    color: #CBD5E1 !important;
}

/* Departmental Desks Dark Mode */
html[data-theme="dark"] .contact-dept-card {
    background: #0A1B14 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .contact-dept-card:hover {
    background: #0D261C !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}
html[data-theme="dark"] .contact-dept-card.dept-export {
    border-left-color: #F59E0B !important;
}
html[data-theme="dark"] .contact-dept-card.dept-domestic {
    border-left-color: #10B981 !important;
}
html[data-theme="dark"] .contact-dept-card.dept-general {
    border-left-color: #3B82F6 !important;
}
html[data-theme="dark"] .contact-dept-title {
    color: #F8FAFC !important;
}
html[data-theme="dark"] .contact-dept-sub {
    color: #94A3B8 !important;
}
html[data-theme="dark"] .contact-dept-tag {
    color: #64748B !important;
}
html[data-theme="dark"] .badge-export {
    background: rgba(245, 158, 11, 0.16) !important;
    color: #FBBF24 !important;
}
html[data-theme="dark"] .badge-domestic {
    background: rgba(16, 185, 129, 0.16) !important;
    color: #34D399 !important;
}
html[data-theme="dark"] .badge-general {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #60A5FA !important;
}
html[data-theme="dark"] .contact-dept-email {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #34D399 !important;
}
html[data-theme="dark"] .contact-dept-email:hover {
    background: rgba(16, 185, 129, 0.18) !important;
    border-color: #10B981 !important;
    color: #6EE7B7 !important;
}

html[data-theme="dark"] div[style*="border-radius: 20px"][style*="background: #FFFFFF"],
html[data-theme="dark"] div[style*="border-radius: 20px"][style*="background:#FFFFFF"] {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] div[style*="background: #FAF9F6"],
html[data-theme="dark"] div[style*="background:#FAF9F6"] {
    background: #081410 !important;
    border-top-color: rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
}

/* Product Detail Page (product_detail.php) */
html[data-theme="dark"] .product-seo-tools-banner {
    background: #0D1C16 !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .product-seo-tools-banner h4 {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .product-seo-tools-banner p {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .product-seo-tools-banner span {
    color: #D4AF37 !important;
}

html[data-theme="dark"] .spin-thumbnails-dock {
    background: rgba(8, 20, 15, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .spin-thumb-btn {
    background: #0A1712 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .spin-thumb-btn.is-active {
    background: rgba(212, 175, 55, 0.2) !important;
    border-color: #D4AF37 !important;
    color: #D4AF37 !important;
}

html[data-theme="dark"] .spec-matrix-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.02) !important;
}

html[data-theme="dark"] .spec-matrix-label {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .spec-matrix-value {
    color: #FFFFFF !important;
}

/* RFQ Page (rfq.php) */
html[data-theme="dark"] .form-check[style*="background: #F8FAFC"],
html[data-theme="dark"] .form-check[style*="background:#F8FAFC"] {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .form-check[style*="background: #F8FAFC"] span,
html[data-theme="dark"] .form-check[style*="background:#F8FAFC"] span {
    color: #94A3B8 !important;
}

html[data-theme="dark"] div[style*="background: #F8FAFC"][style*="Mundra APSEZ"],
html[data-theme="dark"] div[style*="background:#F8FAFC"][style*="Mundra APSEZ"] {
    background: #081410 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
}

/* Container Calculator (container_calculator.php) */
html[data-theme="dark"] div[style*="background: #FAF9F6"][style*="ISPM-15"],
html[data-theme="dark"] div[style*="background:#FAF9F6"][style*="ISPM-15"] {
    background: #081410 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] div[style*="background: #FAF9F6"][style*="ISPM-15"] label,
html[data-theme="dark"] div[style*="background:#FAF9F6"][style*="ISPM-15"] label {
    color: #E2E8F0 !important;
}

/* Quality Testing Network Banner (quality.php) */
html[data-theme="dark"] .apple-glass-card[style*="background: rgba(255, 255, 255"],
html[data-theme="dark"] .apple-glass-card[style*="background:rgba(255, 255, 255"],
html[data-theme="dark"] .apple-glass-card[style*="background: linear-gradient(135deg, #ECFDF5"],
html[data-theme="dark"] .apple-glass-card[style*="background:linear-gradient(135deg, #ECFDF5"] {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .apple-glass-card p[style*="color: #1E293B"],
html[data-theme="dark"] .apple-glass-card p[style*="color:#1E293B"] {
    color: #F8FAFC !important;
}

/* Export Guide (export_guide.php) */
html[data-theme="dark"] .doc-icon-bubble[style*="background: #EBF8F5"],
html[data-theme="dark"] .doc-icon-bubble[style*="background:#EBF8F5"] {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34D399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

html[data-theme="dark"] .export-doc-suite-card[style*="background: #FFFFFF"],
html[data-theme="dark"] .export-doc-suite-card[style*="background:#FFFFFF"] {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .export-doc-suite-card h3,
html[data-theme="dark"] .export-doc-suite-card h4 {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .export-doc-suite-card p {
    color: #CBD5E1 !important;
}

/* Products Empty State (products.php) */
html[data-theme="dark"] .products-empty-state {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .products-empty-state h3 {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .products-empty-state p {
    color: #CBD5E1 !important;
}

/* Contact Map Card & Strip (contact.php) */
html[data-theme="dark"] .contact-map-card {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .contact-map-strip {
    background: #081410 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .contact-map-strip-label {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .contact-map-strip-link {
    color: #D4AF37 !important;
}

/* RFQ Gateway Ports & Sample Box (rfq.php) */
html[data-theme="dark"] .rfq-gateway-ports-box {
    background: #081410 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .rfq-gateway-ports-box span {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .rfq-sample-box {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .rfq-sample-box span {
    color: #94A3B8 !important;
}

/* Container Calc Pallet Option (container_calculator.php) */
html[data-theme="dark"] .calc-pallet-option {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .calc-pallet-option label {
    color: #E2E8F0 !important;
}

/* Quality Verification Callout (quality.php) */
html[data-theme="dark"] .apple-verification-callout {
    background: #0D1C16 !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

html[data-theme="dark"] .apple-verification-callout-title {
    color: #34D399 !important;
}

html[data-theme="dark"] .apple-verification-callout-desc {
    color: #CBD5E1 !important;
}

/* Export FAQ Container & Items (export_guide.php) */
html[data-theme="dark"] .export-faq-container {
    background: #0D1C16 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .export-faq-container h3 {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .export-faq-container p {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .export-faq-item {
    background: #081410 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .export-faq-item summary {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .export-faq-item p {
    color: #CBD5E1 !important;
}

/* WhatsApp Concierge Card (Dark Mode) */
html[data-theme="dark"] .whatsapp-card {
    background: #0D1C16 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85) !important;
}

html[data-theme="dark"] .whatsapp-card-body {
    background: #0D1C16 !important;
}

html[data-theme="dark"] .whatsapp-card-msg {
    background: #081410 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .whatsapp-card-hotline {
    color: #34D399 !important;
}

/* Nafra Signature Leaf Cursor */
@import url('cursor.css');

/* Ready to Export Spot Table & 2-Row Action Buttons (Dark Mode) */
html[data-theme="dark"] .spot-table-card {
    background: #081410 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="dark"] .spot-table-card-header {
    background: #0D1C16 !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .spot-table-card-header strong {
    color: #F8FAFC !important;
}
html[data-theme="dark"] .spot-table-card-header span {
    color: #94A3B8 !important;
}
html[data-theme="dark"] .spot-table tr {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .spot-lot-title {
    color: #F8FAFC !important;
}
html[data-theme="dark"] .spot-thumb-box {
    background: #0B1E19 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
html[data-theme="dark"] .spot-stock-badge {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #34D399 !important;
}
html[data-theme="dark"] .btn-spot-pause {
    background: rgba(239, 68, 68, 0.16) !important;
    border: 1px solid rgba(239, 68, 68, 0.45) !important;
    color: #F87171 !important;
}
html[data-theme="dark"] .btn-spot-pause:hover {
    background: rgba(239, 68, 68, 0.26) !important;
    border-color: rgba(239, 68, 68, 0.65) !important;
    color: #FCA5A5 !important;
}
html[data-theme="dark"] .btn-spot-live {
    background: rgba(16, 185, 129, 0.16) !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    color: #34D399 !important;
}
html[data-theme="dark"] .btn-spot-live:hover {
    background: rgba(16, 185, 129, 0.26) !important;
    border-color: rgba(16, 185, 129, 0.65) !important;
    color: #6EE7B7 !important;
}
html[data-theme="dark"] .btn-spot-extend {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    color: #34D399 !important;
}
html[data-theme="dark"] .btn-spot-extend:hover {
    background: rgba(16, 185, 129, 0.22) !important;
    border-color: rgba(16, 185, 129, 0.55) !important;
    color: #6EE7B7 !important;
}
html[data-theme="dark"] .btn-spot-edit {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #E2E8F0 !important;
}
html[data-theme="dark"] .btn-spot-edit:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.30) !important;
    color: #FFFFFF !important;
}
html[data-theme="dark"] .btn-spot-sold {
    background: rgba(245, 158, 11, 0.16) !important;
    border: 1px solid rgba(245, 158, 11, 0.45) !important;
    color: #FBBF24 !important;
}
html[data-theme="dark"] .btn-spot-sold:hover {
    background: rgba(245, 158, 11, 0.26) !important;
    border-color: rgba(245, 158, 11, 0.65) !important;
    color: #FDE68A !important;
}
html[data-theme="dark"] .btn-spot-avail {
    background: rgba(16, 185, 129, 0.16) !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    color: #34D399 !important;
}
html[data-theme="dark"] .btn-spot-avail:hover {
    background: rgba(16, 185, 129, 0.26) !important;
    border-color: rgba(16, 185, 129, 0.65) !important;
    color: #6EE7B7 !important;
}
html[data-theme="dark"] .btn-spot-delete {
    background: rgba(239, 68, 68, 0.14) !important;
    border: 1px solid rgba(239, 68, 68, 0.40) !important;
    color: #F87171 !important;
}
html[data-theme="dark"] .btn-spot-delete:hover {
    background: rgba(239, 68, 68, 0.24) !important;
    border-color: rgba(239, 68, 68, 0.60) !important;
    color: #FCA5A5 !important;
}

/* RFQ Dynamic Custom / Unlisted Agro Commodity Box (Dark Mode) */
html[data-theme="dark"] .custom-product-box {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.15) 0%, rgba(217, 119, 6, 0.06) 100%) !important;
    border: 1.5px dashed rgba(245, 158, 11, 0.55) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .custom-product-banner {
    border-bottom: 1px solid rgba(245, 158, 11, 0.25) !important;
}

html[data-theme="dark"] .custom-product-title {
    color: #FBBF24 !important;
}

html[data-theme="dark"] .custom-product-desc {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .nafra-select-option[data-value="custom_unlisted"] {
    color: #FBBF24 !important;
    background: rgba(245, 158, 11, 0.10) !important;
}

html[data-theme="dark"] .nafra-select-option[data-value="custom_unlisted"]:hover,
html[data-theme="dark"] .nafra-select-option[data-value="custom_unlisted"].is-selected {
    background: rgba(245, 158, 11, 0.22) !important;
    color: #FDE68A !important;
}

/* ==========================================================================
   15. BLOG & BLOG DETAIL - LUXURY OBSIDIAN EMERALD SUITE
   ========================================================================== */

/* Main Card Containers (Obsidian Card Surface) */
html[data-theme="dark"] .blog-filter-bar,
html[data-theme="dark"] .blog-featured-card,
html[data-theme="dark"] .blog-grid-card,
html[data-theme="dark"] .blog-detail-article,
html[data-theme="dark"] .blog-video-card,
html[data-theme="dark"] .blog-related-card,
html[data-theme="dark"] .blog-empty-state {
    background: #0C1A14 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45) !important;
}

/* Card Hover Elevation */
html[data-theme="dark"] .blog-grid-card:hover,
html[data-theme="dark"] .blog-related-card:hover {
    border-color: rgba(16, 185, 129, 0.35) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(16, 185, 129, 0.25) !important;
}

/* Filter Bar Pills */
html[data-theme="dark"] .blog-filter-pill.btn-outline {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #CBD5E1 !important;
}
html[data-theme="dark"] .blog-filter-pill.btn-outline:hover {
    background: rgba(16, 185, 129, 0.16) !important;
    border-color: #10B981 !important;
    color: #34D399 !important;
}
html[data-theme="dark"] .blog-filter-pill.btn-emerald {
    background: #059669 !important;
    border-color: #059669 !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 10px rgba(5, 150, 105, 0.45) !important;
}

/* Instant Search Input & Form */
html[data-theme="dark"] .blog-search-input {
    background: #08120E !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #F8FAFC !important;
}
html[data-theme="dark"] .blog-search-input:focus {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25) !important;
}
html[data-theme="dark"] .blog-search-input::placeholder {
    color: #64748B !important;
}
html[data-theme="dark"] .blog-search-icon {
    color: #64748B !important;
}

/* Category & Post Count Badges */
html[data-theme="dark"] .blog-badge-emerald,
html[data-theme="dark"] .blog-card-category {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34D399 !important;
    border: 1px solid rgba(16, 185, 129, 0.28) !important;
}

/* Typography & Links */
html[data-theme="dark"] .blog-featured-title a,
html[data-theme="dark"] .blog-card-title a,
html[data-theme="dark"] .blog-detail-title,
html[data-theme="dark"] .blog-related-title a,
html[data-theme="dark"] .blog-empty-title,
html[data-theme="dark"] .blog-related-heading {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .blog-featured-title a:hover,
html[data-theme="dark"] .blog-card-title a:hover,
html[data-theme="dark"] .blog-related-title a:hover,
html[data-theme="dark"] .blog-related-viewall:hover,
html[data-theme="dark"] .blog-back-link:hover {
    color: #34D399 !important;
}

html[data-theme="dark"] .blog-featured-summary,
html[data-theme="dark"] .blog-card-desc,
html[data-theme="dark"] .blog-empty-desc {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .blog-featured-meta,
html[data-theme="dark"] .blog-card-reading-time,
html[data-theme="dark"] .blog-card-date,
html[data-theme="dark"] .blog-related-date,
html[data-theme="dark"] .blog-detail-meta span,
html[data-theme="dark"] .blog-featured-author {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .blog-card-location {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .blog-card-link,
html[data-theme="dark"] .blog-related-viewall,
html[data-theme="dark"] .blog-back-link {
    color: #10B981 !important;
}

/* Dividers & Footers */
html[data-theme="dark"] .blog-featured-footer,
html[data-theme="dark"] .blog-card-footer,
html[data-theme="dark"] .blog-divider,
html[data-theme="dark"] .blog-share-bar {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Event Details Highlight Box (Replaces Pale Neon Green) */
html[data-theme="dark"] .blog-event-card {
    background: rgba(5, 150, 105, 0.12) !important;
    border: 1.5px solid rgba(16, 185, 129, 0.35) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
}
html[data-theme="dark"] .blog-event-badge {
    color: #34D399 !important;
}
html[data-theme="dark"] .blog-event-date {
    color: #F8FAFC !important;
}
html[data-theme="dark"] .blog-event-location {
    color: #CBD5E1 !important;
}

/* Lead Paragraph */
html[data-theme="dark"] .blog-detail-lead {
    color: #CBD5E1 !important;
    border-left-color: #F59E0B !important;
}

/* Rich Content Body (Articles, Headings, Quotes, Lists, Tables) */
html[data-theme="dark"] .blog-rich-content {
    color: #CBD5E1 !important;
}
html[data-theme="dark"] .blog-rich-content h1,
html[data-theme="dark"] .blog-rich-content h2,
html[data-theme="dark"] .blog-rich-content h3,
html[data-theme="dark"] .blog-rich-content h4,
html[data-theme="dark"] .blog-rich-content h5,
html[data-theme="dark"] .blog-rich-content h6 {
    color: #F8FAFC !important;
}
html[data-theme="dark"] .blog-rich-content p {
    color: #CBD5E1 !important;
}
html[data-theme="dark"] .blog-rich-content strong,
html[data-theme="dark"] .blog-rich-content b {
    color: #FFFFFF !important;
}
html[data-theme="dark"] .blog-rich-content ul,
html[data-theme="dark"] .blog-rich-content ol,
html[data-theme="dark"] .blog-rich-content li {
    color: #CBD5E1 !important;
}
html[data-theme="dark"] .blog-rich-content blockquote {
    background: rgba(16, 185, 129, 0.08) !important;
    border-left: 4px solid #10B981 !important;
    color: #E2E8F0 !important;
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
}
html[data-theme="dark"] .blog-rich-content a {
    color: #34D399 !important;
    text-decoration: underline !important;
}
html[data-theme="dark"] .blog-rich-content a:hover {
    color: #6EE7B7 !important;
}
html[data-theme="dark"] .blog-rich-content table {
    border-collapse: collapse;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="dark"] .blog-rich-content th {
    background: #08120E !important;
    color: #F8FAFC !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 0.75rem 1rem;
}
html[data-theme="dark"] .blog-rich-content td {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #CBD5E1 !important;
    padding: 0.75rem 1rem;
}
html[data-theme="dark"] .blog-rich-content hr {
    border: 0 !important;
    height: 1px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    margin: 2rem 0 !important;
}

/* Photo Gallery & Video Headers */
html[data-theme="dark"] .blog-gallery-header,
html[data-theme="dark"] .blog-videos-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .blog-gallery-title,
html[data-theme="dark"] .blog-videos-title {
    color: #F8FAFC !important;
}
html[data-theme="dark"] .blog-gallery-subtitle,
html[data-theme="dark"] .blog-videos-subtitle {
    color: #94A3B8 !important;
}
html[data-theme="dark"] .blog-gallery-count-pill,
html[data-theme="dark"] .blog-gallery-badge {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34D399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

/* Video Player Footer */
html[data-theme="dark"] .blog-video-footer {
    background: #08120E !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .blog-video-title {
    color: #F8FAFC !important;
}
html[data-theme="dark"] .blog-video-meta {
    color: #94A3B8 !important;
}

/* Social Share Label */
html[data-theme="dark"] .blog-share-label {
    color: #94A3B8 !important;
}

/* SEO & GEO Preserved Semantic Content (Dark Mode) */
html[data-theme="dark"] #faqSection.visually-hidden,
html[data-theme="dark"] #faqSection.seo-geo-preserved,
html[data-theme="dark"] .seo-geo-preserved {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    background: transparent !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 16. B2B Sourcing FAQ Page (Dark Mode) */
html[data-theme="dark"] #faqSearchInput {
    background: #08120E !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    color: #F8FAFC !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}
html[data-theme="dark"] #faqSearchInput:focus {
    border-color: rgba(16, 185, 129, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}
html[data-theme="dark"] #faqSearchInput::placeholder {
    color: #64748B !important;
}

html[data-theme="dark"] .b2b-faq-accordion-item {
    background: #0C1A14 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}
html[data-theme="dark"] .b2b-faq-accordion-item[open] {
    border-color: rgba(16, 185, 129, 0.3) !important;
}
html[data-theme="dark"] .b2b-faq-summary {
    color: #F8FAFC !important;
}
html[data-theme="dark"] .b2b-faq-num {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34D399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}
html[data-theme="dark"] .b2b-faq-answer {
    color: #CBD5E1 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}
html[data-theme="dark"] .b2b-faq-answer p {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] #noFaqMatch {
    background: #0C1A14 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] #noFaqMatch h4 {
    color: #F8FAFC !important;
}
html[data-theme="dark"] #noFaqMatch p {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .geo-entity-summary-card {
    background: #0C1A14 !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}
html[data-theme="dark"] .geo-entity-summary-card strong {
    color: #F8FAFC !important;
}
html[data-theme="dark"] .geo-entity-summary-card p {
    color: #CBD5E1 !important;
}

/* 17. Related Products Header (Dark Mode) */
html[data-theme="dark"] .product-related-header {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    margin-bottom: 2.25rem !important;
}
html[data-theme="dark"] .product-related-title {
    color: #F8FAFC !important;
}
html[data-theme="dark"] .product-related-badge {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34D399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}
html[data-theme="dark"] .product-related-cat-name {
    color: #F8FAFC !important;
}
html[data-theme="dark"] .product-related-cat-btn {
    background: #0C1A14 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
    color: #F8FAFC !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}
html[data-theme="dark"] .product-related-cat-btn:hover {
    background: rgba(16, 185, 129, 0.18) !important;
    border-color: #34D399 !important;
    color: #34D399 !important;
    transform: translateX(3px) !important;
}

/* 18. Terms & Conditions Acceptance Box (Dark Mode) */
html[data-theme="dark"] .terms-conditions-box,
html[data-theme="dark"] .rfq-terms-wrap,
html[data-theme="dark"] .form-group[style*="background: #F8FAFC"],
html[data-theme="dark"] .form-group[style*="background:#F8FAFC"] {
    background: #081410 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}
html[data-theme="dark"] .terms-conditions-box:hover,
html[data-theme="dark"] .rfq-terms-wrap:hover {
    background: #0A1B14 !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
}
html[data-theme="dark"] .terms-label,
html[data-theme="dark"] .terms-conditions-box label,
html[data-theme="dark"] .rfq-terms-wrap label {
    color: #CBD5E1 !important;
}
html[data-theme="dark"] .terms-text strong,
html[data-theme="dark"] .terms-conditions-box strong,
html[data-theme="dark"] .rfq-terms-wrap strong {
    color: #F8FAFC !important;
}
html[data-theme="dark"] .terms-text a,
html[data-theme="dark"] .terms-conditions-box a,
html[data-theme="dark"] .rfq-terms-wrap a {
    color: #34D399 !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}
html[data-theme="dark"] .terms-text a:hover,
html[data-theme="dark"] .terms-conditions-box a:hover,
html[data-theme="dark"] .rfq-terms-wrap a:hover {
    color: #6EE7B7 !important;
}
html[data-theme="dark"] .terms-checkbox,
html[data-theme="dark"] input[name="accept_terms"] {
    accent-color: #10B981 !important;
}

/* 19. Global Admin Instant Search Components (Dark Mode) */
html[data-theme="dark"] .admin-search-wrap .admin-search-icon {
    color: #64748B !important;
}

html[data-theme="dark"] .admin-search-wrap:focus-within .admin-search-icon {
    color: #34D399 !important;
}

html[data-theme="dark"] .admin-search-input {
    background: #0F172A !important;
    border-color: #334155 !important;
    color: #F1F5F9 !important;
}

html[data-theme="dark"] .admin-search-input::placeholder {
    color: #64748B !important;
}

html[data-theme="dark"] .admin-search-input:focus {
    border-color: #34D399 !important;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15) !important;
}

html[data-theme="dark"] .admin-search-clear-btn {
    color: #64748B !important;
}

html[data-theme="dark"] .admin-search-clear-btn:hover {
    color: #F87171 !important;
}

html[data-theme="dark"] .admin-search-badge {
    background: rgba(5, 150, 105, 0.2) !important;
    color: #6EE7B7 !important;
    border-color: rgba(52, 211, 153, 0.3) !important;
}

/* 20. Public Blog Search Bar (Dark Mode) */
html[data-theme="dark"] .blog-search-input {
    background: #0F172A !important;
    border-color: #334155 !important;
    color: #F1F5F9 !important;
}

html[data-theme="dark"] .blog-search-input::placeholder {
    color: #64748B !important;
}

html[data-theme="dark"] .blog-search-input:focus {
    border-color: #34D399 !important;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15) !important;
}

html[data-theme="dark"] #publicBlogSearchClear {
    color: #64748B !important;
}

html[data-theme="dark"] #publicBlogSearchClear:hover {
    color: #F87171 !important;
}

/* ==========================================================================
   21. PRODUCT FORMS, COMMERCIAL VARIANTS & SPECIFICATIONS (Dark Mode)
   ========================================================================== */
html[data-theme="dark"] .variants-manager-card {
    background: #0D1C16 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .variant-card {
    background: #13241C !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .variant-card:hover {
    border-color: rgba(52, 211, 153, 0.3) !important;
}

html[data-theme="dark"] .variant-card-header {
    background: #182C23 !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .variant-presets-bar {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .variant-presets-title {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .quick-preset-chip {
    background: #0F2018 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #E2E8F0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="dark"] .quick-preset-chip:hover {
    background: #059669 !important;
    border-color: #10B981 !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35) !important;
}

html[data-theme="dark"] .variant-img-preview-box {
    background: #08120E !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .variant-title-box {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .variant-title-box label {
    color: #E2E8F0 !important;
}

html[data-theme="dark"] .variant-auto-title-btn {
    color: #6EE7B7 !important;
    border-color: rgba(110, 231, 183, 0.3) !important;
    background: rgba(5, 150, 105, 0.2) !important;
}

html[data-theme="dark"] .variant-specs-box {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .variant-specs-box label {
    color: #F1F5F9 !important;
}

html[data-theme="dark"] .variant-add-spec-btn {
    background: rgba(5, 150, 105, 0.15) !important;
    border-color: rgba(52, 211, 153, 0.3) !important;
    color: #6EE7B7 !important;
}

html[data-theme="dark"] .variant-status-label {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .variant-default-label {
    color: #FBBF24 !important;
}

html[data-theme="dark"] .badge-whole { background: rgba(21, 128, 61, 0.25) !important; color: #86EFAC !important; border-color: rgba(134, 239, 172, 0.3) !important; }
html[data-theme="dark"] .badge-ground { background: rgba(180, 83, 9, 0.25) !important; color: #FDE68A !important; border-color: rgba(253, 230, 138, 0.3) !important; }
html[data-theme="dark"] .badge-split { background: rgba(5, 150, 105, 0.25) !important; color: #6EE7B7 !important; border-color: rgba(110, 231, 183, 0.3) !important; }
html[data-theme="dark"] .badge-slice { background: rgba(217, 119, 6, 0.25) !important; color: #FCD34D !important; border-color: rgba(252, 211, 77, 0.3) !important; }
html[data-theme="dark"] .badge-dehydrated { background: rgba(234, 88, 12, 0.25) !important; color: #FDBA74 !important; border-color: rgba(253, 186, 116, 0.3) !important; }
html[data-theme="dark"] .badge-flakes { background: rgba(192, 38, 211, 0.25) !important; color: #F0ABFC !important; border-color: rgba(240, 171, 252, 0.3) !important; }
html[data-theme="dark"] .badge-crushed { background: rgba(220, 38, 38, 0.25) !important; color: #FCA5A5 !important; border-color: rgba(252, 165, 165, 0.3) !important; }
html[data-theme="dark"] .badge-hulled { background: rgba(13, 148, 136, 0.25) !important; color: #5EEAD4 !important; border-color: rgba(94, 234, 212, 0.3) !important; }
html[data-theme="dark"] .badge-granules { background: rgba(124, 58, 237, 0.25) !important; color: #DDD6FE !important; border-color: rgba(221, 214, 254, 0.3) !important; }
html[data-theme="dark"] .badge-custom { background: rgba(67, 56, 202, 0.25) !important; color: #C7D2FE !important; border-color: rgba(199, 210, 254, 0.3) !important; }

html[data-theme="dark"] .btn-remove-attr,
html[data-theme="dark"] .btn-remove-photo-pill {
    background: rgba(220, 38, 38, 0.18) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #FCA5A5 !important;
}
html[data-theme="dark"] .btn-remove-attr:hover,
html[data-theme="dark"] .btn-remove-photo-pill:hover {
    background: #DC2626 !important;
    border-color: #DC2626 !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .btn-remove-variant {
    background: transparent !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
    color: #F87171 !important;
}
html[data-theme="dark"] .btn-remove-variant:hover {
    background: #DC2626 !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .admin-featured-status-row {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   SECTION 23: Spot Stock (Ready to Export), Ad Popups & Blog Editor Dark Mode
   ========================================================================== */

/* --- Ready to Export (Spot Stock) --- */
html[data-theme="dark"] .stat-pill.is-live,
body.dark-mode .stat-pill.is-live {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #6EE7B7 !important;
}
html[data-theme="dark"] .stat-pill.is-scheduled,
body.dark-mode .stat-pill.is-scheduled {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    color: #93C5FD !important;
}
html[data-theme="dark"] .stat-pill.is-inactive,
body.dark-mode .stat-pill.is-inactive {
    background: rgba(148, 163, 184, 0.12) !important;
    border-color: rgba(148, 163, 184, 0.25) !important;
    color: #CBD5E1 !important;
}
html[data-theme="dark"] .stat-pill.is-soldout,
body.dark-mode .stat-pill.is-soldout {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #FCA5A5 !important;
}

html[data-theme="dark"] .spot-validity-pill.is-live,
body.dark-mode .spot-validity-pill.is-live {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #6EE7B7 !important;
}
html[data-theme="dark"] .spot-validity-pill.is-expired,
body.dark-mode .spot-validity-pill.is-expired {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #FCA5A5 !important;
}
html[data-theme="dark"] .spot-validity-pill.is-scheduled,
body.dark-mode .spot-validity-pill.is-scheduled {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    color: #93C5FD !important;
}

html[data-theme="dark"] .spot-photo-choice-tabs,
body.dark-mode .spot-photo-choice-tabs {
    background: #08130e !important;
    border-color: #1a382b !important;
}
html[data-theme="dark"] .spot-photo-choice-btn,
body.dark-mode .spot-photo-choice-btn {
    color: #94A3B8 !important;
}
html[data-theme="dark"] .spot-photo-choice-btn.is-active,
body.dark-mode .spot-photo-choice-btn.is-active {
    background: #13241c !important;
    color: #34D399 !important;
    border: 1px solid #234e3b !important;
}

html[data-theme="dark"] .spot-photo-preview-box,
body.dark-mode .spot-photo-preview-box {
    background: #08130e !important;
    border-color: #1a382b !important;
}

html[data-theme="dark"] .spot-lifespan-box,
body.dark-mode .spot-lifespan-box {
    background: #08130e !important;
    border-color: #1a382b !important;
}
html[data-theme="dark"] .spot-lifespan-title,
body.dark-mode .spot-lifespan-title {
    color: #34D399 !important;
}

/* --- Ad Popups Modal & Cards --- */
html[data-theme="dark"] .popup-modal-card,
body.dark-mode .popup-modal-card {
    background: #0d1c16 !important;
    border: 1px solid #1a382b !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65) !important;
}
html[data-theme="dark"] .popup-modal-header,
body.dark-mode .popup-modal-header {
    border-bottom: 1px solid #1a382b !important;
}
html[data-theme="dark"] .popup-modal-title,
body.dark-mode .popup-modal-title {
    color: #F8FAFC !important;
}
html[data-theme="dark"] .popup-modal-close-btn,
body.dark-mode .popup-modal-close-btn {
    color: #94A3B8 !important;
}
html[data-theme="dark"] .popup-modal-close-btn:hover,
body.dark-mode .popup-modal-close-btn:hover {
    color: #F8FAFC !important;
}
html[data-theme="dark"] .mode-card-item,
body.dark-mode .mode-card-item {
    background: #08130e !important;
    border-color: #1a382b !important;
}
html[data-theme="dark"] .mode-card-item.is-active,
body.dark-mode .mode-card-item.is-active {
    background: rgba(5, 150, 105, 0.15) !important;
    border-color: #10B981 !important;
    box-shadow: 0 0 0 1px #10B981 !important;
}
html[data-theme="dark"] .mode-card-title,
body.dark-mode .mode-card-title {
    color: #F8FAFC !important;
}
html[data-theme="dark"] .mode-card-desc,
body.dark-mode .mode-card-desc {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .popup-pill-label,
body.dark-mode .popup-pill-label {
    background: #08130e !important;
    border-color: #1a382b !important;
    color: #CBD5E1 !important;
}
html[data-theme="dark"] .popup-pill-label:has(input:checked),
body.dark-mode .popup-pill-label:has(input:checked) {
    background: rgba(5, 150, 105, 0.2) !important;
    border-color: #10B981 !important;
    color: #6EE7B7 !important;
}

html[data-theme="dark"] .media-notice-banner,
body.dark-mode .media-notice-banner {
    background: rgba(5, 150, 105, 0.12) !important;
    border-color: #1a382b !important;
    color: #6EE7B7 !important;
}

/* --- Blog Editor WYSIWYG & Gallery --- */
html[data-theme="dark"] .wysiwyg-toolbar,
body.dark-mode .wysiwyg-toolbar {
    background: #0b1712 !important;
    border-color: #1a382b !important;
}
html[data-theme="dark"] .wysiwyg-btn,
body.dark-mode .wysiwyg-btn {
    background: #13241c !important;
    border-color: #234e3b !important;
    color: #E2E8F0 !important;
}
html[data-theme="dark"] .wysiwyg-btn:hover,
body.dark-mode .wysiwyg-btn:hover {
    background: #1a382b !important;
    border-color: #10B981 !important;
    color: #6EE7B7 !important;
}
html[data-theme="dark"] .wysiwyg-textarea,
body.dark-mode .wysiwyg-textarea {
    background: #08130e !important;
    border-color: #1a382b !important;
    color: #F1F5F9 !important;
}
html[data-theme="dark"] .gallery-layout-card,
body.dark-mode .gallery-layout-card {
    background: #0b1712 !important;
    border-color: #1a382b !important;
}
html[data-theme="dark"] .gallery-layout-card.active-layout,
body.dark-mode .gallery-layout-card.active-layout {
    background: rgba(5, 150, 105, 0.15) !important;
    border-color: #10B981 !important;
    box-shadow: 0 0 0 1px #10B981, 0 4px 14px rgba(16, 185, 129, 0.15) !important;
}
html[data-theme="dark"] .gallery-upload-dropzone,
body.dark-mode .gallery-upload-dropzone {
    background: #08130e !important;
    border-color: #10B981 !important;
}
html[data-theme="dark"] .gallery-upload-dropzone:hover,
body.dark-mode .gallery-upload-dropzone:hover {
    background: rgba(16, 185, 129, 0.08) !important;
}

/* ==========================================================================
   SECTION 24: Admin Profile & Security Dark Mode
   ========================================================================== */
html[data-theme="dark"] .profile-verify-box,
body.dark-mode .profile-verify-box,
html.dark .profile-verify-box {
    background: #0d1c16 !important;
    border: 1px solid #234e3b !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .profile-verify-label,
body.dark-mode .profile-verify-label,
html.dark .profile-verify-label {
    color: #FBBF24 !important;
}

html[data-theme="dark"] .profile-verify-hint,
body.dark-mode .profile-verify-hint,
html.dark .profile-verify-hint {
    color: #FCD34D !important;
}

html[data-theme="dark"] .profile-verify-box .form-control,
body.dark-mode .profile-verify-box .form-control,
html.dark .profile-verify-box .form-control {
    background: #08130e !important;
    border: 1px solid #1a382b !important;
    color: #F8FAFC !important;
}

html[data-theme="dark"] .profile-verify-box .form-control:focus,
body.dark-mode .profile-verify-box .form-control:focus,
html.dark .profile-verify-box .form-control:focus {
    border-color: #F59E0B !important;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25) !important;
}

html[data-theme="dark"] .profile-avatar-brand,
body.dark-mode .profile-avatar-brand,
html.dark .profile-avatar-brand {
    background: #0b1712 !important;
    border-color: #234e3b !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .identity-name,
body.dark-mode .identity-name,
html.dark .identity-name {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .identity-role-tag,
body.dark-mode .identity-role-tag,
html.dark .identity-role-tag {
    color: #FBBF24 !important;
}

html[data-theme="dark"] .identity-details-box,
body.dark-mode .identity-details-box,
html.dark .identity-details-box {
    background: #08130e !important;
    border-color: #1a382b !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .identity-detail-label,
body.dark-mode .identity-detail-label,
html.dark .identity-detail-label {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .identity-detail-val,
body.dark-mode .identity-detail-val,
html.dark .identity-detail-val {
    color: #F1F5F9 !important;
}

html[data-theme="dark"] .identity-code,
body.dark-mode .identity-code,
html.dark .identity-code {
    color: #6EE7B7 !important;
}

html[data-theme="dark"] .profile-section-title,
body.dark-mode .profile-section-title,
html.dark .profile-section-title {
    color: #6EE7B7 !important;
    border-bottom-color: #1a382b !important;
}

html[data-theme="dark"] .profile-alert.is-success,
body.dark-mode .profile-alert.is-success,
html.dark .profile-alert.is-success {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #6EE7B7 !important;
}

html[data-theme="dark"] .profile-alert.is-error,
body.dark-mode .profile-alert.is-error,
html.dark .profile-alert.is-error {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #FCA5A5 !important;
}

html[data-theme="dark"] .channel-sync-badge,
body.dark-mode .channel-sync-badge,
html.dark .channel-sync-badge {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #6EE7B7 !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
}

html[data-theme="dark"] .channel-highlight-card,
body.dark-mode .channel-highlight-card,
html.dark .channel-highlight-card {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: #1a382b !important;
}

html[data-theme="dark"] .channel-highlight-title,
body.dark-mode .channel-highlight-title,
html.dark .channel-highlight-title {
    color: #6EE7B7 !important;
}

html[data-theme="dark"] .channel-highlight-sub,
body.dark-mode .channel-highlight-sub,
html.dark .channel-highlight-sub {
    color: #A7F3D0 !important;
}

html[data-theme="dark"] .form-field-hint,
body.dark-mode .form-field-hint,
html.dark .form-field-hint {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .brand-section-label,
body.dark-mode .brand-section-label,
html.dark .brand-section-label {
    color: #94A3B8 !important;
}

html[data-theme="dark"] .logo-preview-box.is-light,
body.dark-mode .logo-preview-box.is-light,
html.dark .logo-preview-box.is-light {
    background: #F8FAFC !important;
    border-color: #334155 !important;
}

html[data-theme="dark"] .logo-preview-title,
body.dark-mode .logo-preview-title,
html.dark .logo-preview-title {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .whatsapp-instruction-card,
body.dark-mode .whatsapp-instruction-card,
html.dark .whatsapp-instruction-card {
    background: #08130e !important;
    border-color: #1a382b !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .whatsapp-instruction-heading,
body.dark-mode .whatsapp-instruction-heading,
html.dark .whatsapp-instruction-heading {
    color: #F8FAFC !important;
}

html[data-theme="dark"] .whatsapp-instruction-card ol li strong,
body.dark-mode .whatsapp-instruction-card ol li strong,
html.dark .whatsapp-instruction-card ol li strong {
    color: #6EE7B7 !important;
}

html[data-theme="dark"] .whatsapp-instruction-footer,
body.dark-mode .whatsapp-instruction-footer,
html.dark .whatsapp-instruction-footer {
    border-top-color: #1a382b !important;
}

html[data-theme="dark"] .btn-download-logo,
body.dark-mode .btn-download-logo,
html.dark .btn-download-logo {
    background: #13241c !important;
    border: 1px solid #234e3b !important;
    color: #6EE7B7 !important;
}

html[data-theme="dark"] .device-status-banner.is-verified,
body.dark-mode .device-status-banner.is-verified,
html.dark .device-status-banner.is-verified {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
}

html[data-theme="dark"] .device-status-banner.is-verified .device-status-title,
body.dark-mode .device-status-banner.is-verified .device-status-title,
html.dark .device-status-banner.is-verified .device-status-title {
    color: #6EE7B7 !important;
}

html[data-theme="dark"] .device-status-banner.is-verified .device-status-desc,
body.dark-mode .device-status-banner.is-verified .device-status-desc,
html.dark .device-status-banner.is-verified .device-status-desc {
    color: #A7F3D0 !important;
}

html[data-theme="dark"] .device-status-banner.is-locked,
body.dark-mode .device-status-banner.is-locked,
html.dark .device-status-banner.is-locked {
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
}

html[data-theme="dark"] .device-status-banner.is-locked .device-status-title,
body.dark-mode .device-status-banner.is-locked .device-status-title,
html.dark .device-status-banner.is-locked .device-status-title {
    color: #FBBF24 !important;
}

html[data-theme="dark"] .device-status-banner.is-locked .device-status-desc,
body.dark-mode .device-status-banner.is-locked .device-status-desc,
html.dark .device-status-banner.is-locked .device-status-desc {
    color: #FDE68A !important;
}

html[data-theme="dark"] .device-status-link,
body.dark-mode .device-status-link,
html.dark .device-status-link {
    color: #FBBF24 !important;
}

html[data-theme="dark"] .badge-device-req,
body.dark-mode .badge-device-req,
html.dark .badge-device-req {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #FCA5A5 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

html[data-theme="dark"] .form-control-locked,
body.dark-mode .form-control-locked,
html.dark .form-control-locked {
    background: #08130e !important;
    color: #94A3B8 !important;
    border-color: #1a382b !important;
}

html[data-theme="dark"] .input-locked-badge,
body.dark-mode .input-locked-badge,
html.dark .input-locked-badge {
    background: #13241c !important;
    color: #CBD5E1 !important;
    border: 1px solid #234e3b !important;
}

html[data-theme="dark"] .password-locked-box,
body.dark-mode .password-locked-box,
html.dark .password-locked-box {
    background: #08130e !important;
    border-color: #1a382b !important;
    color: #94A3B8 !important;
}

/* ==========================================================================
   SECTION 25: AI Cutout Progress Modal & Stepper Pipeline Dark Mode
   ========================================================================== */
html[data-theme="dark"] .upload-progress-card,
body.dark-mode .upload-progress-card,
[data-theme="dark"] .upload-progress-card {
    background: #0D1C16 !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    color: #F8FAFC !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85) !important;
}
html[data-theme="dark"] .upload-progress-brand-icon,
body.dark-mode .upload-progress-brand-icon,
[data-theme="dark"] .upload-progress-brand-icon {
    background: rgba(5, 150, 105, 0.18) !important;
    border-color: rgba(52, 211, 153, 0.35) !important;
}
html[data-theme="dark"] .upload-progress-title,
body.dark-mode .upload-progress-title,
[data-theme="dark"] .upload-progress-title {
    color: #F8FAFC !important;
}
html[data-theme="dark"] .upload-progress-sub,
body.dark-mode .upload-progress-sub,
[data-theme="dark"] .upload-progress-sub {
    color: #94A3B8 !important;
}
html[data-theme="dark"] .upload-progress-track,
body.dark-mode .upload-progress-track,
[data-theme="dark"] .upload-progress-track {
    background: #08130e !important;
    border-color: #1a382b !important;
}
html[data-theme="dark"] .upload-pct-label,
body.dark-mode .upload-pct-label,
[data-theme="dark"] .upload-pct-label {
    color: #34D399 !important;
}
html[data-theme="dark"] .upload-bytes-label,
body.dark-mode .upload-bytes-label,
[data-theme="dark"] .upload-bytes-label {
    color: #94A3B8 !important;
}

/* Stepper Dark Mode */
html[data-theme="dark"] .upload-step-dot,
body.dark-mode .upload-step-dot,
[data-theme="dark"] .upload-step-dot {
    background: #08130e !important;
    border-color: #1a382b !important;
    color: #64748B !important;
}
html[data-theme="dark"] .upload-step-name,
body.dark-mode .upload-step-name,
[data-theme="dark"] .upload-step-name {
    color: #64748B !important;
}
html[data-theme="dark"] .upload-step-connector,
body.dark-mode .upload-step-connector,
[data-theme="dark"] .upload-step-connector {
    background: #1a382b !important;
}
html[data-theme="dark"] .upload-step-item.is-active .upload-step-dot,
body.dark-mode .upload-step-item.is-active .upload-step-dot,
[data-theme="dark"] .upload-step-item.is-active .upload-step-dot {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: #F59E0B !important;
    color: #FBBF24 !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25) !important;
}
html[data-theme="dark"] .upload-step-item.is-active .upload-step-name,
body.dark-mode .upload-step-item.is-active .upload-step-name,
[data-theme="dark"] .upload-step-item.is-active .upload-step-name {
    color: #FBBF24 !important;
}
html[data-theme="dark"] .upload-step-item.is-completed .upload-step-dot,
body.dark-mode .upload-step-item.is-completed .upload-step-dot,
[data-theme="dark"] .upload-step-item.is-completed .upload-step-dot {
    background: #059669 !important;
    border-color: #10B981 !important;
    color: #FFFFFF !important;
}
html[data-theme="dark"] .upload-step-item.is-completed .upload-step-name,
body.dark-mode .upload-step-item.is-completed .upload-step-name,
[data-theme="dark"] .upload-step-item.is-completed .upload-step-name {
    color: #34D399 !important;
}
html[data-theme="dark"] .upload-step-connector.is-completed,
body.dark-mode .upload-step-connector.is-completed,
[data-theme="dark"] .upload-step-connector.is-completed {
    background: #10B981 !important;
}

html[data-theme="dark"] .upload-stage-pill,
body.dark-mode .upload-stage-pill,
[data-theme="dark"] .upload-stage-pill {
    background: #08130e !important;
    border-color: #1a382b !important;
    color: #E2E8F0 !important;
}
html[data-theme="dark"] .upload-stage-pill.is-ai,
body.dark-mode .upload-stage-pill.is-ai,
[data-theme="dark"] .upload-stage-pill.is-ai {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    color: #FCD34D !important;
}
html[data-theme="dark"] .upload-stage-pill.is-success,
body.dark-mode .upload-stage-pill.is-success,
[data-theme="dark"] .upload-stage-pill.is-success {
    background: rgba(5, 150, 105, 0.22) !important;
    border-color: rgba(52, 211, 153, 0.35) !important;
    color: #6EE7B7 !important;
}
html[data-theme="dark"] .upload-stage-pill.is-error,
body.dark-mode .upload-stage-pill.is-error,
[data-theme="dark"] .upload-stage-pill.is-error {
    background: rgba(220, 38, 38, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
    color: #FCA5A5 !important;
}
html[data-theme="dark"] .upload-ai-notice,
body.dark-mode .upload-ai-notice,
[data-theme="dark"] .upload-ai-notice {
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.28) !important;
    color: #FDE68A !important;
}
html[data-theme="dark"] .upload-error-box,
body.dark-mode .upload-error-box,
[data-theme="dark"] .upload-error-box {
    background: rgba(220, 38, 38, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}
html[data-theme="dark"] #uploadErrorText,
body.dark-mode #uploadErrorText,
[data-theme="dark"] #uploadErrorText {
    color: #FCA5A5 !important;
}



