
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 99;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}


.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px;
    margin: -6px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.header-left:active {
    transform: scale(0.97);
    background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a9eff, #667eea);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(74, 158, 255, 0.2);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.user-status {
    font-size: 11px;
    color: #8a8fa3;
    line-height: 1.2;
}


.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}


.notifications-btn {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 158, 255, 0.08);
    border-radius: 50%;
    border: 1px solid rgba(74, 158, 255, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
}

.notifications-btn:active {
    transform: scale(0.9);
    background: rgba(74, 158, 255, 0.15);
}

.notifications-icon {
    font-size: 15px;
    filter: grayscale(100%) brightness(1.5);
    opacity: 0.85;
}

.notifications-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ff4757, #ff6b7a);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.4);
}

.notifications-badge.hidden {
    display: none;
}

.balance-container {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(74, 158, 255, 0.08);
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid rgba(74, 158, 255, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
}

.balance-container:active {
    transform: scale(0.95);
    background: rgba(74, 158, 255, 0.12);
}

.balance-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.balance-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.balance-amount {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
}


@media (max-width: 380px) {
    .top-header {
        padding: 0 12px;
    }

    .user-name {
        font-size: 14px;
    }

    .balance-amount {
        font-size: 13px;
    }

    .user-avatar {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}
