.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px 20px 40px;
    background: rgba(10, 10, 20, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 64px;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    font-size: 1.8rem;
    color: linear-gradient(135deg, #6366f1, #a78bfa);
    background: #818cf8;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo span {
    color: #f0a050;
    font-weight: 900;
}

.nav {
    display: flex;
    gap: 22px;
}

.nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
    text-decoration: none;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #f0a050;
    transition: width 0.8s ease;
}

.nav a:hover {
    color: #fff;
    transform: scale(1.2);
}

.nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
}

.menu-toggle.active i {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

/* ============================================ */
/* RESPONSIVE HEADER */
/* ============================================ */
@media (max-width: 768px) {
    .header {
        padding: 10px 36px;
        min-height: 56px;
    }

    .logo {
        font-size: 0.95rem;
        gap: 6px;
    }

    .logo i {
        font-size: 1.1rem;
    }

    .nav {
        display: none;
    }

    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.98);
        padding: 18px 20px;
        gap: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav.open a {
        font-size: 0.9rem;
        padding: 6px 0;
        color: rgba(255, 255, 255, 0.7);
    }

    .nav.open a:hover {
        color: #fff;
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 8px 18px;
        min-height: 50px;
    }

    .logo {
        font-size: 0.85rem;
        gap: 4px;
    }

    .logo i {
        font-size: 1rem;
    }

    .menu-toggle {
        font-size: 1.2rem;
        padding: 2px 6px;
    }
}