/* =====================================================
   HEADER - FIXED: No Jitter, Smooth Sticky
   ===================================================== */

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: linear-gradient(135deg, #0d0d0d, #1a1a2e);
    position: sticky;
    top: 0;
    z-index: 1000;
    /* GPU Acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.85;
}

.logo-img {
    display: block;
    object-fit: contain;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.08);
    /* Smooth hover - use transform */
    transition: background 0.2s ease, transform 0.2s ease;
    transform: translateZ(0);
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateZ(0) scale(1.05);
}

.theme-toggle {
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.theme-toggle:hover {
    border-color: var(--accent-pink);
}

/* Responsive */
@media (max-width: 768px) {
    .top-header {
        padding: 8px 16px;
    }
    
    .header-icon-btn {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .top-header {
        padding: 8px 12px;
    }
    
    .header-icon-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}