/* Dark mode variables (keep your existing ones) */
:root {
    --bg: #ffffff;
    --text: #0f172a;
    --card-bg: #f8fafc;
    --border: #eef2ff;
    --header-bg: rgba(255,255,255,0.9);
    --highlight-bg: #eef2ff;
    --highlight-text: #0f172a;
    --badge-bg: #e2e8f0;
    --badge-text: #0f172a;
}
body.dark {
    --bg: #0f172a;
    --text: #f1f5f9;
    --card-bg: #1e293b;
    --border: #334155;
    --header-bg: rgba(15,23,42,0.9);
    --highlight-bg: #1e293b;
    --highlight-text: #e2e8f0;
    --badge-bg: #334155;
    --badge-text: #f1f5f9;
}
body {
    background: var(--bg);
    color: var(--text);
    transition: background 0.3s, color 0.2s;
    width: 100%;
    overflow-x: hidden;
    margin: 0;
}
/* Header layout */
header {
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.logo-img {
    height: 40px;
    width: auto;
}
/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text);
    padding: 0.5rem;
    line-height: 1;
}
/* Navigation links */
.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}
.nav-links li {
    position: relative;
}
.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    white-space: nowrap;
}
.nav-links a:hover {
    color: #51b0ed;
}
/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.5rem 0;
    min-width: 160px;
    z-index: 200;
    list-style: none;
}
.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu li {
    width: 100%;
}
.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.2rem;
    white-space: nowrap;
}
.dropdown-menu a:hover {
    background: var(--border);
}
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}
/* Mobile styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        order: 2;
    }
    .logo-img {
        order: 1;
    }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
        background: var(--card-bg);
        border-radius: 16px;
        margin-top: 1rem;
        order: 3;
    }
    .nav-links.show {
        display: flex;
    }
    .header-actions {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        border-top: 1px solid var(--border);
        padding-top: 1rem;
    }
    /* Adjust header inner for mobile */
    .header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    /* Dropdowns on mobile */
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        display: none;
        background: transparent;
    }
    .dropdown.open .dropdown-menu {
        display: block;
    }
    .dropdown > a {
        pointer-events: auto;
    }
}
/* Rest of your existing styles (buttons, sections, etc.) remain unchanged */