html[data-theme="dark"] {
    --bg: #0a0b0d;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --card: rgba(255, 255, 255, .03);
    --card-b: rgba(255, 255, 255, .1);
}

html[data-theme="dark"] body {
    color: #fff;
    background: #0a0b0d;
}

html[data-theme="dark"] .theme-toggle {
    background: rgba(15, 18, 27, .88);
    border-color: rgba(255, 255, 255, .14);
    color: #fff;
}

html[data-theme="dark"] .partner-card,
html[data-theme="dark"] .promo,
html[data-theme="dark"] .contact-card {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .1);
}

html[data-theme="dark"] .section-subtitle,
html[data-theme="dark"] .partners-header p,
html[data-theme="dark"] .partner-card p,
html[data-theme="dark"] .promo p,
html[data-theme="dark"] .contact-info-list .muted,
html[data-theme="dark"] .footer-links a {
    color: #9ca3af;
}

html[data-theme="dark"] .contact-info-list,
html[data-theme="dark"] .contact-info-list a {
    color: #fff;
}

@media (max-width: 1024px) {
    html[data-theme="dark"] .nav-links {
        background: rgba(23, 25, 32, .96);
        border-color: rgba(255, 255, 255, .12);
    }
}

/* Shared dark navigation and controls */
html[data-theme="dark"] .nav-links a:hover,
html[data-theme="dark"] .nav-links a.active,
html[data-theme="dark"] .nav-links a[aria-current="page"] {
    color: #fff !important;
    background: rgba(255, 255, 255, .1);
    text-decoration: none;
}

html[data-theme="dark"] .dropdown-menu {
    background: rgba(23, 25, 32, .96) !important;
    border-color: rgba(255, 255, 255, .12) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .34) !important;
}

html[data-theme="dark"] .dropdown-menu a {
    color: #d1d5db !important;
}

html[data-theme="dark"] .dropdown-menu a:hover,
html[data-theme="dark"] .dropdown-menu a[aria-current="page"] {
    color: #fff !important;
    background: rgba(255, 255, 255, .08) !important;
}

html[data-theme="dark"] .footer-links a:hover {
    color: #ff6b6b !important;
    text-decoration: none;
}

@media (max-width: 1024px) {
    html[data-theme="dark"] .nav-toggle {
        background: linear-gradient(180deg, rgba(31, 36, 48, .98), rgba(16, 19, 28, .98));
        border-color: rgba(255, 255, 255, .18);
        box-shadow: 0 10px 24px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .06);
    }

    html[data-theme="dark"] .nav-toggle .bar {
        background: #e5e7eb;
    }

    html[data-theme="dark"] .nav-links {
        background: linear-gradient(180deg, rgba(28, 31, 41, .99), rgba(17, 20, 29, .99)) !important;
        border-color: rgba(255, 255, 255, .12) !important;
        box-shadow: 0 24px 60px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .05) !important;
    }

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

    html[data-theme="dark"] .nav-links a:hover,
    html[data-theme="dark"] .nav-links a.active,
    html[data-theme="dark"] .nav-links a[aria-current="page"] {
        color: #fff !important;
        background: rgba(255, 107, 107, .12) !important;
    }

    html[data-theme="dark"] .nav-links .dropdown.open > .dropdown-menu {
        background: rgba(255, 255, 255, .035) !important;
        border-color: rgba(255, 255, 255, .08) !important;
    }
}
